rename setter

This commit is contained in:
RickyRister 2024-12-28 14:38:16 -08:00
parent f555f7e0d3
commit f5102df933
5 changed files with 7 additions and 6 deletions

View file

@ -174,7 +174,8 @@ GeneralSettingsPage::GeneralSettingsPage()
GeneralSettingsPage::retranslateUi(); GeneralSettingsPage::retranslateUi();
// connect the ReleaseChannel combo box only after the entries are inserted in retranslateUi // connect the ReleaseChannel combo box only after the entries are inserted in retranslateUi
connect(&updateReleaseChannelBox, SIGNAL(currentIndexChanged(int)), &settings, SLOT(setUpdateReleaseChannel(int))); connect(&updateReleaseChannelBox, SIGNAL(currentIndexChanged(int)), &settings,
SLOT(setUpdateReleaseChannelIndex(int)));
updateReleaseChannelBox.setCurrentIndex(settings.getUpdateReleaseChannelIndex()); updateReleaseChannelBox.setCurrentIndex(settings.getUpdateReleaseChannelIndex());
setLayout(mainLayout); setLayout(mainLayout);

View file

@ -1139,9 +1139,9 @@ void SettingsCache::setDownloadSpoilerStatus(bool _spoilerStatus)
emit downloadSpoilerStatusChanged(); emit downloadSpoilerStatusChanged();
} }
void SettingsCache::setUpdateReleaseChannel(int _updateReleaseChannel) void SettingsCache::setUpdateReleaseChannelIndex(int value)
{ {
updateReleaseChannel = _updateReleaseChannel; updateReleaseChannel = value;
settings->setValue("personal/updatereleasechannel", updateReleaseChannel); settings->setValue("personal/updatereleasechannel", updateReleaseChannel);
} }

View file

@ -716,7 +716,7 @@ public slots:
void setCheckUpdatesOnStartup(QT_STATE_CHANGED_T value); void setCheckUpdatesOnStartup(QT_STATE_CHANGED_T value);
void setNotifyAboutUpdate(QT_STATE_CHANGED_T _notifyaboutupdate); void setNotifyAboutUpdate(QT_STATE_CHANGED_T _notifyaboutupdate);
void setNotifyAboutNewVersion(QT_STATE_CHANGED_T _notifyaboutnewversion); void setNotifyAboutNewVersion(QT_STATE_CHANGED_T _notifyaboutnewversion);
void setUpdateReleaseChannel(int _updateReleaseChannel); void setUpdateReleaseChannelIndex(int value);
void setMaxFontSize(int _max); void setMaxFontSize(int _max);
}; };

View file

@ -321,7 +321,7 @@ void SettingsCache::setNotifyAboutNewVersion(QT_STATE_CHANGED_T /* _notifyaboutn
void SettingsCache::setDownloadSpoilerStatus(bool /* _spoilerStatus */) void SettingsCache::setDownloadSpoilerStatus(bool /* _spoilerStatus */)
{ {
} }
void SettingsCache::setUpdateReleaseChannel(int /* _updateReleaseChannel */) void SettingsCache::setUpdateReleaseChannelIndex(int /* value */)
{ {
} }
void SettingsCache::setMaxFontSize(int /* _max */) void SettingsCache::setMaxFontSize(int /* _max */)

View file

@ -325,7 +325,7 @@ void SettingsCache::setNotifyAboutNewVersion(QT_STATE_CHANGED_T /* _notifyaboutn
void SettingsCache::setDownloadSpoilerStatus(bool /* _spoilerStatus */) void SettingsCache::setDownloadSpoilerStatus(bool /* _spoilerStatus */)
{ {
} }
void SettingsCache::setUpdateReleaseChannel(int /* _updateReleaseChannel */) void SettingsCache::setUpdateReleaseChannelIndex(int /* value */)
{ {
} }
void SettingsCache::setMaxFontSize(int /* _max */) void SettingsCache::setMaxFontSize(int /* _max */)