From de9496b2e6e2784dc4cc83dd5800f89f0954affc Mon Sep 17 00:00:00 2001 From: sandman Date: Tue, 08 Oct 2002 18:54:17 +0000 Subject: Fixed the rotation setting -- launcher adds the curent rotation when the applnk is started - so the .desktop file only needs the relative rotation. --- (limited to 'library/lnkproperties.cpp') diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp index 0b30a9a..745ee2c 100644 --- a/library/lnkproperties.cpp +++ b/library/lnkproperties.cpp @@ -116,7 +116,7 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) 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); @@ -289,16 +289,16 @@ void LnkProperties::done(int ok) 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; } } -- cgit v0.9.0.2