author | zecke <zecke> | 2004-11-15 15:42:19 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-15 15:42:19 (UTC) |
commit | 4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead (patch) (side-by-side diff) | |
tree | 4efb6e720ee5dab11f02fac08acbf0156198b350 /noncore/settings/tabmanager/tabmainwindow.h | |
parent | 0d5b9141a5bda1406c513d174dbce95eb5ed0a97 (diff) | |
download | opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.zip opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.tar.gz opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.tar.bz2 |
Make tabmanager quick launchable
Diffstat (limited to 'noncore/settings/tabmanager/tabmainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/tabmanager/tabmainwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/tabmanager/tabmainwindow.h b/noncore/settings/tabmanager/tabmainwindow.h index 69fb15d..d154f1e 100644 --- a/noncore/settings/tabmanager/tabmainwindow.h +++ b/noncore/settings/tabmanager/tabmainwindow.h @@ -1,37 +1,39 @@ #ifndef TABMAINWINDOW_H #define TABMAINWINDOW_H #include "tabmanager.h" #include <qmainwindow.h> #include <qtoolbar.h> #include <qtoolbutton.h> #include <qpe/resource.h> class TabMainWindow : public QMainWindow { public: - TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){ + static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); } + + TabMainWindow( QWidget* parent = 0, const char* name = 0, WFlags fl = 0) : QMainWindow(parent, name, fl){ tabManager = new TabManager(this, "TabManger"); setCaption("Tab Manager"); setToolBarsMovable(false); this->setCentralWidget(tabManager); QToolBar *newToolBar = new QToolBar("toolbar", this); QToolBar *emptyToolBar = new QToolBar("empty", this); emptyToolBar->setHorizontalStretchable(true); // Insert all of the buttons. QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Application", 0, tabManager, SLOT(newApplication()), newToolBar); QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("trash"), "Delete", 0, tabManager, SLOT(removeItem()), newToolBar); }; protected: TabManager *tabManager; }; #endif // tabmainwindow.h |