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
3240d199a2
commit
6935332cba
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