X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fgraphicalui.h;h=5435d4e80fdfbcb07168a56feee316aa7c41321c;hp=1ed55b60d7f1df21085c043206b2dd57cb656e8d;hb=647215f1dd8ea6fdb6e4fb747c5dc3e19c4ec3fc;hpb=2e9492d9ef198bde37da1f858602ab9624c0a12a diff --git a/src/uisupport/graphicalui.h b/src/uisupport/graphicalui.h index 1ed55b60..5435d4e8 100644 --- a/src/uisupport/graphicalui.h +++ b/src/uisupport/graphicalui.h @@ -37,7 +37,7 @@ class GraphicalUi : public AbstractUi { public: GraphicalUi(QObject *parent = 0); - virtual ~GraphicalUi(); + virtual void init(); //! Access global ActionCollections. /** These ActionCollections are associated with the main window, i.e. they contain global @@ -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); @@ -89,6 +92,9 @@ protected: virtual bool eventFilter(QObject *obj, QEvent *event); +protected slots: + virtual void disconnectedFromCore(); + private: static inline GraphicalUi *instance();