2 #include "ui_musicnetworkconnectiontestwidget.h" 
    6 static constexpr 
const char *
CHECK_WWW_VISIT = 
"dm81Smp4VzI3eHFVNzV4aHgyU2RYN2paNDhJPQ==";
 
    8 static constexpr 
const char *
CHECK_VIP_VISIT = 
"ZjlBQUFxY25KM1BKd2h3VzZVZ1F5dVJHMThEYlFkTWU=";
 
   10 static constexpr 
const char *
CHECK_SERVER_VISIT = 
"T2tjRlYvUVUvVUVORDg4dHI1NlorOUR0SHVvZ3RUQ1g=";
 
   15     QHBoxLayout *layout = 
new QHBoxLayout(
this);
 
   16     layout->setSpacing(0);
 
   17     layout->setContentsMargins(0, 0, 0, 0);
 
   66     m_iconLabel->setPixmap(QPixmap(
":/tiny/lb_question"));
 
   78     m_stateText->setText(state ? tr(
"Detected") : tr(
"Failed"));
 
   79     m_iconLabel->setPixmap(QPixmap(state ? 
":/tiny/lb_right" : 
":/tiny/lb_error"));
 
   93     setAttribute(Qt::WA_DeleteOnClose);
 
   96     m_ui->topTitleCloseButton->setIcon(QIcon(
":/functions/btn_close_hover"));
 
   98     m_ui->topTitleCloseButton->setCursor(QCursor(Qt::PointingHandCursor));
 
   99     m_ui->topTitleCloseButton->setToolTip(tr(
"Close"));
 
  100     connect(
m_ui->topTitleCloseButton, SIGNAL(clicked()), SLOT(close()));
 
  106     m_ui->startButton->setFocusPolicy(Qt::NoFocus);
 
  109     m_ui->verticalLayout->setSpacing(3);
 
  110     m_ui->verticalLayout->setContentsMargins(0, 0, 0, 0);
 
  114     item->
setText(tr(
"Check www visit"));
 
  116     connect(item, SIGNAL(networkConnectionTestChanged()), SLOT(
testFinshed()));
 
  117     m_ui->verticalLayout->addWidget(item);
 
  121     item->setText(tr(
"Check normal visit"));
 
  123     connect(item, SIGNAL(networkConnectionTestChanged()), SLOT(
testFinshed()));
 
  124     m_ui->verticalLayout->addWidget(item);
 
  128     item->setText(tr(
"Check vip visit"));
 
  130     connect(item, SIGNAL(networkConnectionTestChanged()), SLOT(
testFinshed()));
 
  131     m_ui->verticalLayout->addWidget(item);
 
  135     item->setText(tr(
"Check download visit"));
 
  137     connect(item, SIGNAL(networkConnectionTestChanged()), SLOT(
testFinshed()));
 
  138     m_ui->verticalLayout->addWidget(item);
 
  142     item->setText(tr(
"Check server visit"));
 
  144     connect(item, SIGNAL(networkConnectionTestChanged()), SLOT(
testFinshed()));
 
  145     m_ui->verticalLayout->addWidget(item);
 
  159     m_ui->iconLabel->updateRender();
 
  166     if(!
m_ui->iconLabel->isRunning())
 
  168         m_ui->iconLabel->start();
 
  169         m_ui->startButton->setText(tr(
"Stop"));
 
  178         m_ui->iconLabel->stop();
 
  179         m_ui->startButton->setText(tr(
"Start"));
 
  192         m_ui->iconLabel->stop();
 
  193         m_ui->startButton->setText(tr(
"Start"));
 
void testFinshed(bool state)
MusicNetworkConnectionItem(QWidget *parent=nullptr)
MusicNetworkTestThread * m_thread
void setText(const QString &text)
void setUrl(const QString &url) noexcept
The class of the thread to test input url network. 
#define TTKRemoveSingleWidget(name)
The class of the network connection item Widget. 
static const QString BackgroundStyle01
Background. 
static const QString PushButtonStyle04
static const QString ColorStyle09
void networkConnectionTestChanged()
static const QString ColorStyle07
static const QString ColorStyle03
void setUrl(const QString &url)
static const QString ToolButtonStyle04
static const QString ColorStyle11
~MusicNetworkConnectionItem()
TTK_MODULE_EXPORT QString mdII(const QString &data, bool encode)