23 connect(req, SIGNAL(downloadDataChanged(QString)), SLOT(
queryAllFinished()));
65 QScrollArea *scrollArea =
new QScrollArea(
this);
67 layout()->addWidget(scrollArea);
71 QVBoxLayout *grid =
new QVBoxLayout(
function);
73 QWidget *topFuncWidget =
new QWidget(
function);
74 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
77 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
83 connect(req, SIGNAL(downloadRawDataChanged(QByteArray)), SLOT(
downloadFinished(QByteArray)));
87 QWidget *topLineWidget =
new QWidget(topFuncWidget);
88 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
89 topLineLayout->setContentsMargins(10, 5, 0, 0);
91 QLabel *nameLabel =
new QLabel(topLineWidget);
92 QFont nameFont = nameLabel->font();
93 nameFont.setPixelSize(20);
94 nameLabel->setFont(nameFont);
96 nameLabel->setToolTip(item.
m_title);
98 QLabel *creatorLabel =
new QLabel(topLineWidget);
100 creatorLabel->setToolTip(tr(
"PlayCount: %1").arg(item.
m_count));
102 QLabel *descriptionLabel =
new QLabel(topLineWidget);
104 descriptionLabel->setToolTip(tr(
"Description: %1").arg(item.
m_description));
106 topLineLayout->addWidget(nameLabel);
107 topLineLayout->addWidget(creatorLabel);
108 topLineLayout->addWidget(descriptionLabel);
109 topLineWidget->setLayout(topLineLayout);
111 QWidget *topButtonWidget =
new QWidget(topFuncWidget);
113 QHBoxLayout *topButtonLayout =
new QHBoxLayout(topButtonWidget);
114 topButtonLayout->setContentsMargins(0, 0, 0, 0);
116 topButtonLayout->addStretch(1);
117 topButtonWidget->setLayout(topButtonLayout);
118 topLineLayout->addWidget(topButtonWidget);
121 topFuncLayout->addWidget(topLineWidget);
122 topFuncWidget->setLayout(topFuncLayout);
123 grid->addWidget(topFuncWidget);
125 QWidget *functionWidget =
new QWidget(
this);
127 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
132 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
134 hLayout->addStretch(1);
135 functionWidget->setLayout(hLayout);
140 grid->addWidget(functionWidget);
144 function->setLayout(grid);
The class of the search result data item.
static const QString FontStyle03
static bool isCoverValid(const QString &url) noexcept
virtual void startToRequest(const QString &url)=0
static const QString CheckBoxStyle01
CheckBox.
static const QString ColorStyle04
The class of the query playlist data from net.
virtual void startToQueryInfo(MusicResultDataItem &item)=0
static const QString FontStyle01
Font.
The class of the cover source data download request.
static const QString PushButtonStyle03
The class of the wangyi query playlist data from net.
The class of the cover data download request.