author | zecke <zecke> | 2003-08-29 06:52:04 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-29 06:52:04 (UTC) |
commit | d8fadaf4f510803983d0b8b99994fd70e770ccab (patch) (unidiff) | |
tree | 3921c576b3dbd0dc4fd3ccfe4d39204522bf57a6 /library/qpeapplication.h | |
parent | b9861471966f8bb0e3bea2db58a0d1289add1d4f (diff) | |
download | opie-d8fadaf4f510803983d0b8b99994fd70e770ccab.zip opie-d8fadaf4f510803983d0b8b99994fd70e770ccab.tar.gz opie-d8fadaf4f510803983d0b8b99994fd70e770ccab.tar.bz2 |
-IF the app is visible and has more than once topLevel widget
iterate over the list and activate the next one.
-Install translation in .qm
-Add an else again ( was lost in a merge )
-rw-r--r-- | library/qpeapplication.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 770ea23..343e0b9 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h | |||
@@ -108,16 +108,19 @@ signals: | |||
108 | /* linkChanged signal */ | 108 | /* linkChanged signal */ |
109 | 109 | ||
110 | private slots: | 110 | private slots: |
111 | void systemMessage( const QCString &msg, const QByteArray &data ); | 111 | void systemMessage( const QCString &msg, const QByteArray &data ); |
112 | void pidMessage( const QCString &msg, const QByteArray &data ); | 112 | void pidMessage( const QCString &msg, const QByteArray &data ); |
113 | void removeSenderFromStylusDict(); | 113 | void removeSenderFromStylusDict(); |
114 | void hideOrQuit(); | 114 | void hideOrQuit(); |
115 | 115 | ||
116 | private: | ||
117 | inline QWidget *nextWidget( QWidgetList*, QWidget* ); | ||
118 | |||
116 | protected: | 119 | protected: |
117 | bool qwsEventFilter( QWSEvent * ); | 120 | bool qwsEventFilter( QWSEvent * ); |
118 | void internalSetStyle( const QString &style ); | 121 | void internalSetStyle( const QString &style ); |
119 | void prepareForTermination(bool willrestart); | 122 | void prepareForTermination(bool willrestart); |
120 | virtual void restart(); | 123 | virtual void restart(); |
121 | virtual void shutdown(); | 124 | virtual void shutdown(); |
122 | bool eventFilter( QObject *, QEvent * ); | 125 | bool eventFilter( QObject *, QEvent * ); |
123 | void timerEvent( QTimerEvent * ); | 126 | void timerEvent( QTimerEvent * ); |
@@ -186,19 +189,19 @@ inline Transformation DegToTrans ( int d ) | |||
186 | * Differs from setDefaultRotation in that 1) it rotates currently running apps, | 189 | * Differs from setDefaultRotation in that 1) it rotates currently running apps, |
187 | * and 2) does not set deforient or save orientation to qpe.conf. | 190 | * and 2) does not set deforient or save orientation to qpe.conf. |
188 | */ | 191 | */ |
189 | 192 | ||
190 | inline void QPEApplication::setCurrentRotation( int r ) | 193 | inline void QPEApplication::setCurrentRotation( int r ) |
191 | { | 194 | { |
192 | // setTransformation has been introduced in Qt/Embedded 2.3.4 snapshots | 195 | // setTransformation has been introduced in Qt/Embedded 2.3.4 snapshots |
193 | // for compatibility with the SharpROM use fallback to setDefaultTransformation() | 196 | // for compatibility with the SharpROM use fallback to setDefaultTransformation() |
194 | #if QT_VERSION > 233 | 197 | #if QT_VERSION > 233 |
195 | Transformation e = DegToTrans( r ); | 198 | Transformation e = DegToTrans( r ); |
196 | setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); | 199 | ::setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); |
197 | qApp->desktop()->qwsDisplay()->setTransformation( e ); | 200 | qApp->desktop()->qwsDisplay()->setTransformation( e ); |
198 | #else | 201 | #else |
199 | setDefaultRotation( r ); | 202 | setDefaultRotation( r ); |
200 | #endif | 203 | #endif |
201 | } | 204 | } |
202 | 205 | ||
203 | 206 | ||
204 | #endif | 207 | #endif |