author | tille <tille> | 2003-08-25 14:06:41 (UTC) |
---|---|---|
committer | tille <tille> | 2003-08-25 14:06:41 (UTC) |
commit | 5f292b6e4fc0f4ee8e4bced9a916f6bdce864b6b (patch) (unidiff) | |
tree | 6a0d25ed238d8175694cee322b6871120931e9e8 | |
parent | c817abf3b81ca47927433ede1efd9afddfc15a72 (diff) | |
download | opie-5f292b6e4fc0f4ee8e4bced9a916f6bdce864b6b.zip opie-5f292b6e4fc0f4ee8e4bced9a916f6bdce864b6b.tar.gz opie-5f292b6e4fc0f4ee8e4bced9a916f6bdce864b6b.tar.bz2 |
remoce this stupid bug once again...
-rw-r--r-- | libopie2/opiecore/oapplication.cpp | 11 | ||||
-rw-r--r-- | libopie2/opiecore/oapplication.h | 11 | ||||
-rw-r--r-- | libopie2/opiecore/opiecore.pro | 9 |
3 files changed, 8 insertions, 23 deletions
diff --git a/libopie2/opiecore/oapplication.cpp b/libopie2/opiecore/oapplication.cpp index 84cab48..c3cacce 100644 --- a/libopie2/opiecore/oapplication.cpp +++ b/libopie2/opiecore/oapplication.cpp | |||
@@ -55,9 +55,5 @@ class OApplicationPrivate | |||
55 | 55 | ||
56 | OApplication::OApplication( int& argc, char** argv, const QCString& rAppName ) | 56 | OApplication::OApplication( int& argc, char** argv, const QCString& rAppName ) |
57 | #ifdef QWS | ||
58 | :QPEApplication( argc, argv ), | 57 | :QPEApplication( argc, argv ), |
59 | #else | ||
60 | :QApplication( argc, argv ), | ||
61 | #endif | ||
62 | _appname( rAppName ), | 58 | _appname( rAppName ), |
63 | _config( 0 ) | 59 | _config( 0 ) |
@@ -113,12 +109,5 @@ void OApplication::init() | |||
113 | void OApplication::showMainWidget( QWidget* widget, bool nomax ) | 109 | void OApplication::showMainWidget( QWidget* widget, bool nomax ) |
114 | { | 110 | { |
115 | #ifdef QWS | ||
116 | QPEApplication::showMainWidget( widget, nomax ); | 111 | QPEApplication::showMainWidget( widget, nomax ); |
117 | #else | ||
118 | // tille: I am quit sure if this is the right way to do.. | ||
119 | odDebug(nomax,7) << "ignoring nomax"; | ||
120 | setMainWidget( widget ); | ||
121 | widget->show(); | ||
122 | #endif | ||
123 | widget->setCaption( _appname ); | 112 | widget->setCaption( _appname ); |
124 | } | 113 | } |
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h index 3043910..72a659e 100644 --- a/libopie2/opiecore/oapplication.h +++ b/libopie2/opiecore/oapplication.h | |||
@@ -34,18 +34,13 @@ | |||
34 | #define oApp OApplication::oApplication() | 34 | #define oApp OApplication::oApplication() |
35 | 35 | ||
36 | #ifdef QWS | 36 | |
37 | #include <qpe/qpeapplication.h> | 37 | #include <qpe/qpeapplication.h> |
38 | #else | 38 | |
39 | #include <qapplication.h> | ||
40 | #endif | ||
41 | 39 | ||
42 | class OApplicationPrivate; | 40 | class OApplicationPrivate; |
43 | class OConfig; | 41 | class OConfig; |
44 | 42 | ||
45 | #ifdef QWS | 43 | |
46 | class OApplication : public QPEApplication | 44 | class OApplication : public QPEApplication |
47 | #else | ||
48 | class OApplication : public QApplication | ||
49 | #endif | ||
50 | { | 45 | { |
51 | Q_OBJECT | 46 | Q_OBJECT |
diff --git a/libopie2/opiecore/opiecore.pro b/libopie2/opiecore/opiecore.pro index c8a291a..18c6986 100644 --- a/libopie2/opiecore/opiecore.pro +++ b/libopie2/opiecore/opiecore.pro | |||
@@ -2,6 +2,5 @@ TEMPLATE = lib | |||
2 | CONFIG += qt warn_on debug | 2 | CONFIG += qt warn_on debug |
3 | DESTDIR = $(OPIEDIR)/lib | 3 | DESTDIR = $(OPIEDIR)/lib |
4 | HEADERS = oapplication.h \ | 4 | HEADERS = oconfig.h \ |
5 | oconfig.h \ | ||
6 | ocompletionbase.h \ | 5 | ocompletionbase.h \ |
7 | ocompletion.h \ | 6 | ocompletion.h \ |
@@ -11,6 +10,5 @@ HEADERS = oapplication.h \ | |||
11 | osortablevaluelist.h | 10 | osortablevaluelist.h |
12 | 11 | ||
13 | SOURCES = oapplication.cpp \ | 12 | SOURCES = oconfig.cpp \ |
14 | oconfig.cpp \ | ||
15 | ocompletionbase.cpp \ | 13 | ocompletionbase.cpp \ |
16 | ocompletion.cpp \ | 14 | ocompletion.cpp \ |
@@ -29,4 +27,6 @@ OBJECTS_DIR = obj | |||
29 | 27 | ||
30 | !contains( platform, x11 ) { | 28 | !contains( platform, x11 ) { |
29 | HEADERS += oapplication.h | ||
30 | SOURCES += oapplication.cpp | ||
31 | LIBS = -lqpe | 31 | LIBS = -lqpe |
32 | include ( $(OPIEDIR)/include.pro ) | 32 | include ( $(OPIEDIR)/include.pro ) |
@@ -34,4 +34,5 @@ OBJECTS_DIR = obj | |||
34 | 34 | ||
35 | contains( platform, x11 ) { | 35 | contains( platform, x11 ) { |
36 | message( NOT building oapplication for X11 ) | ||
36 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | 37 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib |
37 | } | 38 | } |