17 if(it.value() == object)
29 if(first ==
nullptr || second ==
nullptr)
34 if(from == MusicNetworkThread::className() && to == MusicDownloadStatusModule::className())
36 QObject::connect(first, SIGNAL(networkConnectionStateChanged(
bool)), second, SLOT(networkConnectionStateChanged(
bool)));
38 else if(from == MusicPlayer::className() && to == MusicLrcMakerWidget::className())
40 QObject::connect(first, SIGNAL(positionChanged(qint64)), second, SLOT(positionChanged(qint64)));
41 QObject::connect(first, SIGNAL(durationChanged(qint64)), second, SLOT(durationChanged(qint64)));
43 else if(from == MusicEqualizerDialog::className() && to == MusicPlayer::className())
45 QObject::connect(first, SIGNAL(setEnabledEffect(
bool)), second, SLOT(setEnabledEffect(
bool)));
46 QObject::connect(first, SIGNAL(setEqualizerEffect(
TTKIntList)), second, SLOT(setEqualizerEffect(
TTKIntList)));
48 else if(from == MusicEqualizerDialog::className() && to == MusicSoundEffectsWidget::className())
50 QObject::connect(first, SIGNAL(setEnabledEffect(
bool)), second, SLOT(equalizerButtonChanged(
bool)));
52 else if(from == MusicSoundEffectsWidget::className() && to == MusicPlayer::className())
54 QObject::connect(first, SIGNAL(setEqualizerConfig()), second, SLOT(setEqualizerConfig()));
56 else if(from == MusicLrcLocalLinkWidget::className() && to == MusicDownloadStatusModule::className())
58 QObject::connect(first, SIGNAL(currentLrcChanged(QString)), second, SLOT(showDownLoadInfoFinished(QString)));
60 else if(from == MusicVideoQualityPopWidget::className() && to == MusicVideoSearchTableWidget::className())
62 QObject::connect(first, SIGNAL(queryMediaProps(TTK::MusicSongPropertyList&)), second, SLOT(queryMediaProps(TTK::MusicSongPropertyList&)));
64 else if((from == MusicCloudManagerTableWidget::className() && to == MusicCloudUploadTableWidget::className()))
67 QObject::connect(second, SIGNAL(reuploadFilesToServer(QStringList)), first, SLOT(reuploadFilesToServer(QStringList)));
The class of the cloud data item.
QMap< QString, QObject * > m_parameters
void connect(const QString &from, const QString &to)
void removeValue(const QObject *object)