1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-31 09:44:50 +01:00

Fix macOS compile

This commit is contained in:
Jonas Kvinge 2021-05-29 22:47:53 +02:00
parent b6bfe81f9a
commit 548f8bf23e
2 changed files with 6 additions and 3 deletions

View File

@ -43,8 +43,9 @@ class GlobalShortcutsBackendKDE : public GlobalShortcutsBackend {
public:
explicit GlobalShortcutsBackendKDE(GlobalShortcutsManager *parent);
protected:
bool IsAvailable() override;
protected:
bool DoRegister() override;
void DoUnregister() override;

View File

@ -43,14 +43,16 @@ class GlobalShortcutsBackendMacOS : public GlobalShortcutsBackend {
explicit GlobalShortcutsBackendMacOS(GlobalShortcutsManager* parent);
virtual ~GlobalShortcutsBackendMacOS();
bool IsAvailable() override { return true; }
bool IsAccessibilityEnabled() const;
void ShowAccessibilityDialog();
void MacMediaKeyPressed(int key);
protected:
bool DoRegister();
void DoUnregister();
bool DoRegister() override;
void DoUnregister() override;
private:
bool KeyPressed(const QKeySequence &sequence);