68 connect(d, SIGNAL(downLoadRawDataChanged(QByteArray)), SLOT(
downLoadFinished(QByteArray)));
87 data->
m_label->setToolTip(tr(
"UpdateTime: %1").arg(item.
m_time));
98 QScrollArea *scrollArea =
new QScrollArea(
this);
100 layout()->addWidget(scrollArea);
104 QVBoxLayout *grid =
new QVBoxLayout(
function);
106 QWidget *firstTopFuncWidget =
new QWidget(
function);
107 QHBoxLayout *firstTopFuncLayout =
new QHBoxLayout(firstTopFuncWidget);
109 QLabel *firstLabel =
new QLabel(
function);
112 QPushButton *backButton =
new QPushButton(tr(
"Back"));
113 backButton->setFixedSize(90, 30);
115 backButton->setCursor(QCursor(Qt::PointingHandCursor));
116 connect(backButton, SIGNAL(clicked()),
this, SIGNAL(
backToMainMenu()));
118 firstTopFuncLayout->addWidget(firstLabel);
119 firstTopFuncLayout->addWidget(backButton);
120 grid->addWidget(firstTopFuncWidget);
122 QWidget *topFuncWidget =
new QWidget(
function);
123 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
126 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
129 QWidget *topLineWidget =
new QWidget(topFuncWidget);
130 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
131 topLineLayout->setContentsMargins(10, 5, 5, 0);
133 QLabel *nameLabel =
new QLabel(topLineWidget);
134 QFont nameFont = nameLabel->font();
135 nameFont.setPixelSize(20);
136 nameLabel->setFont(nameFont);
140 QLabel *singerLabel =
new QLabel(topLineWidget);
144 QLabel *playCountLabel =
new QLabel(topLineWidget);
147 QLabel *updateTimeLabel =
new QLabel(topLineWidget);
151 topLineLayout->addWidget(nameLabel);
152 topLineLayout->addWidget(singerLabel);
153 topLineLayout->addWidget(playCountLabel);
154 topLineLayout->addWidget(updateTimeLabel);
155 topLineWidget->setLayout(topLineLayout);
158 topFuncLayout->addWidget(topLineWidget);
159 topFuncWidget->setLayout(topFuncLayout);
160 grid->addWidget(topFuncWidget);
162 QWidget *functionWidget =
new QWidget(
this);
164 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
169 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
172 hLayout->addStretch(1);
173 functionWidget->setLayout(hLayout);
175 QButtonGroup *buttonGroup =
new QButtonGroup(
this);
180 backButton->setFocusPolicy(Qt::NoFocus);
184 grid->addWidget(functionWidget);
188 function->setLayout(grid);
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
static const QString FontStyle01
Font.
The class of the wangyi query program category download data from net.
static const QString PushButtonStyle03
#define QtButtonGroupConnect(p, q, f, s)
Button group connect.
static bool isCoverValid(const QString &url)
#define G_DOWNLOAD_QUERY_PTR
The class of the cover data download request.
The class of the abstract query download data from net.