void MusicLeftAreaWidget::switchToSelectedItemStyle(int index)
{
    switch(index)
    {
        case 0: musicStackedSongListWidgetChanged(); break;
        case 1: musicStackedCloudWidgetChanged(); break;
        case 2: musicStackedRadioWidgetChanged(); break;
        case 3: musicStackedMobileWidgetChanged(); break;
        case 4: musicStackedMyDownWidgetChanged(); break;
        default: break;
    }

    if(m_ui->musiclrccontainerforinline->lrcDisplayExpand())
    {
        MusicRightAreaWidget::instance()->musicLrcDisplayAllButtonClicked();
    }
}
void MusicLeftAreaWidget::cloudSharedSongUploadAllDone()
{
    if(m_currentIndex == 1)
    {
        return;
    }

    switch(m_currentIndex)
    {
        case 0: musicStackedSongListWidgetChanged(); break;
        case 2: musicStackedRadioWidgetChanged(); break;
        case 3: musicStackedMobileWidgetChanged(); break;
        case 4: musicStackedMyDownWidgetChanged(); break;
        default: break;
    }

    delete m_cloudSharedSongWidget;
    m_cloudSharedSongWidget = nullptr;
}
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"));
}