X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fgraphicalui.h;h=6d6306eda383b0b0fb8c0b9b04b9d9f98a3ec977;hp=88d94fe9a29657a1c0df8a1a3b6869d2a269e98f;hb=4476cfb22f36ad9ba96e4978c3bcce1c2f6b5a04;hpb=b858144c9d38623bdd9afaa02c404d9515243ab7 diff --git a/src/uisupport/graphicalui.h b/src/uisupport/graphicalui.h index 88d94fe9..6d6306ed 100644 --- a/src/uisupport/graphicalui.h +++ b/src/uisupport/graphicalui.h @@ -61,6 +61,9 @@ public: //! Toggle main widget static void toggleMainWidget(); + //! Check if the main widget if (fully, in KDE) visible + static bool isMainWidgetVisible(); + protected: //! This is the widget we associate global actions with, typically the main window void setMainWidget(QWidget *); @@ -70,7 +73,7 @@ protected: * it should be activated or hidden. Without KDE, we need to resort to checking the current state * as Qt knows it, ignoring windows covering it. * @param performToggle If true, toggle the window's state in addition to checking visibility - * @return True, if the window is currently visible + * @return True, if the window is currently *not* visible (needs activation) */ bool checkMainWidgetVisibility(bool performToggle);