From be7f32353d736ff1dc1f74ae80e301ce72044dee Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 25 Mar 2017 09:01:41 +0100 Subject: 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... --- playerwidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'playerwidget.h') 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 -- cgit v1.2.3-70-g09d2