Clean up event handling.
[dorian] / widgets / mainbase.h
index 3c72999..bf2e83b 100755 (executable)
@@ -29,6 +29,9 @@ public:
                               const QString &iconName, const QString &text,\r
                               bool important = false);\r
 \r
+    /** Add tool bar. */\r
+    void addToolBar();\r
+\r
     /** Add spacing to tool bar. */\r
     void addToolBarSpace();\r
 \r
@@ -36,24 +39,6 @@ public slots:
     void show();\r
 \r
 protected:\r
-    /** Handle resize event: Manage tool bar visibility. */\r
-    void resizeEvent(QResizeEvent *event);\r
-\r
-    /** Handle show event: Manage tool bar visibility. */\r
-    void showEvent(QShowEvent *event);\r
-\r
-    /**\r
-     * Update toolb ar visibility.\r
-     * On Symbian, the tool bar is not visible in landscape mode.\r
-     */\r
-    void updateToolBar();\r
-\r
-    /** Hide tool bar if visible. */\r
-    void hideToolBar();\r
-\r
-    /** Return true if the tool bar is present and hidden. */\r
-    bool isToolBarHidden();\r
-\r
     /** Return the height of the tool bar (or 0 if there is no tool bar). */\r
     int toolBarHeight();\r
 \r