4 #include <QMainWindow>
\r
9 * Main window with a toolbar.
\r
11 class MainWindow: public QMainWindow
\r
16 explicit MainWindow(QWidget *parent = 0);
\r
19 * Add action that is visible on the tool bar.
\r
20 * @param receiver Object receiving "activated" signal.
\r
21 * @param slot Slot receiving "activated" signal.
\r
22 * @param iconName Base name of tool bar icon in resource file.
\r
23 * @param text Tool bar item text.
\r
24 * @param important On Symbian, only "important" actions are added to
\r
25 * the tool bar. All actions are added to the Options
\r
28 QAction *addToolBarAction(QObject *receiver, const char *slot,
\r
29 const QString &iconName, const QString &text,
\r
30 bool important = false);
\r
32 /** Add spacing to tool bar. */
\r
33 void addToolBarSpace();
\r
40 /** Handle resize event: Manage tool bar visibility. */
\r
41 void resizeEvent(QResizeEvent *event);
\r
43 /** Handle show event: Manage tool bar visibility. */
\r
44 void showEvent(QShowEvent *event);
\r
47 /** Update toolbar visibility. */
\r
48 void updateToolBar();
\r
50 /** Return true in portrait mode. */
\r
52 #endif // Q_OS_SYMBIAN
\r
54 /** Hide tool bar if visible. */
\r
58 QToolBar *toolBar; /**< Tool bar. */
\r
61 #endif // MAINWINDOW_H
\r