12 m_categoryChanged(false),
13 m_gridLayout(nullptr),
14 m_pageQueryWidget(nullptr),
15 m_categoryButton(nullptr)
72 QScrollArea *scrollArea =
new QScrollArea(
this);
79 QVBoxLayout *containTopLayout =
new QVBoxLayout(containTopWidget);
80 containTopLayout->setContentsMargins(30, 0, 30, 0);
86 QWidget *containNumberWidget =
new QWidget(containTopWidget);
87 QHBoxLayout *containNumberLayout =
new QHBoxLayout(containNumberWidget);
89 containNumberLayout->setSpacing(10);
94 for(
int i = -1; i < 27; ++i)
101 label->setText(tr(
"Hot"));
105 label->setText(tr(
"#"));
109 containNumberLayout->addWidget(label);
112 containNumberWidget->setLayout(containNumberLayout);
113 containTopLayout->addWidget(containNumberWidget);
114 containTopWidget->setLayout(containTopLayout);
117 line->setFrameShape(QFrame::HLine);
125 mainLayout->addWidget(containTopWidget);
126 mainLayout->addWidget(line);
127 mainLayout->addWidget(containWidget);
133 mainLayout->addStretch(1);
#define TTKStaticCast(x, y)
The class of the search result data item.
int pageTotalSize() const noexcept
void setResultDataItem(const MusicResultDataItem &item)
The class of the label widget that can click.
static const QString ColorStyle12
static constexpr int LINE_SPACING_SIZE
void addWidget(QWidget *widget, int id=-1)
The class of the page query widget.
virtual void startToPage(int offset)
void page(int index, int total)
static const QString ColorStyle08
The class of the text query item widget.
static const QString ColorStyle07
The class of the results category item.
QWidget * createPageWidget(QWidget *parent, int total)
#define G_DOWNLOAD_QUERY_PTR
virtual void startToSearch(const QString &value)=0
The class of the label widget click group mapper.
#define TTKObjectCast(x, y)
QString queryServer() const noexcept