summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/opie-sh/inputdialog.cpp6
-rw-r--r--noncore/tools/opie-sh/opie-sh.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/noncore/tools/opie-sh/inputdialog.cpp b/noncore/tools/opie-sh/inputdialog.cpp
index 1c4e688..8046795 100644
--- a/noncore/tools/opie-sh/inputdialog.cpp
+++ b/noncore/tools/opie-sh/inputdialog.cpp
@@ -81,2 +81,7 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString
81 break; 81 break;
82 case 3:
83 lineEdit = new QLineEdit(this, "line edit");
84 lineEdit->setEchoMode(QLineEdit::Password);
85 layout->addWidget(lineEdit);
86 break;
82 } 87 }
@@ -95,2 +100,3 @@ QString InputDialog::getString()
95 case 0: 100 case 0:
101 case 3:
96 return ((QLineEdit *)child("line edit"))->text(); 102 return ((QLineEdit *)child("line edit"))->text();
diff --git a/noncore/tools/opie-sh/opie-sh.cpp b/noncore/tools/opie-sh/opie-sh.cpp
index 96b4b93..a353d3f 100644
--- a/noncore/tools/opie-sh/opie-sh.cpp
+++ b/noncore/tools/opie-sh/opie-sh.cpp
@@ -128,2 +128,3 @@ void printusage()
128 printf(" -b A list box, enabling multiple selections (input same as -l)\n"); 128 printf(" -b A list box, enabling multiple selections (input same as -l)\n");
129 printf(" -p Password input (display '*'s)\n");
129 printf(" -L [label] The label for the input field\n"); 130 printf(" -L [label] The label for the input field\n");
@@ -189,2 +190,7 @@ int input(int wi, int h, QWidget *w, int argc, QStringList args)
189 190
191 if(args[i] == "-p")
192 {
193 type = 3;
194 }
195
190 if(args[i] == "-t") 196 if(args[i] == "-t")