8 m_categoryButton(nullptr)
68 QScrollArea *scrollArea =
new QScrollArea(
this);
70 layout()->addWidget(scrollArea);
74 QVBoxLayout *grid =
new QVBoxLayout(
function);
76 QLabel *firstLabel =
new QLabel(
function);
77 firstLabel->setText(tr(
"<font color=#158FE1> Rank </font>"));
78 grid->addWidget(firstLabel);
80 QWidget *categoryWidget =
new QWidget(
function);
81 QHBoxLayout *categoryWidgetLayout =
new QHBoxLayout(categoryWidget);
87 categoryWidgetLayout->addStretch(1);
88 categoryWidget->setLayout(categoryWidgetLayout);
89 grid->addWidget(categoryWidget);
91 QWidget *topFuncWidget =
new QWidget(
function);
92 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
95 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
98 QWidget *topLineWidget =
new QWidget(topFuncWidget);
99 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
100 topLineLayout->setContentsMargins(10, 5, 5, 0);
102 QLabel *nameLabel =
new QLabel(topLineWidget);
103 QFont toplistFont = nameLabel->font();
104 toplistFont.setPixelSize(20);
105 nameLabel->setFont(toplistFont);
108 QLabel *playCountLabel =
new QLabel(topLineWidget);
110 QLabel *updateTimeLabel =
new QLabel(topLineWidget);
112 QLabel *descriptionLabel =
new QLabel(topLineWidget);
114 descriptionLabel->setWordWrap(
true);
116 topLineLayout->addWidget(nameLabel);
117 topLineLayout->addWidget(playCountLabel);
118 topLineLayout->addWidget(updateTimeLabel);
119 topLineLayout->addWidget(descriptionLabel);
120 topLineWidget->setLayout(topLineLayout);
123 topFuncLayout->addWidget(topLineWidget);
124 topFuncWidget->setLayout(topFuncLayout);
125 grid->addWidget(topFuncWidget);
127 QWidget *functionWidget =
new QWidget(
this);
129 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
134 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
137 hLayout->addStretch(1);
138 functionWidget->setLayout(hLayout);
140 QButtonGroup *buttonGroup =
new QButtonGroup(
this);
147 grid->addWidget(functionWidget);
151 function->setLayout(grid);
157 m_resizeWidgets.push_back({descriptionLabel, descriptionLabel->font()});
175 data->
m_label->setToolTip(tr(
"UpdateTime: %1").arg(item.
m_time));
186 connect(d, SIGNAL(downLoadRawDataChanged(QByteArray)), SLOT(
downLoadFinished(QByteArray)));
The class of the search result data item.
static const QString FontStyle03
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
QString queryServer() const
The class of the abstract query download data from net.