summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/opie-sh.cpp
Unidiff
Diffstat (limited to 'noncore/tools/opie-sh/opie-sh.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/opie-sh/opie-sh.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/noncore/tools/opie-sh/opie-sh.cpp b/noncore/tools/opie-sh/opie-sh.cpp
index a1b8035..e898cb1 100644
--- a/noncore/tools/opie-sh/opie-sh.cpp
+++ b/noncore/tools/opie-sh/opie-sh.cpp
@@ -129,5 +129,5 @@ void printusage()
129 printf(" -F [filename] An input file (for when it makes sense) [Default = stdin]\n"); 129 printf(" -F [filename] An input file (for when it makes sense) [Default = stdin]\n");
130 printf(" -E Makes list input editable\n"); 130 printf(" -E Makes list input editable\n");
131 printf(" -g Disable fullscreen\n"); 131 printf(" -g Disable fullscreen\n\0");
132} 132}
133 133
@@ -135,5 +135,5 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
135{ 135{
136 int i; 136 int i;
137 QString filename, title; 137 QString filename, title, icon;
138 bool update=false; 138 bool update=false;
139 139
@@ -148,4 +148,9 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
148 } 148 }
149 149
150 if(args[i] == "-I")
151 {
152 icon=args[i+1];
153 }
154
150 if(args[i] == "-t") 155 if(args[i] == "-t")
151 { 156 {
@@ -153,5 +158,5 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
153 } 158 }
154 } 159 }
155 FViewer *fview = new FViewer(filename, title, 0, (QString) "fileviewer"); 160 FViewer *fview = new FViewer(icon, filename, title, 0, (QString) "fileviewer");
156 a->setMainWidget(fview); 161 a->setMainWidget(fview);
157 fview->showMaximized(); 162 fview->showMaximized();
@@ -194,5 +199,8 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args)
194 if(args[i] == "-F") 199 if(args[i] == "-F")
195 { 200 {
196 filename = args[i+1]; 201 if(args[i+1][0] != '-')
202 {
203 filename = args[i+1];
204 }
197 } 205 }
198 206