void EditProfileDialog::onOKClicked() { QString newRealName = m_realNameEdit->text(); if (newRealName.isEmpty()) // to avoid having empty real name newRealName = m_profile->preferredUsername(); m_profile->setDisplayName(newRealName); m_profile->setLocation(m_hometownEdit->text()); m_profile->setSummary(m_bioEdit->toPlainText()); accept(); emit profileEdited(m_profile, m_imageFileName); }
void JoyAxis::disconnectPropertyUpdatedConnection() { disconnect(this, SIGNAL(propertyUpdated()), getParentSet()->getInputDevice(), SLOT(profileEdited())); }
void SetJoystick::disconnectPropertyUpdatedConnection() { disconnect(this, SIGNAL(propertyUpdated()), getInputDevice(), SLOT(profileEdited())); }