Remove static from IsMacAccessibilityEnabled

This commit is contained in:
Jonas Kvinge
2021-06-22 16:17:51 +02:00
parent d614a94203
commit 06cd2f3a57
2 changed files with 4 additions and 4 deletions

View File

@@ -212,7 +212,7 @@ void GlobalShortcutsManager::Unregister() {
} }
bool GlobalShortcutsManager::IsMacAccessibilityEnabled() { bool GlobalShortcutsManager::IsMacAccessibilityEnabled() const {
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS
if (system_backend_) return qobject_cast<GlobalShortcutsBackendMacOS*>(system_backend_)->IsAccessibilityEnabled(); if (system_backend_) return qobject_cast<GlobalShortcutsBackendMacOS*>(system_backend_)->IsAccessibilityEnabled();
else return false; else return false;
@@ -221,7 +221,7 @@ bool GlobalShortcutsManager::IsMacAccessibilityEnabled() {
#endif #endif
} }
void GlobalShortcutsManager::ShowMacAccessibilityDialog() { void GlobalShortcutsManager::ShowMacAccessibilityDialog() const {
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS
if (system_backend_) qobject_cast<GlobalShortcutsBackendMacOS*>(system_backend_)->ShowAccessibilityDialog(); if (system_backend_) qobject_cast<GlobalShortcutsBackendMacOS*>(system_backend_)->ShowAccessibilityDialog();
#endif #endif

View File

@@ -55,11 +55,11 @@ class GlobalShortcutsManager : public QWidget {
static bool IsX11Available() ; static bool IsX11Available() ;
bool IsGnomeAvailable() const; bool IsGnomeAvailable() const;
bool IsMateAvailable() const; bool IsMateAvailable() const;
static bool IsMacAccessibilityEnabled() ; bool IsMacAccessibilityEnabled() const;
public slots: public slots:
void ReloadSettings(); void ReloadSettings();
void ShowMacAccessibilityDialog(); void ShowMacAccessibilityDialog() const;
void Unregister(); void Unregister();
void Register(); void Register();