summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 50cf5af..8dca4ab 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -64,4 +64,9 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
64 vbox->add( d ); 64 vbox->add( d );
65 65
66 // hide custom rotation feature for now, need a new implementation to fit quicklauch,
67 // is confusing for the user and doubtable useful since life rotation
68 d->rotate->hide();
69 d->rotateButtons->hide();
70
66 d->docname->setText(l->name()); 71 d->docname->setText(l->name());
67 QString inf; 72 QString inf;
@@ -116,5 +121,6 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
116 if ( !l->property("Rotation"). isEmpty ()) { 121 if ( !l->property("Rotation"). isEmpty ()) {
117 d->rotate->setChecked ( true ); 122 d->rotate->setChecked ( true );
118 d->rotateButtons->setButton((l->rotation().toInt()%360)/90); 123 //don't use rotate buttons for now (see comment above)
124 //d->rotateButtons->setButton((l->rotation().toInt()%360)/90);
119 } 125 }
120 else { 126 else {
@@ -169,8 +175,9 @@ void LnkProperties::setupLocations()
169 (*it)->disk() == "/dev/mtdblock/1" || 175 (*it)->disk() == "/dev/mtdblock/1" ||
170 (*it)->disk().left(13) == "/dev/mtdblock" || 176 (*it)->disk().left(13) == "/dev/mtdblock" ||
171 (*it)->disk() == "/dev/mtdblock6" || 177 (*it)->disk() == "/dev/mtdblock6" ||
178 (*it )->disk() == "/dev/root" ||
172 (*it)->disk() == "tmpfs" ) { 179 (*it)->disk() == "tmpfs" ) {
173 d->locationCombo->insertItem( (*it)->name(), index ); 180 d->locationCombo->insertItem( (*it)->name(), index );
174 locations.append( ( ((*it)->isRemovable() || 181 locations.append( ( ((*it)->isRemovable() ||
175 (*it)->disk() == "/dev/mtdblock6" || 182 (*it)->disk() == "/dev/mtdblock6" ||
176 (*it)->disk() == "tmpfs" ) 183 (*it)->disk() == "tmpfs" )
@@ -276,5 +283,5 @@ void LnkProperties::done(int ok)
276 bool changed=FALSE; 283 bool changed=FALSE;
277 bool reloadMime=FALSE; 284 bool reloadMime=FALSE;
278 285
279 if ( lnk->name() != d->docname->text() ) { 286 if ( lnk->name() != d->docname->text() ) {
280 lnk->setName(d->docname->text()); 287 lnk->setName(d->docname->text());
@@ -290,5 +297,5 @@ void LnkProperties::done(int ok)
290 if ( !d->rotate->isHidden()) { 297 if ( !d->rotate->isHidden()) {
291 QString newrot; 298 QString newrot;
292 299
293 if ( d->rotate->isChecked() ) { 300 if ( d->rotate->isChecked() ) {
294 int rot=0; 301 int rot=0;
@@ -310,5 +317,5 @@ void LnkProperties::done(int ok)
310 lnk->writeLink(); 317 lnk->writeLink();
311 } 318 }
312 319
313 if ( !d->preload->isHidden() ) { 320 if ( !d->preload->isHidden() ) {
314 Config cfg("Launcher"); 321 Config cfg("Launcher");