MusicDownloadWidget::MusicDownloadWidget(QWidget *parent) : MusicAbstractMoveWidget(parent), ui(new Ui::MusicDownloadWidget) { ui->setupUi(this); ui->topTitleCloseButton->setIcon(QIcon(":/share/searchclosed")); ui->topTitleCloseButton->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->topTitleCloseButton->setCursor(QCursor(Qt::PointingHandCursor)); ui->topTitleCloseButton->setToolTip(tr("Close")); setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_TranslucentBackground); #ifndef USE_MULTIPLE_QUERY m_downloadThread = new MusicDownLoadQuerySingleThread(this); #else m_downloadThread = new MusicDownLoadQueryMultipleThread(this); #endif m_queryType = MusicDownLoadQueryThreadAbstract::MusicQuery; connect(ui->pathChangedButton, SIGNAL(clicked()), SLOT(downloadDirSelected())); connect(m_downloadThread, SIGNAL(resolvedSuccess()), SLOT(queryAllFinished())); connect(ui->topTitleCloseButton, SIGNAL(clicked()), SLOT(close())); connect(ui->downloadButton, SIGNAL(clicked()), SLOT(startToDownload())); }
MusicSimilarFoundWidget::MusicSimilarFoundWidget(QWidget *parent) : QWidget(parent) { QHBoxLayout *layout = new QHBoxLayout(this); layout->setSpacing(0); layout->setContentsMargins(0, 0, 0, 0); m_mainWindow = new QWidget(this); m_mainWindow->setStyleSheet("background:#FFFFFF"); layout->addWidget(m_mainWindow); setLayout(layout); m_statusLabel = new QLabel(tr("Loading Now ... "), m_mainWindow); m_statusLabel->setStyleSheet("font-size:20px; font-weight:bold"); QHBoxLayout *mLayout = new QHBoxLayout(m_mainWindow); mLayout->addWidget(m_statusLabel, 0, Qt::AlignCenter); m_mainWindow->setLayout(mLayout); #ifndef USE_MULTIPLE_QUERY m_downloadThread = new MusicDownLoadQuerySingleThread(this); #else m_downloadThread = new MusicDownLoadQueryMultipleThread(this); #endif connect(m_downloadThread, SIGNAL(downLoadDataChanged(QString)), SLOT(queryAllFinished())); M_CONNECTION_PTR->setValue("MusicSimilarFoundWidget", this); M_CONNECTION_PTR->poolConnect("MusicSimilarFoundWidget", "MusicSongsSummarizied"); }
MusicDownloadWidget::MusicDownloadWidget(QWidget *parent) : MusicAbstractMoveDialog(parent), ui(new Ui::MusicDownloadWidget) { ui->setupUi(this); ui->topTitleCloseButton->setIcon(QIcon(":/share/searchclosed")); ui->topTitleCloseButton->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->topTitleCloseButton->setCursor(QCursor(Qt::PointingHandCursor)); ui->topTitleCloseButton->setToolTip(tr("Close")); m_downloadThread = new MusicDownLoadQuerySingleThread(this); m_queryType = MusicDownLoadQueryThreadAbstract::MusicQuery; connect(ui->pathChangedButton, SIGNAL(clicked()), SLOT(downloadDirSelected())); connect(m_downloadThread, SIGNAL(resolvedSuccess()), SLOT(queryAllFinished())); connect(ui->topTitleCloseButton, SIGNAL(clicked()), SLOT(close())); connect(ui->downloadButton, SIGNAL(clicked()), SLOT(startToDownload())); }
MusicDownloadWidget::MusicDownloadWidget(QWidget *parent) : MusicAbstractMoveWidget(parent), m_ui(new Ui::MusicDownloadWidget) { m_ui->setupUi(this); m_ui->topTitleCloseButton->setIcon(QIcon(":/functions/btn_close_hover")); m_ui->topTitleCloseButton->setStyleSheet(MusicUIObject::MToolButtonStyle04); m_ui->topTitleCloseButton->setCursor(QCursor(Qt::PointingHandCursor)); m_ui->topTitleCloseButton->setToolTip(tr("Close")); setAttribute(Qt::WA_DeleteOnClose); m_ui->downloadPathEdit->setStyleSheet(MusicUIObject::MLineEditStyle01); m_ui->pathChangedButton->setStyleSheet(MusicUIObject::MPushButtonStyle03); m_ui->settingButton->setStyleSheet(MusicUIObject::MPushButtonStyle03); m_ui->downloadButton->setStyleSheet(MusicUIObject::MPushButtonStyle06); #ifdef Q_OS_UNIX m_ui->pathChangedButton->setFocusPolicy(Qt::NoFocus); m_ui->settingButton->setFocusPolicy(Qt::NoFocus); m_ui->downloadButton->setFocusPolicy(Qt::NoFocus); #endif m_downloadOffset = 0; m_downloadTotal = 0; m_querySingleInfo = false; m_downloadThread = M_DOWNLOAD_QUERY_PTR->getQueryThread(this); m_queryType = MusicDownLoadQueryThreadAbstract::MusicQuery; m_ui->loadingLabel->setType(MusicGifLabelWidget::Gif_Cicle_Blue); connect(m_ui->pathChangedButton, SIGNAL(clicked()), SLOT(downloadDirSelected())); connect(m_downloadThread, SIGNAL(downLoadDataChanged(QString)), SLOT(queryAllFinished())); connect(m_ui->topTitleCloseButton, SIGNAL(clicked()), SLOT(close())); connect(m_ui->downloadButton, SIGNAL(clicked()), SLOT(startToDownload())); }
void MusicWebDJRadioInfoTableWidget::setQueryInput(MusicDownLoadQueryThreadAbstract *query) { MusicQueryFoundTableWidget::setQueryInput(query); if(parent()->metaObject()->indexOfSlot("queryAllFinished()") != -1) { connect(m_downLoadManager, SIGNAL(downLoadDataChanged(QString)), parent(), SLOT(queryAllFinished())); } }