43 void onRefreshSystemInfo();
44 void onShortcutEdited();
45 void onResetShortcut();
46 void onResetAllShortcuts();
47 void onExportShortcuts();
48 void onImportShortcuts();
49 void onSearchTextChanged();
53 void setupAppearanceTab(QWidget* tab);
54 void setupBehaviorTab(QWidget* tab);
55 void setupGamingModeTab(QWidget* tab);
56 void setupKeyboardShortcutsTab(QWidget* tab);
57 void setupSystemInfoTab(QWidget* tab);
60 void updateAccentPreview();
61 void refreshSystemInfo();
62 void populateShortcutsList();
63 void updateShortcutConflictWarning();
64 void filterSettings(
const QString& searchText);
69 QLineEdit* searchField_ =
nullptr;
70 QTimer* searchDebounceTimer_ =
nullptr;
71 QTabWidget* tabWidget_ =
nullptr;
72 QVector<QGroupBox*> allGroupBoxes_;
73 QMap<QGroupBox*, int> groupBoxTabIndex_;
76 QComboBox* themeCombo_ =
nullptr;
77 QPushButton* accentColorButton_ =
nullptr;
78 QLabel* accentPreviewLabel_ =
nullptr;
79 QPushButton* resetAccentButton_ =
nullptr;
82 QSlider* zoomSlider_ =
nullptr;
83 QLabel* zoomValueLabel_ =
nullptr;
84 QFontComboBox* fontCombo_ =
nullptr;
85 QCheckBox* useSystemFontCheck_ =
nullptr;
88 QCheckBox* autoScanCheck_;
89 QCheckBox* notificationsCheck_;
90 QCheckBox* startMinimizedCheck_;
91 QCheckBox* minimizeToTrayCheck_;
92 QCheckBox* confirmDeleteCheck_;
93 QCheckBox* showToolbarGameStatusCheck_;
94 QCheckBox* steamMinimizedCheck_;
95 QCheckBox* autoApplyDefaultsCheck_;
96 QComboBox* defaultRunnerCombo_;
99 QCheckBox* enableHACheck_ =
nullptr;
100 QLineEdit* haUrlEdit_ =
nullptr;
103 QCheckBox* autoSwitchToRunningGameCheck_;
104 QCheckBox* autoGamingLayoutCheck_;
105 QSpinBox* gamingLayoutWidthPercentSpin_;
106 QComboBox* gamingLayoutEdgeCombo_;
107 QCheckBox* gamingLayoutFullHeightCheck_;
108 QCheckBox* restoreLayoutOnExitCheck_;
111 QTextEdit* systemInfoText_ =
nullptr;
112 QPushButton* refreshSystemInfoButton_ =
nullptr;
115 QTreeWidget* shortcutsTree_ =
nullptr;
116 QKeySequenceEdit* shortcutEdit_ =
nullptr;
117 QLabel* conflictLabel_ =
nullptr;
118 QPushButton* resetShortcutButton_ =
nullptr;
119 QPushButton* clearShortcutButton_ =
nullptr;
120 QString selectedActionId_;
123 QString initialThemeId_;
124 bool initialHamburgerState_ =
false;