From 06cd2f3a57efdb1876e40ca3b8d28aa5362f39a0 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 22 Jun 2021 16:17:51 +0200 Subject: [PATCH] Remove static from IsMacAccessibilityEnabled --- src/globalshortcuts/globalshortcutsmanager.cpp | 4 ++-- src/globalshortcuts/globalshortcutsmanager.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/globalshortcuts/globalshortcutsmanager.cpp b/src/globalshortcuts/globalshortcutsmanager.cpp index 7f51ec40..1178e02d 100644 --- a/src/globalshortcuts/globalshortcutsmanager.cpp +++ b/src/globalshortcuts/globalshortcutsmanager.cpp @@ -212,7 +212,7 @@ void GlobalShortcutsManager::Unregister() { } -bool GlobalShortcutsManager::IsMacAccessibilityEnabled() { +bool GlobalShortcutsManager::IsMacAccessibilityEnabled() const { #ifdef Q_OS_MACOS if (system_backend_) return qobject_cast(system_backend_)->IsAccessibilityEnabled(); else return false; @@ -221,7 +221,7 @@ bool GlobalShortcutsManager::IsMacAccessibilityEnabled() { #endif } -void GlobalShortcutsManager::ShowMacAccessibilityDialog() { +void GlobalShortcutsManager::ShowMacAccessibilityDialog() const { #ifdef Q_OS_MACOS if (system_backend_) qobject_cast(system_backend_)->ShowAccessibilityDialog(); #endif diff --git a/src/globalshortcuts/globalshortcutsmanager.h b/src/globalshortcuts/globalshortcutsmanager.h index e1af6bfe..aa5e624e 100644 --- a/src/globalshortcuts/globalshortcutsmanager.h +++ b/src/globalshortcuts/globalshortcutsmanager.h @@ -55,11 +55,11 @@ class GlobalShortcutsManager : public QWidget { static bool IsX11Available() ; bool IsGnomeAvailable() const; bool IsMateAvailable() const; - static bool IsMacAccessibilityEnabled() ; + bool IsMacAccessibilityEnabled() const; public slots: void ReloadSettings(); - void ShowMacAccessibilityDialog(); + void ShowMacAccessibilityDialog() const; void Unregister(); void Register();