mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
shared_widget: Make button creation static
This commit is contained in:
parent
f6091f33aa
commit
63ea626339
2 changed files with 12 additions and 10 deletions
|
@ -37,6 +37,9 @@ public:
|
|||
|
||||
bool Valid();
|
||||
|
||||
[[nodiscard]] static QPushButton* CreateRestoreGlobalButton(Settings::BasicSetting& setting,
|
||||
QWidget* parent);
|
||||
|
||||
QPushButton* restore_button{};
|
||||
QLineEdit* line_edit{};
|
||||
QCheckBox* checkbox{};
|
||||
|
@ -54,8 +57,6 @@ private:
|
|||
void CreateSlider(const QString& label, bool reversed, float multiplier,
|
||||
std::function<void()>& load_func);
|
||||
|
||||
void CreateRestoreGlobalButton();
|
||||
|
||||
QWidget* parent;
|
||||
const TranslationMap& translations;
|
||||
Settings::BasicSetting& setting;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue