-rw-r--r-- | core/apps/taboapp/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/taboapp/main.cpp b/core/apps/taboapp/main.cpp index 5f7f86c..4b9451e 100644 --- a/core/apps/taboapp/main.cpp +++ b/core/apps/taboapp/main.cpp | |||
@@ -1,21 +1,21 @@ | |||
1 | #include <qdir.h> | 1 | #include <qdir.h> |
2 | 2 | ||
3 | #include <qpe/global.h> | 3 | #include <qpe/global.h> |
4 | #include <qpe/qpeapplication.h> | 4 | #include <qpe/qpeapplication.h> |
5 | #include <qpe/qlibrary.h> | 5 | #include <qpe/qlibrary.h> |
6 | #include <oappinterface.h> | 6 | #include <oappinterface.h> |
7 | #include <oappplugin.h> | 7 | #include <oappplugin.h> |
8 | 8 | ||
9 | #include <opie/otabwidget.h> | 9 | #include <opie2/otabwidget.h> |
10 | 10 | ||
11 | int main( int argc, char **argv ) | 11 | int main( int argc, char **argv ) |
12 | { | 12 | { |
13 | QPEApplication a( argc, argv ); | 13 | QPEApplication a( argc, argv ); |
14 | 14 | ||
15 | OTabWidget *tabwidget = new OTabWidget(0, "tab widget"); | 15 | OTabWidget *tabwidget = new OTabWidget(0, "tab widget"); |
16 | 16 | ||
17 | QString path = QPEApplication::qpeDir() + "/plugins/app"; | 17 | QString path = QPEApplication::qpeDir() + "/plugins/app"; |
18 | QDir dir( path, "lib*.so" ); | 18 | QDir dir( path, "lib*.so" ); |
19 | 19 | ||
20 | QStringList list = dir.entryList(); | 20 | QStringList list = dir.entryList(); |
21 | QStringList::Iterator it; | 21 | QStringList::Iterator it; |
@@ -41,14 +41,14 @@ int main( int argc, char **argv ) | |||
41 | if (type.left(3) == "lib") | 41 | if (type.left(3) == "lib") |
42 | type = type.mid(3); | 42 | type = type.mid(3); |
43 | type = type.right( type.find("lib") ); | 43 | type = type.right( type.find("lib") ); |
44 | QString tfn = QPEApplication::qpeDir()+"/i18n/"+lang+"/"+type+".qm"; | 44 | QString tfn = QPEApplication::qpeDir()+"/i18n/"+lang+"/"+type+".qm"; |
45 | if ( trans->load( tfn )) | 45 | if ( trans->load( tfn )) |
46 | qApp->installTranslator( trans ); | 46 | qApp->installTranslator( trans ); |
47 | else | 47 | else |
48 | delete trans; | 48 | delete trans; |
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | a.showMainDocumentWidget(tabwidget); | 52 | a.showMainDocumentWidget(tabwidget); |
53 | return a.exec(); | 53 | return a.exec(); |
54 | } | 54 | } |