summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/opie-sh.cpp
Side-by-side diff
Diffstat (limited to 'noncore/tools/opie-sh/opie-sh.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/opie-sh/opie-sh.cpp14
1 files changed, 11 insertions, 3 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
@@ -130,3 +130,3 @@ void printusage()
printf(" -E Makes list input editable\n");
- printf(" -g Disable fullscreen\n");
+ printf(" -g Disable fullscreen\n\0");
}
@@ -136,3 +136,3 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
int i;
- QString filename, title;
+ QString filename, title, icon;
bool update=false;
@@ -149,2 +149,7 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
+ if(args[i] == "-I")
+ {
+ icon=args[i+1];
+ }
+
if(args[i] == "-t")
@@ -154,3 +159,3 @@ int fileviewer(QPEApplication *a, int argc, QStringList args)
}
- FViewer *fview = new FViewer(filename, title, 0, (QString) "fileviewer");
+ FViewer *fview = new FViewer(icon, filename, title, 0, (QString) "fileviewer");
a->setMainWidget(fview);
@@ -195,4 +200,7 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args)
{
+ if(args[i+1][0] != '-')
+ {
filename = args[i+1];
}
+ }