17 connect(req, SIGNAL(downloadDataChanged(QString)), SLOT(
queryAllFinished()));
70 connect(req, SIGNAL(downloadRawDataChanged(QByteArray)), SLOT(
downloadFinished(QByteArray)));
89 data->
m_label->setToolTip(tr(
"UpdateTime: %1").arg(item.
m_time));
99 QScrollArea *scrollArea =
new QScrollArea(
this);
101 layout()->addWidget(scrollArea);
105 QVBoxLayout *grid =
new QVBoxLayout(
function);
107 QWidget *firstTopFuncWidget =
new QWidget(
function);
108 QHBoxLayout *firstTopFuncLayout =
new QHBoxLayout(firstTopFuncWidget);
110 QLabel *firstLabel =
new QLabel(
function);
113 QPushButton *backButton =
new QPushButton(tr(
"Back"));
114 backButton->setFixedSize(90, 30);
116 backButton->setCursor(QCursor(Qt::PointingHandCursor));
117 connect(backButton, SIGNAL(clicked()),
this, SIGNAL(
backToMainMenu()));
119 firstTopFuncLayout->addWidget(firstLabel);
120 firstTopFuncLayout->addWidget(backButton);
121 grid->addWidget(firstTopFuncWidget);
123 QWidget *topFuncWidget =
new QWidget(
function);
124 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
127 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
130 QWidget *topLineWidget =
new QWidget(topFuncWidget);
131 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
132 topLineLayout->setContentsMargins(10, 5, 5, 0);
134 QLabel *nameLabel =
new QLabel(topLineWidget);
135 QFont nameFont = nameLabel->font();
136 nameFont.setPixelSize(20);
137 nameLabel->setFont(nameFont);
141 QLabel *singerLabel =
new QLabel(topLineWidget);
145 QLabel *playCountLabel =
new QLabel(topLineWidget);
148 QLabel *updateTimeLabel =
new QLabel(topLineWidget);
152 topLineLayout->addWidget(nameLabel);
153 topLineLayout->addWidget(singerLabel);
154 topLineLayout->addWidget(playCountLabel);
155 topLineLayout->addWidget(updateTimeLabel);
156 topLineWidget->setLayout(topLineLayout);
159 topFuncLayout->addWidget(topLineWidget);
160 topFuncWidget->setLayout(topFuncLayout);
161 grid->addWidget(topFuncWidget);
163 QWidget *functionWidget =
new QWidget(
this);
165 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
170 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
173 hLayout->addStretch(1);
174 functionWidget->setLayout(hLayout);
176 QButtonGroup *buttonGroup =
new QButtonGroup(
this);
181 backButton->setFocusPolicy(Qt::NoFocus);
185 grid->addWidget(functionWidget);
189 function->setLayout(grid);
The class of the search result data item.
static const QString FontStyle03
static bool isCoverValid(const QString &url) noexcept
virtual void startToRequest(const QString &url)=0
static const QString CheckBoxStyle01
CheckBox.
static const QString ColorStyle04
static const QString FontStyle01
Font.
The class of the wangyi query program category data from net.
The class of the cover source data download request.
static const QString PushButtonStyle03
#define QtButtonGroupConnect(p, q, f, s)
Button group connect.
The class of the cover data download request.
The class of the abstract query data from net.