diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-04 13:30:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-04 13:30:46 -0500 |
| commit | 9b8488fad325773f7952466a5150f37179d321b6 (patch) | |
| tree | 599a8b444ce315625872f34874de690adcc430b3 /src/settings.cpp | |
| parent | b209a8e47f866a129c53cef43539e96ab8722405 (diff) | |
| parent | 91b95d00a6fda3788e774488ebeb72b28c89e656 (diff) | |
Merge pull request #920 from isanae/double-click-previews
Double click previews
Diffstat (limited to 'src/settings.cpp')
| -rw-r--r-- | src/settings.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index e1e5c2da..68dc19d9 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1966,11 +1966,21 @@ bool InterfaceSettings::showChangeGameConfirmation() const return get<bool>(m_Settings, "Settings", "show_change_game_confirmation", true); } -void InterfaceSettings::setShowChangeGameConfirmation(bool b) const +void InterfaceSettings::setShowChangeGameConfirmation(bool b) { set(m_Settings, "Settings", "show_change_game_confirmation", b); } +bool InterfaceSettings::doubleClicksOpenPreviews() const +{ + return get<bool>(m_Settings, "Settings", "double_click_previews", false); +} + +void InterfaceSettings::setDoubleClicksOpenPreviews(bool b) +{ + set(m_Settings, "Settings", "double_click_previews", b); +} + DiagnosticsSettings::DiagnosticsSettings(QSettings& settings) : m_Settings(settings) |
