author | sandman <sandman> | 2002-10-08 18:54:17 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-08 18:54:17 (UTC) |
commit | de9496b2e6e2784dc4cc83dd5800f89f0954affc (patch) (side-by-side diff) | |
tree | 4e90fd6992bcc3389f686e32d83f58ab33eccdf8 /library | |
parent | a2b0a1fd69182b814b9b553868163003277e6579 (diff) | |
download | opie-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.
-rw-r--r-- | library/lnkproperties.cpp | 10 |
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 @@ -113,13 +113,13 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) d->docname->setReadOnly( TRUE ); if ( l->property("CanFastload") == "0" ) d->preload->hide(); if ( !l->property("Rotation"). isEmpty ()) { d->rotate->setChecked ( true ); - d->rotateButtons->setButton(((QPEApplication::defaultRotation()+l->rotation().toInt())%360)/90); + d->rotateButtons->setButton((l->rotation().toInt()%360)/90); } else { d->rotateButtons->setEnabled(false); } Config cfg("Launcher"); @@ -286,22 +286,22 @@ void LnkProperties::done(int ok) changed = TRUE; } } if ( !d->rotate->isHidden()) { QString newrot; - if (d->rotate->isChecked()) { + if ( d->rotate->isChecked() ) { int rot=0; for(; rot<4; rot++) { if (d->rotateButtons->find(rot)->isOn()) break; } - newrot = QString::number((QPEApplication::defaultRotation()+rot*90)%360); + newrot = QString::number((rot*90)%360); } - if (newrot !=lnk->rotation()) { - lnk->setRotation(newrot); + if ( newrot != lnk->rotation() ) { + lnk-> setRotation(newrot); changed = TRUE; } } if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { moveLnk(); } else if ( changed ) { |