Diffstat (limited to 'libopie2/opiecore/oapplication.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/oapplication.cpp | 11 |
1 files changed, 0 insertions, 11 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 | |||
@@ -45,29 +45,25 @@ class OApplicationPrivate | |||
45 | { | 45 | { |
46 | public: | 46 | public: |
47 | OApplicationPrivate() {}; | 47 | OApplicationPrivate() {}; |
48 | ~OApplicationPrivate() {}; | 48 | ~OApplicationPrivate() {}; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | /**************************************************************************************************/ | 51 | /**************************************************************************************************/ |
52 | /* OApplication | 52 | /* OApplication |
53 | /**************************************************************************************************/ | 53 | /**************************************************************************************************/ |
54 | 54 | ||
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 ) |
64 | { | 60 | { |
65 | init(); | 61 | init(); |
66 | } | 62 | } |
67 | 63 | ||
68 | 64 | ||
69 | OApplication::~OApplication() | 65 | OApplication::~OApplication() |
70 | { | 66 | { |
71 | delete d; | 67 | delete d; |
72 | if ( _config ) | 68 | if ( _config ) |
73 | delete _config; | 69 | delete _config; |
@@ -103,32 +99,25 @@ void OApplication::init() | |||
103 | sigaction(SIGSEGV, &sa, NULL); | 99 | sigaction(SIGSEGV, &sa, NULL); |
104 | */ | 100 | */ |
105 | } | 101 | } |
106 | else | 102 | else |
107 | { | 103 | { |
108 | qFatal( "OApplication: Can't create more than one OApplication object. Aborting." ); | 104 | qFatal( "OApplication: Can't create more than one OApplication object. Aborting." ); |
109 | } | 105 | } |
110 | } | 106 | } |
111 | 107 | ||
112 | 108 | ||
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 | } |
125 | 114 | ||
126 | 115 | ||
127 | void OApplication::setTitle( const QString& title ) const | 116 | void OApplication::setTitle( const QString& title ) const |
128 | { | 117 | { |
129 | if ( mainWidget() ) | 118 | if ( mainWidget() ) |
130 | { | 119 | { |
131 | if ( !title.isNull() ) | 120 | if ( !title.isNull() ) |
132 | mainWidget()->setCaption( QString(_appname) + QString( " - " ) + title ); | 121 | mainWidget()->setCaption( QString(_appname) + QString( " - " ) + title ); |
133 | else | 122 | else |
134 | mainWidget()->setCaption( _appname ); | 123 | mainWidget()->setCaption( _appname ); |