mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:59:14 +12:00
Qt: Fix "Show app version on window" option
This commit is contained in:
parent
156328fbfb
commit
c3e3b2358d
3 changed files with 27 additions and 18 deletions
|
@ -22,7 +22,7 @@ class ConfigWindow : public QDialog {
|
|||
|
||||
private:
|
||||
using ConfigCallback = std::function<void()>;
|
||||
using IconCallback = std::function<void(const QString&)>;
|
||||
using MainWindowCallback = std::function<QWidget*()>;
|
||||
|
||||
using Theme = FrontendSettings::Theme;
|
||||
using WindowIcon = FrontendSettings::WindowIcon;
|
||||
|
@ -39,14 +39,14 @@ class ConfigWindow : public QDialog {
|
|||
EmulatorConfig config;
|
||||
|
||||
ConfigCallback updateConfig;
|
||||
IconCallback updateIcon;
|
||||
MainWindowCallback getMainWindow;
|
||||
|
||||
void addWidget(QWidget* widget, QString title, QString icon, QString helpText);
|
||||
void setTheme(FrontendSettings::Theme theme);
|
||||
void setIcon(FrontendSettings::WindowIcon icon);
|
||||
|
||||
public:
|
||||
ConfigWindow(ConfigCallback configCallback, IconCallback iconCallback, const EmulatorConfig& config, QWidget* parent = nullptr);
|
||||
ConfigWindow(ConfigCallback configCallback, MainWindowCallback windowCallback, const EmulatorConfig& config, QWidget* parent = nullptr);
|
||||
~ConfigWindow();
|
||||
|
||||
EmulatorConfig& getConfig() { return config; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue