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 | |
parent | 0d5b9141a5bda1406c513d174dbce95eb5ed0a97 (diff) | |
download | opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.zip opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.tar.gz opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.tar.bz2 |
Make tabmanager quick launchable
-rw-r--r-- | noncore/settings/tabmanager/main.cpp | 11 | ||||
-rw-r--r-- | noncore/settings/tabmanager/tabmainwindow.h | 4 | ||||
-rw-r--r-- | noncore/settings/tabmanager/tabmanager.pro | 4 |
3 files changed, 6 insertions, 13 deletions
diff --git a/noncore/settings/tabmanager/main.cpp b/noncore/settings/tabmanager/main.cpp index f737de5..cf6f835 100644 --- a/noncore/settings/tabmanager/main.cpp +++ b/noncore/settings/tabmanager/main.cpp @@ -1,12 +1,5 @@ #include "tabmainwindow.h" -#include <qpe/qpeapplication.h> +#include <opie2/oapplicationfactory.h> -int main( int argc, char **argv ){ - QPEApplication application( argc, argv ); - TabMainWindow mainWindow; - application.showMainWidget(&mainWindow); - return application.exec(); -} - -//main.cpp +OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<TabMainWindow> ) 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 @@ -9,9 +9,11 @@ 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); diff --git a/noncore/settings/tabmanager/tabmanager.pro b/noncore/settings/tabmanager/tabmanager.pro index d4aac43..f65a1d7 100644 --- a/noncore/settings/tabmanager/tabmanager.pro +++ b/noncore/settings/tabmanager/tabmanager.pro @@ -1,12 +1,10 @@ -TEMPLATE = app -CONFIG = qt warn_on +CONFIG = qt quick-app HEADERS = tabmanager.h tabmainwindow.h tablistview.h tabmanagerbase.h tabapplnk.h SOURCES = main.cpp tabmanager.cpp tabmanagerbase.cpp INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopiecore2 INTERFACES = app.ui wait.ui TARGET = tabmanager -DESTDIR = $(OPIEDIR)/bin include ( $(OPIEDIR)/include.pro ) |