Remove usage of SIGNAL/SLOT macro
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
0136c2e82a
commit
4a9b3d2f5f
30 changed files with 75 additions and 87 deletions
|
@ -119,10 +119,10 @@ bool SettingsObject::reload()
|
|||
void SettingsObject::connectSignals(const Setting& setting)
|
||||
{
|
||||
connect(&setting, &Setting::SettingChanged, this, &SettingsObject::changeSetting);
|
||||
connect(&setting, SIGNAL(SettingChanged(const Setting&, QVariant)), this, SIGNAL(SettingChanged(const Setting&, QVariant)));
|
||||
connect(&setting, &Setting::SettingChanged, this, &SettingsObject::SettingChanged);
|
||||
|
||||
connect(&setting, &Setting::settingReset, this, &SettingsObject::resetSetting);
|
||||
connect(&setting, SIGNAL(settingReset(Setting)), this, SIGNAL(settingReset(const Setting&)));
|
||||
connect(&setting, &Setting::settingReset, this, &SettingsObject::settingReset);
|
||||
}
|
||||
|
||||
std::shared_ptr<Setting> SettingsObject::getOrRegisterSetting(const QString& id, QVariant defVal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue