12 m_categoryChanged(false),
13 m_gridLayout(nullptr),
14 m_pageQueryWidget(nullptr),
15 m_infoWidget(nullptr),
16 m_categoryButton(nullptr)
87 QScrollArea *scrollArea =
new QScrollArea(
this);
94 QHBoxLayout *containTopLayout =
new QHBoxLayout(containTopWidget);
95 containTopLayout->setContentsMargins(10, 0, 10, 0);
100 containTopLayout->addStretch(1);
102 const QStringList titles{tr(
"Recommend"), tr(
"Top"), tr(
"Hot"), tr(
"New")};
103 for(
const QString &data :
qAsConst(titles))
105 QFrame *hline =
new QFrame(containTopWidget);
106 hline->setFrameShape(QFrame::VLine);
108 containTopLayout->addWidget(
new QLabel(data, containTopWidget));
109 containTopLayout->addWidget(hline);
111 containTopWidget->setLayout(containTopLayout);
114 line->setFrameShape(QFrame::HLine);
122 mainLayout->addWidget(containTopWidget);
123 mainLayout->addWidget(line);
124 mainLayout->addWidget(containWidget);
130 mainLayout->addStretch(1);
The class of the search result data item.
int pageTotalSize() const noexcept
The class of the query playlist data from net.
virtual void startToQueryInfo(MusicResultDataItem &item)=0
static const QString ColorStyle12
virtual void startToSearchByID(const QString &value)
The class of the page query widget.
virtual void startToPage(int offset)
void page(int index, int total)
The class of the results category item.
QWidget * createPageWidget(QWidget *parent, int total)
#define G_DOWNLOAD_QUERY_PTR
#define TTKObjectCast(x, y)
QString queryServer() const noexcept