Refactor the system tray's context menu
[quassel.git] / src / uisupport / graphicalui.h
index 140c07f..6d6306e 100644 (file)
@@ -37,7 +37,6 @@ class GraphicalUi : public AbstractUi {
 
 public:
   GraphicalUi(QObject *parent = 0);
-  virtual ~GraphicalUi();
   virtual void init();
 
   //! Access global ActionCollections.
@@ -62,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 *);
@@ -71,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);