diff options
author | Arno <arno@disconnect.de> | 2017-03-25 09:01:41 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-03-25 09:01:41 +0100 |
commit | be7f32353d736ff1dc1f74ae80e301ce72044dee (patch) | |
tree | 46e0bdc022605058031da77c2d9e1b6edd39411d /playerwidget.h | |
parent | a55b7eb7a765f09f0e83e9d3ce5696f540b6bd9b (diff) | |
download | BeetPlayer-be7f32353d736ff1dc1f74ae80e301ce72044dee.tar.gz BeetPlayer-be7f32353d736ff1dc1f74ae80e301ce72044dee.tar.bz2 BeetPlayer-be7f32353d736ff1dc1f74ae80e301ce72044dee.zip |
Show Popup-Window on various occasions
When we play a new song, get paused, continue and change volume.
The hardest part was to display the QWidget on the current desktop.
Turns out KWindowSystem and Qt::ToolWindow don't work together well...
I should post that on my blog, I guess...
Diffstat (limited to 'playerwidget.h')
-rw-r--r-- | playerwidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/playerwidget.h b/playerwidget.h index 04e023a..606abc0 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -16,6 +16,8 @@ class QToolBar; class QAction; class BeetPlayerProxy; class BeetView; +class ToolWindow; +class QSystemTrayIcon; class PlayerWidget : public QWidget { Q_OBJECT @@ -117,6 +119,7 @@ class PlayerWidget : public QWidget { QString mCurDir; QString mCurWinTitle; QSystemTrayIcon *mTrayIcon; + ToolWindow *mToolWin; }; #endif // PLAYERWIDGET_H |