X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=adopterwindow.h;h=d4631f46af39f360c46c0b35916a8a7c949ce9bf;hb=b28659ebcbbcd4c42d90e0439fc09e03fc5a47cc;hp=e50667e2391ef3a4a8587d6df132a8c44ec34fbd;hpb=bf8fec1aed957f659f776b874f957410b68e08ef;p=dorian diff --git a/adopterwindow.h b/adopterwindow.h index e50667e..d4631f4 100644 --- a/adopterwindow.h +++ b/adopterwindow.h @@ -8,6 +8,7 @@ class QWidget; class QToolBar; class QAction; class BookView; +class QVBoxLayout; /** * A toplevel window that can adopt a BookView and other children. @@ -30,11 +31,18 @@ public: bool hasChild(QWidget *child); /** - * Add action that is visible on the tool bar (except on Symbian, where - * it is visible on the Options menu). + * Add action that is visible on the tool bar. + * @param receiver Object receiving "activated" signal. + * @param slot Slot receiving "activated" signal. + * @param iconName Base name of tool bar icon in resource file. + * @param text Tool bar item text. + * @param important On Symbian, only "important" actions are added to + * the tool bar. All actions are added to the Options + * menu though. */ QAction *addToolBarAction(QObject *receiver, const char *slot, - const QString &iconName, const QString &text); + const QString &iconName, const QString &text, + bool important = false); /** Add spacing to tool bar. */ void addToolBarSpace(); @@ -42,7 +50,7 @@ public: /** Show window. */ void show(); - /** If grab is true, volume keys will generate pageUp/Down keys. */ + /** If grab is true, volume keys will generate pageUp/Down key events. */ void grabVolumeKeys(bool grab); public slots: @@ -57,9 +65,7 @@ protected: #endif BookView *bookView; bool grabbingVolumeKeys;/**< True, if volume keys should be grabbed. */ -#ifndef Q_OS_SYMBIAN QToolBar *toolBar; -#endif }; #endif // ADOPTERWINDOW_H