Diffstat (limited to 'noncore/settings/tabmanager/tabmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/tabmanager/tabmainwindow.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/noncore/settings/tabmanager/tabmainwindow.h b/noncore/settings/tabmanager/tabmainwindow.h index c76ad9f..69fb15d 100644 --- a/noncore/settings/tabmanager/tabmainwindow.h +++ b/noncore/settings/tabmanager/tabmainwindow.h | |||
@@ -4,32 +4,35 @@ | |||
4 | #include "tabmanager.h" | 4 | #include "tabmanager.h" |
5 | #include <qmainwindow.h> | 5 | #include <qmainwindow.h> |
6 | #include <qtoolbar.h> | 6 | #include <qtoolbar.h> |
7 | #include <qtoolbutton.h> | 7 | #include <qtoolbutton.h> |
8 | #include <qpe/resource.h> | 8 | #include <qpe/resource.h> |
9 | 9 | ||
10 | class TabMainWindow : public QMainWindow { | 10 | class TabMainWindow : public QMainWindow { |
11 | 11 | ||
12 | public: | 12 | public: |
13 | TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){ | 13 | TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){ |
14 | tabManager = new TabManager(this, "TabManger"); | 14 | tabManager = new TabManager(this, "TabManger"); |
15 | setCaption("Tab Manager"); | 15 | setCaption("Tab Manager"); |
16 | setToolBarsMovable(false); | ||
16 | this->setCentralWidget(tabManager); | 17 | this->setCentralWidget(tabManager); |
17 | QToolBar *newToolBar = new QToolBar("toolbar", this); | 18 | QToolBar *newToolBar = new QToolBar("toolbar", this); |
18 | 19 | QToolBar *emptyToolBar = new QToolBar("empty", this); | |
19 | // Insert all of the buttons. | 20 | emptyToolBar->setHorizontalStretchable(true); |
21 | |||
22 | // Insert all of the buttons. | ||
20 | QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); | 23 | QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); |
21 | QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Folder", 0, tabManager, SLOT(newApplication()), newToolBar); | 24 | QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Application", 0, tabManager, SLOT(newApplication()), newToolBar); |
22 | QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); | 25 | QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); |
23 | QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("reset"), "Deelete", 0, tabManager, SLOT(removeItem()), newToolBar); | 26 | QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("trash"), "Delete", 0, tabManager, SLOT(removeItem()), newToolBar); |
24 | 27 | ||
25 | }; | 28 | }; |
26 | 29 | ||
27 | protected: | 30 | protected: |
28 | TabManager *tabManager; | 31 | TabManager *tabManager; |
29 | 32 | ||
30 | }; | 33 | }; |
31 | 34 | ||
32 | #endif | 35 | #endif |
33 | 36 | ||
34 | // tabmainwindow.h | 37 | // tabmainwindow.h |
35 | 38 | ||