-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 | |||
@@ -100,32 +100,35 @@ signals: | |||
100 | void clockChanged( bool pm ); | 100 | void clockChanged( bool pm ); |
101 | void micChanged( bool muted ); | 101 | void micChanged( bool muted ); |
102 | void volumeChanged( bool muted ); | 102 | void volumeChanged( bool muted ); |
103 | void appMessage( const QCString& msg, const QByteArray& data); | 103 | void appMessage( const QCString& msg, const QByteArray& data); |
104 | void weekChanged( bool startOnMonday ); | 104 | void weekChanged( bool startOnMonday ); |
105 | void dateFormatChanged( DateFormat ); | 105 | void dateFormatChanged( DateFormat ); |
106 | void flush(); | 106 | void flush(); |
107 | void reload(); | 107 | void reload(); |
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 * ); |
124 | bool raiseAppropriateWindow(); | 127 | bool raiseAppropriateWindow(); |
125 | virtual void tryQuit(); | 128 | virtual void tryQuit(); |
126 | #if QT_VERSION > 233 | 129 | #if QT_VERSION > 233 |
127 | virtual void polish ( QWidget * ); // this is actually implemented in qt_override.cpp (!) | 130 | virtual void polish ( QWidget * ); // this is actually implemented in qt_override.cpp (!) |
128 | #endif | 131 | #endif |
129 | private: | 132 | private: |
130 | #ifndef QT_NO_TRANSLATION | 133 | #ifndef QT_NO_TRANSLATION |
131 | void installTranslation( const QString& baseName ); | 134 | void installTranslation( const QString& baseName ); |
@@ -178,27 +181,27 @@ inline int TransToDeg ( Transformation t ) | |||
178 | inline Transformation DegToTrans ( int d ) | 181 | inline Transformation DegToTrans ( int d ) |
179 | { | 182 | { |
180 | Transformation t = static_cast<Transformation>( d / 90 ); | 183 | Transformation t = static_cast<Transformation>( d / 90 ); |
181 | return t; | 184 | return t; |
182 | } | 185 | } |
183 | 186 | ||
184 | /* | 187 | /* |
185 | * Set current rotation of Opie, and rotation for newly started apps. | 188 | * Set current rotation of Opie, and rotation for newly started apps. |
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 |