From b044a19bc3ea1983989c81e2743a3590fab85bae Mon Sep 17 00:00:00 2001
From: mickeyl <mickeyl>
Date: Tue, 24 Feb 2004 14:29:33 +0000
Subject: add missing patch from v1_0_3 disabling fixed custom rotation in favour of live rotation

---
(limited to 'library/lnkproperties.cpp')

diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 50cf5af..8dca4ab 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -63,6 +63,11 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
     d = new LnkPropertiesBase( this );
     vbox->add( d );
 
+    // hide custom rotation feature for now, need a new implementation to fit quicklauch,
+    // is confusing for the user and doubtable useful since life rotation
+    d->rotate->hide();
+    d->rotateButtons->hide();
+
     d->docname->setText(l->name());
     QString inf;
     if ( l->type().isEmpty() ) {
@@ -115,7 +120,8 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
 	    d->preload->hide();
 	if ( !l->property("Rotation"). isEmpty ()) {
 	    d->rotate->setChecked ( true );
-	    d->rotateButtons->setButton((l->rotation().toInt()%360)/90);
+            //don't use rotate buttons for now (see comment above)
+	    //d->rotateButtons->setButton((l->rotation().toInt()%360)/90);
 	}
 	else {
 	    d->rotateButtons->setEnabled(false);
@@ -168,10 +174,11 @@ void LnkProperties::setupLocations()
 		 (*it)->disk() == "/dev/mtdblock1" ||
 		 (*it)->disk() == "/dev/mtdblock/1" ||
 		 (*it)->disk().left(13) == "/dev/mtdblock" ||
-		 (*it)->disk() == "/dev/mtdblock6" || 
+		 (*it)->disk() == "/dev/mtdblock6" ||
+		 (*it )->disk() == "/dev/root" ||
 		 (*it)->disk() == "tmpfs" ) {
 		d->locationCombo->insertItem( (*it)->name(), index );
-		locations.append( ( ((*it)->isRemovable() || 
+		locations.append( ( ((*it)->isRemovable() ||
 				    (*it)->disk() == "/dev/mtdblock6" ||
 				    (*it)->disk() == "tmpfs" )
 				    ? (*it)->path() : homeDir) );
@@ -275,7 +282,7 @@ void LnkProperties::done(int ok)
     if ( ok ) {
 	bool changed=FALSE;
 	bool reloadMime=FALSE;
-	
+
 	if ( lnk->name() != d->docname->text() ) {
 	    lnk->setName(d->docname->text());
 	    changed=TRUE;
@@ -289,7 +296,7 @@ void LnkProperties::done(int ok)
 	}
 	if ( !d->rotate->isHidden()) {
 	    QString newrot;
-	
+
 	    if ( d->rotate->isChecked() ) {
 		int rot=0;
 		for(; rot<4; rot++) {
@@ -309,7 +316,7 @@ void LnkProperties::done(int ok)
 	} else if ( changed ) {
 	    lnk->writeLink();
 	}
-	
+
 	if ( !d->preload->isHidden() ) {
 	    Config cfg("Launcher");
 	    cfg.setGroup("Preload");
--
cgit v0.9.0.2