10 #include <QGridLayout>
68 const int count = item.
m_count.toInt(&ok);
88 connect(d, SIGNAL(downLoadRawDataChanged(QByteArray)), SLOT(
downLoadFinished(QByteArray)));
123 m_initialized(false),
124 m_categoryChanged(false),
125 m_gridLayout(nullptr),
126 m_pageQueryWidget(nullptr),
127 m_infoWidget(nullptr),
128 m_categoryButton(nullptr)
198 QScrollArea *scrollArea =
new QScrollArea(
this);
205 QHBoxLayout *containTopLayout =
new QHBoxLayout(containTopWidget);
206 containTopLayout->setContentsMargins(30, 0, 30, 0);
210 containTopLayout->addStretch(1);
212 const QStringList titles{tr(
"Recommend"), tr(
"Top"), tr(
"Hot"), tr(
"New")};
213 for(
const QString &data :
qAsConst(titles))
215 QLabel *l =
new QLabel(data, containTopWidget);
217 QFrame *hline =
new QFrame(containTopWidget);
218 hline->setFrameShape(QFrame::VLine);
220 containTopLayout->addWidget(l);
221 containTopLayout->addWidget(hline);
223 containTopWidget->setLayout(containTopLayout);
226 line->setFrameShape(QFrame::HLine);
234 mainLayout->addWidget(containTopWidget);
235 mainLayout->addWidget(line);
236 mainLayout->addWidget(containWidget);
242 mainLayout->addStretch(1);
static const QString ColorStyle06
The class of the search result data item.
static const QString BorderStyle01
border
static constexpr const char * TinyBtnPlaylist
int pageTotalSize() const noexcept
virtual void startToRequest(const QString &url)=0
The class of the query playlist download data from net.
virtual void startToQueryInfo(MusicResultDataItem &item)=0
static const QString BackgroundStyle04
static const QString ColorStyle12
virtual void startToSearchByID(const QString &value)
void setInputData(const QByteArray &data, const QSize &size)
The class of the page query widget.
virtual void startToPage(int offset)
void page(int index, int total)
static bool isCoverValid(const QString &url)
The class of the image render thread.
static const QString ColorStyle07
The class of the results category item.
QWidget * createPageWidget(QWidget *parent, int total)
#define G_DOWNLOAD_QUERY_PTR
The class of the cover data download request.
QString queryServer() const
#define TTK_ERROR_STREAM(msg)
#define TTKObjectCast(x, y)