mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 16:25:45 +00:00
shared_widget: Some documentation, add shorter constructor
The shorter constructor enables us to specify some options without needing to specify the default values of multiplier which wasn't always appropriate and could be confusing.
This commit is contained in:
parent
1ced5ad6e6
commit
84fd9f4726
2 changed files with 65 additions and 8 deletions
|
@ -527,4 +527,12 @@ Widget::Widget(Settings::BasicSetting* setting_, const TranslationMap& translati
|
|||
|
||||
this->setToolTip(tooltip);
|
||||
}
|
||||
|
||||
Widget::Widget(Settings::BasicSetting* setting, const TranslationMap& translations,
|
||||
const ComboboxTranslationMap& combobox_translations, QWidget* parent,
|
||||
bool runtime_lock, std::forward_list<std::function<void(bool)>>& apply_funcs_,
|
||||
Settings::BasicSetting* other_setting, RequestType request, const QString& string)
|
||||
: Widget(setting, translations, combobox_translations, parent, runtime_lock, apply_funcs_,
|
||||
request, true, 1.0f, other_setting, string) {}
|
||||
|
||||
} // namespace ConfigurationShared
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue