64 QScrollArea *scrollArea =
new QScrollArea(
this);
66 layout()->addWidget(scrollArea);
70 QVBoxLayout *grid =
new QVBoxLayout(
function);
72 QWidget *topFuncWidget =
new QWidget(
function);
73 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
76 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
82 connect(d, SIGNAL(downLoadRawDataChanged(QByteArray)), SLOT(
downLoadFinished(QByteArray)));
86 QWidget *topLineWidget =
new QWidget(topFuncWidget);
87 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
88 topLineLayout->setContentsMargins(10, 5, 0, 0);
90 QLabel *nameLabel =
new QLabel(topLineWidget);
91 QFont nameFont = nameLabel->font();
92 nameFont.setPixelSize(20);
93 nameLabel->setFont(nameFont);
95 nameLabel->setToolTip(item.
m_title);
97 QLabel *creatorLabel =
new QLabel(topLineWidget);
99 creatorLabel->setToolTip(tr(
"PlayCount: %1").arg(item.
m_count));
101 QLabel *descriptionLabel =
new QLabel(topLineWidget);
103 descriptionLabel->setToolTip(tr(
"Description: %1").arg(item.
m_description));
105 topLineLayout->addWidget(nameLabel);
106 topLineLayout->addWidget(creatorLabel);
107 topLineLayout->addWidget(descriptionLabel);
108 topLineWidget->setLayout(topLineLayout);
110 QWidget *topButtonWidget =
new QWidget(topFuncWidget);
112 QHBoxLayout *topButtonLayout =
new QHBoxLayout(topButtonWidget);
113 topButtonLayout->setContentsMargins(0, 0, 0, 0);
115 topButtonLayout->addStretch(1);
116 topButtonWidget->setLayout(topButtonLayout);
117 topLineLayout->addWidget(topButtonWidget);
120 topFuncLayout->addWidget(topLineWidget);
121 topFuncWidget->setLayout(topFuncLayout);
122 grid->addWidget(topFuncWidget);
124 QWidget *functionWidget =
new QWidget(
this);
126 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
131 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
133 hLayout->addStretch(1);
134 functionWidget->setLayout(hLayout);
139 grid->addWidget(functionWidget);
143 function->setLayout(grid);
148 m_resizeWidgets.push_back({descriptionLabel, descriptionLabel->font()});
The class of the search result data item.
static const QString FontStyle03
virtual void startToRequest(const QString &url)=0
static const QString CheckBoxStyle01
CheckBox.
static const QString ColorStyle04
The class of the query playlist download data from net.
virtual void startToQueryInfo(MusicResultDataItem &item)=0
static const QString FontStyle01
Font.
static const QString PushButtonStyle03
The class of the wangyi query playlist download data from net.
static bool isCoverValid(const QString &url)
#define G_DOWNLOAD_QUERY_PTR
The class of the cover data download request.