summaryrefslogtreecommitdiff
path: root/library/lnkproperties.cpp
authormickeyl <mickeyl>2004-03-08 16:35:56 (UTC)
committer mickeyl <mickeyl>2004-03-08 16:35:56 (UTC)
commit82fb70f4e5d8582185da89264e1a1e3b2517f459 (patch) (unidiff)
tree12dfcfee4c95d3c96809397197c2b09e6e09cea6 /library/lnkproperties.cpp
parent15a9a86fbec54292a82663e1b01c93450f3fbbf8 (diff)
downloadopie-82fb70f4e5d8582185da89264e1a1e3b2517f459.zip
opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.tar.gz
opie-82fb70f4e5d8582185da89264e1a1e3b2517f459.tar.bz2
add a line where the user can insert command line arguments for the AppLnk
Diffstat (limited to 'library/lnkproperties.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/lnkproperties.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index 0661423..865f590 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -117,24 +117,27 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
117 117
118 if ( l->property("CanFastload") == "0" ) 118 if ( l->property("CanFastload") == "0" )
119 d->preload->hide(); 119 d->preload->hide();
120 if ( !l->property("Rotation"). isEmpty ()) { 120 if ( !l->property("Rotation"). isEmpty ()) {
121 d->rotate->setChecked ( true ); 121 d->rotate->setChecked ( true );
122 //don't use rotate buttons for now (see comment above) 122 //don't use rotate buttons for now (see comment above)
123 //d->rotateButtons->setButton((l->rotation().toInt()%360)/90); 123 //d->rotateButtons->setButton((l->rotation().toInt()%360)/90);
124 } 124 }
125 else { 125 else {
126 d->rotateButtons->setEnabled(false); 126 d->rotateButtons->setEnabled(false);
127 } 127 }
128 128
129 if ( !l->property( "Arguments" ).isEmpty() )
130 d->arguments->setText( l->property( "Arguments" ) );
131
129 Config cfg("Launcher"); 132 Config cfg("Launcher");
130 cfg.setGroup("Preload"); 133 cfg.setGroup("Preload");
131 QStringList apps = cfg.readListEntry("Apps",','); 134 QStringList apps = cfg.readListEntry("Apps",',');
132 d->preload->setChecked( apps.contains(l->exec()) ); 135 d->preload->setChecked( apps.contains(l->exec()) );
133 if ( Global::isBuiltinCommand(lnk->exec()) ) 136 if ( Global::isBuiltinCommand(lnk->exec()) )
134 d->preload->hide(); // builtins are always fast 137 d->preload->hide(); // builtins are always fast
135 138
136 currentLocation = 0; // apps not movable (yet) 139 currentLocation = 0; // apps not movable (yet)
137 } 140 }
138} 141}
139 142
140LnkProperties::~LnkProperties() 143LnkProperties::~LnkProperties()