Diffstat (limited to 'core/applets/rotateapplet/rotate.cpp') (more/less context) (ignore whitespace changes)
-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 | } |