author | treke <treke> | 2003-12-09 03:25:26 (UTC) |
---|---|---|
committer | treke <treke> | 2003-12-09 03:25:26 (UTC) |
commit | 1440000b373d624956f7cbc693ac67e248b7bdb3 (patch) (side-by-side diff) | |
tree | 9c6cc91452b7a4ae9b122908c23a2588dc31f28e /core/applets/rotateapplet/rotate.cpp | |
parent | 1538a521b674d2eff02b926c0d82fa6184dd99db (diff) | |
download | opie-1440000b373d624956f7cbc693ac67e248b7bdb3.zip opie-1440000b373d624956f7cbc693ac67e248b7bdb3.tar.gz opie-1440000b373d624956f7cbc693ac67e248b7bdb3.tar.bz2 |
Disabling the rotationw worked, but the code was horribly unobvious. Rewriting for clarity.
Diffstat (limited to 'core/applets/rotateapplet/rotate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index 0da2f0c..dd71cad 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp @@ -117,51 +117,51 @@ void RotateApplet::rotateDefault ( ) { int rot = ODevice::inst()->rotation(); switch (rot) { case Rot0: rot=0; break; case Rot90: rot=90; break; case Rot180: rot=180; break; case Rot270: rot=270; break; default: rot=0; break; } Config cfg( "qpe" ); cfg.setGroup( "Appearance" ); - bool rotateDisabled = cfg.readBoolEntry( "rotateEnabled",false ); + bool rotateEnabled = cfg.readBoolEntry( "rotateEnabled",true ); - if (rotateDisabled == true) + if (rotateEnabled == false) return; // hide inputs methods before rotation QCopEnvelope en( "QPE/TaskBar", "hideInputMethod()" ); QCopEnvelope env( "QPE/System", "setCurrentRotation(int)" ); env << rot; m_flipped = false; } void RotateApplet::activated ( ) { int defaultRotation = QPEApplication::defaultRotation(); int newRotation = defaultRotation; Config cfg( "qpe" ); cfg.setGroup( "Appearance" ); int rotDirection = cfg.readNumEntry( "rotatedir" ); ODirection rot = CW; if (rotDirection == -1) { |