author | zecke <zecke> | 2004-01-27 18:48:09 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-01-27 18:48:09 (UTC) |
commit | fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb (patch) (unidiff) | |
tree | 453b0a48a4e40316ea377b0b4a05a39a16849136 /core/applets/rotateapplet | |
parent | 068604863e009b20790cd2aa482e216eb40b8876 (diff) | |
download | opie-fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb.zip opie-fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb.tar.gz opie-fbe767bcc9f46f1d9bf680dc91eba983bc39fdeb.tar.bz2 |
Funny what my SDK all triggers
Ok the reason to use a bool as return type is that you can
say that something worked or not worked.
So if we don't implement the given interface don't lie!!
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index 906063e..b676c74 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp | |||
@@ -221,34 +221,36 @@ void RotateApplet::activated() | |||
221 | else if ( rot == CW ) | 221 | else if ( rot == CW ) |
222 | { | 222 | { |
223 | newRotation = ( defaultRotation + 270 ) % 360; | 223 | newRotation = ( defaultRotation + 270 ) % 360; |
224 | } | 224 | } |
225 | else if ( rot == Flip ) | 225 | else if ( rot == Flip ) |
226 | { | 226 | { |
227 | newRotation = ( defaultRotation + 180 ) % 360; | 227 | newRotation = ( defaultRotation + 180 ) % 360; |
228 | } | 228 | } |
229 | } | 229 | } |
230 | 230 | ||
231 | QCopEnvelope env( "QPE/System", "setCurrentRotation(int)" ); | 231 | QCopEnvelope env( "QPE/System", "setCurrentRotation(int)" ); |
232 | env << newRotation; | 232 | env << newRotation; |
233 | 233 | ||
234 | m_flipped = !m_flipped; | 234 | m_flipped = !m_flipped; |
235 | } | 235 | } |
236 | 236 | ||
237 | 237 | ||
238 | QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 238 | QRESULT RotateApplet::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
239 | { | 239 | { |
240 | *iface = 0; | 240 | *iface = 0; |
241 | if ( uuid == IID_QUnknown ) | 241 | if ( uuid == IID_QUnknown ) |
242 | *iface = this; | 242 | *iface = this; |
243 | else if ( uuid == IID_MenuApplet ) | 243 | else if ( uuid == IID_MenuApplet ) |
244 | *iface = this; | 244 | *iface = this; |
245 | else | ||
246 | return QS_FALSE; | ||
245 | 247 | ||
246 | if ( *iface ) | 248 | if ( *iface ) |
247 | (*iface)->addRef(); | 249 | (*iface)->addRef(); |
248 | return QS_OK; | 250 | return QS_OK; |
249 | } | 251 | } |
250 | 252 | ||
251 | Q_EXPORT_INTERFACE() | 253 | Q_EXPORT_INTERFACE() |
252 | { | 254 | { |
253 | Q_CREATE_INSTANCE( RotateApplet ) | 255 | Q_CREATE_INSTANCE( RotateApplet ) |
254 | } | 256 | } |