-rw-r--r-- | core/apps/taboapp/main.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/core/apps/taboapp/main.cpp b/core/apps/taboapp/main.cpp index e46c71f..e43f118 100644 --- a/core/apps/taboapp/main.cpp +++ b/core/apps/taboapp/main.cpp | |||
@@ -1,10 +1,14 @@ | |||
1 | #include <qdir.h> | 1 | /* OPIE */ |
2 | |||
3 | #include <qpe/qpeapplication.h> | ||
4 | #include <qpe/qlibrary.h> | ||
5 | #include <oappinterface.h> | 2 | #include <oappinterface.h> |
6 | #include <oappplugin.h> | 3 | #include <oappplugin.h> |
7 | 4 | #include <opie2/odebug.h> | |
8 | #include <opie2/otabwidget.h> | 5 | #include <opie2/otabwidget.h> |
6 | #include <qpe/qpeapplication.h> | ||
7 | #include <qpe/qlibrary.h> | ||
8 | using namespace Opie::Core; | ||
9 | using namespace Opie::Ui; | ||
10 | |||
11 | /* QT */ | ||
12 | #include <qdir.h> | ||
9 | 13 | ||
10 | int main( int argc, char **argv ) | 14 | int main( int argc, char **argv ) |
@@ -12,5 +16,5 @@ int main( int argc, char **argv ) | |||
12 | QPEApplication a( argc, argv ); | 16 | QPEApplication a( argc, argv ); |
13 | 17 | ||
14 | Opie::Ui::OTabWidget *tabwidget = new Opie::Ui::OTabWidget(0, "tab widget"); | 18 | OTabWidget *tabwidget = new OTabWidget(0, "tab widget"); |
15 | 19 | ||
16 | QString path = QPEApplication::qpeDir() + "/plugins/app"; | 20 | QString path = QPEApplication::qpeDir() + "/plugins/app"; |
@@ -24,7 +28,7 @@ int main( int argc, char **argv ) | |||
24 | QLibrary *lib = new QLibrary( path + "/" + *it ); | 28 | QLibrary *lib = new QLibrary( path + "/" + *it ); |
25 | 29 | ||
26 | qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); | 30 | odebug << "querying: " << QString( path + "/" + *it ) << "" << oendl; |
27 | if ( lib->queryInterface( IID_OAppInterface, (QUnknownInterface**)&iface ) == QS_OK ) { | 31 | if ( lib->queryInterface( IID_OAppInterface, (QUnknownInterface**)&iface ) == QS_OK ) { |
28 | qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() ); | 32 | odebug << "accepted: " << QString( path + "/" + *it ) << "" << oendl; |
29 | 33 | ||
30 | QList<QWidget> list = iface->widgets(); | 34 | QList<QWidget> list = iface->widgets(); |