DolphinQt: Create toggle for enabling/disabling time tracking
Introduce a new "Enable Time Tracking" checkbox in the InterfacePane UI. The checkbox is dynamically enabled or disabled based on the emulation state, preventing changes while emulation is active.
This commit is contained in:
1 parent
a9ebedbf7d
commit
276f043db8
2 files changed
+29
No files matched your search
@@ -13,6 +13,11 @@ class QVBoxLayout;
|
||||
class ToolTipCheckBox;
|
||||
class ToolTipComboBox;
|
||||
|
||||
namespace Core
|
||||
{
|
||||
enum class State;
|
||||
}
|
||||
|
||||
class InterfacePane final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -30,6 +35,8 @@ private:
|
||||
void OnUserStyleChanged();
|
||||
void OnLanguageChanged();
|
||||
|
||||
void OnEmulationStateChanged(Core::State state);
|
||||
|
||||
QVBoxLayout* m_main_layout;
|
||||
ConfigStringChoice* m_combobox_language;
|
||||
|
||||
@@ -42,6 +49,7 @@ private:
|
||||
ConfigBool* m_checkbox_focused_hotkeys;
|
||||
ConfigBool* m_checkbox_use_covers;
|
||||
ConfigBool* m_checkbox_disable_screensaver;
|
||||
ConfigBool* m_checkbox_time_tracking;
|
||||
|
||||
ConfigBool* m_checkbox_confirm_on_stop;
|
||||
ConfigBool* m_checkbox_use_panic_handlers;
|
||||
|
||||
Reference in new issue
Block a user