16 if(it.value() == object)
28 if(first ==
nullptr || second ==
nullptr)
33 if(from == MusicPlayer::className() && to == MusicLrcMakerWidget::className())
35 QObject::connect(first, SIGNAL(positionChanged(qint64)), second, SLOT(positionChanged(qint64)));
36 QObject::connect(first, SIGNAL(durationChanged(qint64)), second, SLOT(durationChanged(qint64)));
38 else if(from == MusicEqualizerDialog::className() && to == MusicPlayer::className())
40 QObject::connect(first, SIGNAL(setEnabledEffect(
bool)), second, SLOT(setEnabledEffect(
bool)));
41 QObject::connect(first, SIGNAL(setEqualizerEffect(
TTKIntList)), second, SLOT(setEqualizerEffect(
TTKIntList)));
43 else if(from == MusicLrcLocalLinkWidget::className() && to == MusicDownloadStatusModule::className())
45 QObject::connect(first, SIGNAL(currentLrcChanged(QString)), second, SLOT(showDownloadInfoFinished(QString)));
47 else if(from == MusicVideoQualityPopWidget::className() && to == MusicVideoSearchTableWidget::className())
49 QObject::connect(first, SIGNAL(queryMediaProps(TTK::MusicSongPropertyList&)), second, SLOT(queryMediaProps(TTK::MusicSongPropertyList&)));
51 else if((from == MusicCloudManagerTableWidget::className() && to == MusicCloudUploadTableWidget::className()))
54 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)