summaryrefslogtreecommitdiff
authorsandman <sandman>2002-10-08 18:54:17 (UTC)
committer sandman <sandman>2002-10-08 18:54:17 (UTC)
commitde9496b2e6e2784dc4cc83dd5800f89f0954affc (patch) (unidiff)
tree4e90fd6992bcc3389f686e32d83f58ab33eccdf8
parenta2b0a1fd69182b814b9b553868163003277e6579 (diff)
downloadopie-de9496b2e6e2784dc4cc83dd5800f89f0954affc.zip
opie-de9496b2e6e2784dc4cc83dd5800f89f0954affc.tar.gz
opie-de9496b2e6e2784dc4cc83dd5800f89f0954affc.tar.bz2
Fixed the rotation setting -- launcher adds the curent rotation when the
applnk is started - so the .desktop file only needs the relative rotation.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 0b30a9a..745ee2c 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -117,5 +117,5 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
117 if ( !l->property("Rotation"). isEmpty ()) { 117 if ( !l->property("Rotation"). isEmpty ()) {
118 d->rotate->setChecked ( true ); 118 d->rotate->setChecked ( true );
119 d->rotateButtons->setButton(((QPEApplication::defaultRotation()+l->rotation().toInt())%360)/90); 119 d->rotateButtons->setButton((l->rotation().toInt()%360)/90);
120 } 120 }
121 else { 121 else {
@@ -290,5 +290,5 @@ void LnkProperties::done(int ok)
290 QString newrot; 290 QString newrot;
291 291
292 if (d->rotate->isChecked()) { 292 if ( d->rotate->isChecked() ) {
293 int rot=0; 293 int rot=0;
294 for(; rot<4; rot++) { 294 for(; rot<4; rot++) {
@@ -296,8 +296,8 @@ void LnkProperties::done(int ok)
296 break; 296 break;
297 } 297 }
298 newrot = QString::number((QPEApplication::defaultRotation()+rot*90)%360); 298 newrot = QString::number((rot*90)%360);
299 } 299 }
300 if (newrot !=lnk->rotation()) { 300 if ( newrot != lnk->rotation() ) {
301 lnk->setRotation(newrot); 301 lnk-> setRotation(newrot);
302 changed = TRUE; 302 changed = TRUE;
303 } 303 }