16 setAlignment(Qt::AlignCenter);
40 m_categoryChanged(false),
41 m_gridLayout(nullptr),
42 m_pageQueryWidget(nullptr),
43 m_categoryButton(nullptr)
97 QScrollArea *scrollArea =
new QScrollArea(
this);
104 QVBoxLayout *containTopLayout =
new QVBoxLayout(containTopWidget);
105 containTopLayout->setContentsMargins(30, 0, 30, 0);
110 QWidget *containNumberWidget =
new QWidget(containTopWidget);
111 QHBoxLayout *containNumberLayout =
new QHBoxLayout(containNumberWidget);
113 containNumberLayout->setSpacing(10);
118 for(
int i = -1; i < 27; ++i)
125 label->setText(tr(
"Hot"));
129 label->setText(tr(
"#"));
132 clickedGroup->
mapped(label);
133 containNumberLayout->addWidget(label);
136 containNumberWidget->setLayout(containNumberLayout);
137 containTopLayout->addWidget(containNumberWidget);
138 containTopWidget->setLayout(containTopLayout);
141 line->setFrameShape(QFrame::HLine);
149 mainLayout->addWidget(containTopWidget);
150 mainLayout->addWidget(line);
151 mainLayout->addWidget(containWidget);
157 mainLayout->addStretch(1);
#define TTKStaticCast(x, y)
The class of the search result data item.
int pageTotalSize() const noexcept
The class of the label widget that can click.
static const QString ColorStyle12
void mapped(QWidget *widget)
static const QString ColorStyle02
The class of the page query widget.
virtual void startToPage(int offset)
void page(int index, int total)
static const QString ColorStyle08
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
QString queryServer() const
The class of the label widget click group mapper.
#define TTKObjectCast(x, y)