8 m_categoryButton(nullptr)
16 connect(req, SIGNAL(downloadDataChanged(QString)), SLOT(
queryAllFinished()));
70 QScrollArea *scrollArea =
new QScrollArea(
this);
72 layout()->addWidget(scrollArea);
76 QVBoxLayout *grid =
new QVBoxLayout(
function);
78 QLabel *firstLabel =
new QLabel(
function);
79 firstLabel->setText(tr(
"<font color=#158FE1> Rank </font>"));
80 grid->addWidget(firstLabel);
82 QWidget *categoryWidget =
new QWidget(
function);
83 QHBoxLayout *categoryWidgetLayout =
new QHBoxLayout(categoryWidget);
89 categoryWidgetLayout->addStretch(1);
90 categoryWidget->setLayout(categoryWidgetLayout);
91 grid->addWidget(categoryWidget);
93 QWidget *topFuncWidget =
new QWidget(
function);
94 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
97 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
100 QWidget *topLineWidget =
new QWidget(topFuncWidget);
101 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
102 topLineLayout->setContentsMargins(10, 5, 5, 0);
104 QLabel *nameLabel =
new QLabel(topLineWidget);
105 QFont toplistFont = nameLabel->font();
106 toplistFont.setPixelSize(20);
107 nameLabel->setFont(toplistFont);
110 QLabel *playCountLabel =
new QLabel(topLineWidget);
112 QLabel *updateTimeLabel =
new QLabel(topLineWidget);
114 QLabel *descriptionLabel =
new QLabel(topLineWidget);
116 descriptionLabel->setWordWrap(
true);
118 topLineLayout->addWidget(nameLabel);
119 topLineLayout->addWidget(playCountLabel);
120 topLineLayout->addWidget(updateTimeLabel);
121 topLineLayout->addWidget(descriptionLabel);
122 topLineWidget->setLayout(topLineLayout);
125 topFuncLayout->addWidget(topLineWidget);
126 topFuncWidget->setLayout(topFuncLayout);
127 grid->addWidget(topFuncWidget);
129 QWidget *functionWidget =
new QWidget(
this);
131 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
136 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
142 hLayout->addStretch(1);
143 functionWidget->setLayout(hLayout);
145 QButtonGroup *buttonGroup =
new QButtonGroup(
this);
149 grid->addWidget(functionWidget);
153 function->setLayout(grid);
167 connect(req, SIGNAL(downloadRawDataChanged(QByteArray)), SLOT(
downloadFinished(QByteArray)));
187 data->
m_label->setToolTip(tr(
"UpdateTime: %1").arg(item.
m_time));
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.
static const QString PushButtonStyle03
#define QtButtonGroupConnect(p, q, f, s)
Button group connect.
The class of the results category item.
#define G_DOWNLOAD_QUERY_PTR
The class of the cover data download request.
virtual void startToSearch(const QString &value)=0
The class of the abstract query data from net.
QString queryServer() const noexcept