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.cpp | 16 |
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() printf(" -F [filename] An input file (for when it makes sense) [Default = stdin]\n"); printf(" -E Makes list input editable\n"); - printf(" -g Disable fullscreen\n"); + printf(" -g Disable fullscreen\n\0"); } @@ -135,5 +135,5 @@ int fileviewer(QPEApplication *a, int argc, QStringList args) { int i; - QString filename, title; + QString filename, title, icon; bool update=false; @@ -148,4 +148,9 @@ int fileviewer(QPEApplication *a, int argc, QStringList args) } + if(args[i] == "-I") + { + icon=args[i+1]; + } + if(args[i] == "-t") { @@ -153,5 +158,5 @@ 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); fview->showMaximized(); @@ -194,5 +199,8 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args) if(args[i] == "-F") { - filename = args[i+1]; + if(args[i+1][0] != '-') + { + filename = args[i+1]; + } } |