void RingtoneDialog::onUriReceived(QString objectId, QString uri) { if (objectId != this->objectId) return; this->uri = uri; if (accepted) setRingtone(); }
void RingtoneDialog::onUriReceived(QString objectId, QString uri) { if (objectId != this->objectId) return; disconnect(this->sender(), SIGNAL(gotUri(QString,QString,QString)), this, SLOT(onUriReceived(QString,QString))); this->uri = uri; if (accepted) setRingtone(); }
void RingtoneDialog::done(int r) { if (r == QMessageBox::Yes) { if (uri.isNull()) { this->setEnabled(false); accepted = true; } else { setRingtone(); } } else { ConfirmDialog::done(r); } }