-rw-r--r-- | library/lnkproperties.cpp | 19 |
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 @@ -62,8 +62,13 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) QVBoxLayout *vbox = new QVBoxLayout( this ); 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() ) { d->type->hide(); @@ -114,9 +119,10 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) if ( l->property("CanFastload") == "0" ) 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); } @@ -167,12 +173,13 @@ void LnkProperties::setupLocations() if ( (*it)->isRemovable() || (*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) ); if ( lnk->file().contains( (*it)->path() ) ) { @@ -274,9 +281,9 @@ 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; } @@ -288,9 +295,9 @@ void LnkProperties::done(int ok) } } if ( !d->rotate->isHidden()) { QString newrot; - + if ( d->rotate->isChecked() ) { int rot=0; for(; rot<4; rot++) { if (d->rotateButtons->find(rot)->isOn()) @@ -308,9 +315,9 @@ void LnkProperties::done(int ok) moveLnk(); } else if ( changed ) { lnk->writeLink(); } - + if ( !d->preload->isHidden() ) { Config cfg("Launcher"); cfg.setGroup("Preload"); QStringList apps = cfg.readListEntry("Apps",','); |