22 if(parent()->metaObject()->indexOfSlot(
"queryAllFinished()") != -1)
24 connect(
m_networkRequest, SIGNAL(downLoadDataChanged(QString)), parent(), SLOT(queryAllFinished()));
88 connect(d, SIGNAL(downLoadRawDataChanged(QByteArray)), SLOT(
downLoadFinished(QByteArray)));
118 QScrollArea *scrollArea =
new QScrollArea(
this);
120 layout()->addWidget(scrollArea);
124 QVBoxLayout *grid =
new QVBoxLayout(
function);
126 QWidget *firstTopFuncWidget =
new QWidget(
function);
127 QHBoxLayout *firstTopFuncLayout =
new QHBoxLayout(firstTopFuncWidget);
129 QLabel *firstLabel =
new QLabel(
function);
132 QPushButton *backButton =
new QPushButton(tr(
"Back"));
133 backButton->setFixedSize(90, 30);
135 backButton->setCursor(QCursor(Qt::PointingHandCursor));
136 connect(backButton, SIGNAL(clicked()),
this, SIGNAL(
backToMainMenu()));
138 firstTopFuncLayout->addWidget(firstLabel);
139 firstTopFuncLayout->addWidget(backButton);
140 grid->addWidget(firstTopFuncWidget);
142 QWidget *topFuncWidget =
new QWidget(
function);
143 QHBoxLayout *topFuncLayout =
new QHBoxLayout(topFuncWidget);
146 m_iconLabel->setPixmap(QPixmap(
":/image/lb_warning").scaled(180, 180));
149 QWidget *topLineWidget =
new QWidget(topFuncWidget);
150 QVBoxLayout *topLineLayout =
new QVBoxLayout(topLineWidget);
151 topLineLayout->setContentsMargins(10, 5, 5, 0);
153 QLabel *nameLabel =
new QLabel(topLineWidget);
154 QFont nameFont = nameLabel->font();
155 nameFont.setPixelSize(20);
156 nameLabel->setFont(nameFont);
160 QLabel *singerLabel =
new QLabel(topLineWidget);
164 QLabel *playCountLabel =
new QLabel(topLineWidget);
167 QLabel *updateTimeLabel =
new QLabel(topLineWidget);
171 topLineLayout->addWidget(nameLabel);
172 topLineLayout->addWidget(singerLabel);
173 topLineLayout->addWidget(playCountLabel);
174 topLineLayout->addWidget(updateTimeLabel);
175 topLineWidget->setLayout(topLineLayout);
178 topFuncLayout->addWidget(topLineWidget);
179 topFuncWidget->setLayout(topFuncLayout);
180 grid->addWidget(topFuncWidget);
182 QWidget *functionWidget =
new QWidget(
this);
184 QHBoxLayout *hLayout =
new QHBoxLayout(functionWidget);
189 m_songButton->setCursor(QCursor(Qt::PointingHandCursor));
192 hLayout->addStretch(1);
193 functionWidget->setLayout(hLayout);
195 QButtonGroup *buttonGroup =
new QButtonGroup(
this);
200 backButton->setFocusPolicy(Qt::NoFocus);
204 grid->addWidget(functionWidget);
208 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.