author | harlekin <harlekin> | 2003-03-25 23:06:12 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-25 23:06:12 (UTC) |
commit | aca404f0c049c5b1bace7e842e7e64b987f04616 (patch) (side-by-side diff) | |
tree | 31c0722de0784b8e5c83d2fd5a93d39cb96f13a5 /core/applets/rotateapplet/rotate.cpp | |
parent | 8ee32661cc5086c2cc34c4587de9649cd290579d (diff) | |
download | opie-aca404f0c049c5b1bace7e842e7e64b987f04616.zip opie-aca404f0c049c5b1bace7e842e7e64b987f04616.tar.gz opie-aca404f0c049c5b1bace7e842e7e64b987f04616.tar.bz2 |
better interaction with the rotate app
Diffstat (limited to 'core/applets/rotateapplet/rotate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index 8f323d6..653c61f 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp @@ -42,5 +42,4 @@ RotateApplet::RotateApplet ( ) { m_native = true; - m_startupRot = QPEApplication::defaultRotation(); } @@ -91,9 +90,10 @@ QPopupMenu *RotateApplet::popup ( QWidget * ) const void RotateApplet::activated ( ) { + int currentRotation = QPEApplication::defaultRotation(); int newRotation; if ( m_native == true ) { - newRotation = m_startupRot + 90; + newRotation = currentRotation + 90; } else { - newRotation = m_startupRot; + newRotation = currentRotation - 90; } QCopEnvelope env( "QPE/System", "setCurrentRotation(int)" ); |