summaryrefslogtreecommitdiff
Side-by-side diff
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 )
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 {
@@ -290,5 +290,5 @@ void LnkProperties::done(int ok)
QString newrot;
- if (d->rotate->isChecked()) {
+ if ( d->rotate->isChecked() ) {
int rot=0;
for(; rot<4; rot++) {
@@ -296,8 +296,8 @@ void LnkProperties::done(int ok)
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;
}