void MusicLeftAreaWidget::setupUi(Ui::MusicApplication* ui) { m_ui = ui; m_qualityChoiceWidget = new MusicQualityChoicePopWidget(this); m_ui->musicQualityWindow->addWidget(m_qualityChoiceWidget); m_ui->songsContainer->setLength(320, MusicAnimationStackedWidget::LeftToRight); connect(ui->musicKey, SIGNAL(clicked()), MusicApplication::instance(), SLOT(musicStatePlay())); connect(ui->musicPrevious, SIGNAL(clicked()), MusicApplication::instance(), SLOT(musicPlayPrevious())); connect(ui->musicNext, SIGNAL(clicked()), MusicApplication::instance(), SLOT(musicPlayNext())); connect(ui->musicSound, SIGNAL(clicked()), MusicApplication::instance(), SLOT(musicVolumeMute())); connect(ui->musicSound, SIGNAL(musicVolumeChanged(int)), MusicApplication::instance(), SLOT(musicVolumeChanged(int))); connect(ui->musicBestLove, SIGNAL(clicked()), MusicApplication::instance(), SLOT(musicAddSongToLovestListAt())); connect(ui->musicDownload, SIGNAL(clicked()), this, SLOT(musicDownloadSongToLocal())); connect(ui->musicEnhancedButton, SIGNAL(enhancedMusicChanged(int)), MusicApplication::instance(), SLOT(musicEnhancedMusicChanged(int))); connect(ui->musicEnhancedButton, SIGNAL(enhancedMusicChanged(int)), ui->musicTimeWidget, SLOT(setSliderStyleByType(int))); connect(ui->functionAnimationWidget, SIGNAL(buttonClicked(int)), SLOT(switchToSelectedItemStyle(int))); ui->musicPrevious->setStyleSheet(MusicUIObject::MKGBtnPrevious); ui->musicNext->setStyleSheet(MusicUIObject::MKGBtnNext); ui->musicKey->setStyleSheet(MusicUIObject::MKGBtnPlay); ui->musicBestLove->setStyleSheet(MusicUIObject::MKGBtnUnLove); ui->musicDesktopLrc->setStyleSheet(MusicUIObject::MKGBtnDKLrc); ui->musicDownload->setStyleSheet(MusicUIObject::MKGBtnUnDownload); ui->musicMoreFunction->setStyleSheet(MusicUIObject::MKGBtnMore); ui->musicPrevious->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicKey->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicNext->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicSound->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicBestLove->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicDesktopLrc->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicPlayMode->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicDownload->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicMoreFunction->setCursor(QCursor(Qt::PointingHandCursor)); ui->windowClose->setToolTip(tr("Close")); ui->musicKey->setToolTip(tr("Play")); ui->musicPrevious->setToolTip(tr("Previous")); ui->musicNext->setToolTip(tr("Next")); ui->musicBestLove->setToolTip(tr("bestlove")); ui->musicDownload->setToolTip(tr("download")); ui->musicMoreFunction->setToolTip(tr("moreFunction")); ui->musicDesktopLrc->setToolTip(tr("desktopLrc")); ui->musicPlayMode->setToolTip(tr("playMode")); }
void MusicLeftAreaWidget::setupUi(Ui::MusicApplication* ui) { m_ui = ui; m_qualityChoiceWidget = new MusicQualityChoiceWidget(this); m_ui->musicQualityWindow->addWidget(m_qualityChoiceWidget); connect(ui->musicKey, SIGNAL(clicked()), m_supperClass, SLOT(musicKey())); connect(ui->musicPrivious, SIGNAL(clicked()), m_supperClass, SLOT(musicPlayPrivious())); connect(ui->musicNext, SIGNAL(clicked()), m_supperClass, SLOT(musicPlayNext())); connect(ui->musicSound, SIGNAL(clicked()), m_supperClass, SLOT(musicVolumeNULL())); connect(ui->musicSoundSlider, SIGNAL(valueChanged(int)), m_supperClass, SLOT(musicVolumeChanged(int))); connect(ui->musicBestLove, SIGNAL(clicked()), m_supperClass, SLOT(musicAddSongToLovestListAt())); connect(ui->musicButton_playlist, SIGNAL(clicked()), this, SLOT(musicStackedSongListWidgetChanged())); connect(ui->musicButton_tools, SIGNAL(clicked()), this, SLOT(musicStackedToolsWidgetChanged())); connect(ui->musicButton_radio, SIGNAL(clicked()), this, SLOT(musicStackedRadioWidgetChanged())); connect(ui->musicButton_mydownl, SIGNAL(clicked()), this, SLOT(musicStackedMyDownWidgetChanged())); connect(ui->musicButton_mobile, SIGNAL(clicked()), this, SLOT(musicStackedMobileWidgetChanged())); connect(ui->musicEnhancedButton, SIGNAL(enhancedMusicChanged(int)), m_supperClass, SLOT(musicEnhancedMusicChanged(int))); connect(ui->musicEnhancedButton, SIGNAL(enhancedMusicChanged(int)), ui->musicTimeWidget, SLOT(setSliderStyleByType(int))); ui->musicPrivious->setIcon(QIcon(QString::fromUtf8(":/image/privious"))); ui->musicNext->setIcon(QIcon(QString::fromUtf8(":/image/next"))); ui->musicKey->setIcon(QIcon(QString::fromUtf8(":/image/play"))); ui->musicBestLove->setIcon(QIcon(QString::fromUtf8(":/image/bestlove"))); ui->musicButton_cloud->setIcon(QIcon(QString::fromUtf8(":/appTools/buttoncloud"))); ui->musicButton_mydownl->setIcon(QIcon(QString::fromUtf8(":/appTools/buttonmydownl"))); ui->musicButton_playlist->setIcon(QIcon(QString::fromUtf8(":/appTools/buttonplaylist"))); ui->musicButton_radio->setIcon(QIcon(QString::fromUtf8(":/appTools/buttonradio"))); ui->musicButton_tools->setIcon(QIcon(QString::fromUtf8(":/appTools/buttontools"))); ui->musicButton_mobile->setIcon(QIcon(QString::fromUtf8(":/appTools/buttonmobile"))); ui->musicPrivious->setIconSize(QSize(45, 45)); ui->musicNext->setIconSize(QSize(45, 45)); ui->musicKey->setIconSize(QSize(45, 45)); ui->musicBestLove->setIconSize(QSize(25, 25)); ui->musicButton_cloud->setIconSize(QSize(35, 35)); ui->musicButton_mydownl->setIconSize(QSize(35, 35)); ui->musicButton_playlist->setIconSize(QSize(35, 35)); ui->musicButton_radio->setIconSize(QSize(35, 35)); ui->musicButton_tools->setIconSize(QSize(35, 35)); ui->musicButton_mobile->setIconSize(QSize(35, 35)); ui->musicPlayMode->setIconSize(QSize(25, 25)); ui->musicSoundSlider->setStyleSheet(MusicUIObject::MSliderStyle01); ui->musicPrivious->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicNext->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicKey->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicBestLove->setStyleSheet(MusicUIObject::MToolButtonStyle06); ui->musicDesktopLrc->setStyleSheet(MusicUIObject::MCheckBoxStyle03); ui->musicButton_cloud->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicButton_mydownl->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicButton_playlist->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicButton_radio->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicButton_tools->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicButton_mobile->setStyleSheet(MusicUIObject::MToolButtonStyle03); ui->musicPlayMode->setStyleSheet(MusicUIObject::MToolButtonStyle04); ui->musicPrivious->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicKey->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicNext->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicSound->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicSoundSlider->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicBestLove->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicDesktopLrc->setCursor(QCursor(Qt::PointingHandCursor)); ui->musicPlayMode->setCursor(QCursor(Qt::PointingHandCursor)); ui->windowClose->setToolTip(tr("Close")); ui->musicKey->setToolTip(tr("Play")); ui->musicPrivious->setToolTip(tr("Privious")); ui->musicNext->setToolTip(tr("Next")); ui->musicBestLove->setToolTip(tr("bestlove")); ui->musicDesktopLrc->setToolTip(tr("desktopLrc")); ui->musicPlayMode->setToolTip(tr("playMode")); ui->musicButton_cloud->setToolTip(tr("musicCloud")); ui->musicButton_mydownl->setToolTip(tr("musicMydownl")); ui->musicButton_playlist->setToolTip(tr("musicPlaylist")); ui->musicButton_radio->setToolTip(tr("musicRadio")); ui->musicButton_tools->setToolTip(tr("musicTools")); ui->musicButton_mobile->setToolTip(tr("musicMobile")); }