author | spiralman <spiralman> | 2002-05-27 00:59:37 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2002-05-27 00:59:37 (UTC) |
commit | d3451ccc7191bc2f761bae12b50c7ce274647bdb (patch) (side-by-side diff) | |
tree | f96f3c210de2c91d793d999e19bbcbc81ff02a99 /noncore/tools/opie-sh/opie-sh.cpp | |
parent | 95d2a3806a39bb31c9cca38c2c6158ecb77818e9 (diff) | |
download | opie-d3451ccc7191bc2f761bae12b50c7ce274647bdb.zip opie-d3451ccc7191bc2f761bae12b50c7ce274647bdb.tar.gz opie-d3451ccc7191bc2f761bae12b50c7ce274647bdb.tar.bz2 |
added help files and an icon in the Applications tab
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 @@ -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,3 +200,6 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args) { - filename = args[i+1]; + if(args[i+1][0] != '-') + { + filename = args[i+1]; + } } |