mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
rename setter
This commit is contained in:
parent
f555f7e0d3
commit
f5102df933
5 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 */)
|
||||||
|
|
|
||||||
|
|
@ -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 */)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue