From 3d60948da05a7f97b11c73e0aa77242502da8586 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 7 Mar 2017 19:37:41 +0100 Subject: Add bindings for global KDE shortcuts Hell, this was much harder than it should be. The API documentation is crap and I didn't find a single decent example with my google foo! --- playerwidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'playerwidget.h') diff --git a/playerwidget.h b/playerwidget.h index 0218fde..a9259e2 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -36,6 +36,9 @@ class PlayerWidget : public QWidget { void doPlay(); void doStop(); void doPause(); + void doPlayOrPause(); + void volumeUp(); + void volumeDown(); void doFilter(); void clearFilter(); void reindex(); @@ -78,6 +81,7 @@ class PlayerWidget : public QWidget { void play(const QString &fullPath); void advance(int numSongs); void expandRecursive(const QModelIndex &idx); + void adjustVolume(int by); QLineEdit *mSearch; QMediaPlayer *mPlayer; BeetView *mView; -- cgit v1.2.3-70-g09d2