diff options
Diffstat (limited to 'src/qmmpui')
| -rw-r--r-- | src/qmmpui/uihelper.cpp | 5 | ||||
| -rw-r--r-- | src/qmmpui/uihelper.h | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/qmmpui/uihelper.cpp b/src/qmmpui/uihelper.cpp index 48d827618..be7ce90bf 100644 --- a/src/qmmpui/uihelper.cpp +++ b/src/qmmpui/uihelper.cpp @@ -217,6 +217,11 @@ void UiHelper::toggleVisibility() emit toggleVisibilityCalled(); } +void UiHelper::showMainWindow() +{ + emit showMainWindowCalled(); +} + void UiHelper::exit() { #if QT_VERSION < 0x040700 diff --git a/src/qmmpui/uihelper.h b/src/qmmpui/uihelper.h index 867fc9931..f3fc2c2a9 100644 --- a/src/qmmpui/uihelper.h +++ b/src/qmmpui/uihelper.h @@ -145,6 +145,10 @@ public slots: */ void toggleVisibility(); /*! + * Shows the main window of the player. + */ + void showMainWindow(); + /*! * Tells the player to exit. */ void exit(); @@ -155,6 +159,11 @@ signals: * Use it to show/hide player's window. */ void toggleVisibilityCalled(); + /*! + * Emitted when some general plugin requires to show main window. + * Use it to show player's window and to raise it to the top. + */ + void showMainWindowCalled(); private slots: void removeAction(QObject *action); |
