Remove static from IsMacAccessibilityEnabled
This commit is contained in:
parent
d614a94203
commit
06cd2f3a57
|
@ -212,7 +212,7 @@ void GlobalShortcutsManager::Unregister() {
|
|||
|
||||
}
|
||||
|
||||
bool GlobalShortcutsManager::IsMacAccessibilityEnabled() {
|
||||
bool GlobalShortcutsManager::IsMacAccessibilityEnabled() const {
|
||||
#ifdef Q_OS_MACOS
|
||||
if (system_backend_) return qobject_cast<GlobalShortcutsBackendMacOS*>(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<GlobalShortcutsBackendMacOS*>(system_backend_)->ShowAccessibilityDialog();
|
||||
#endif
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue