Diffstat (limited to 'noncore/tools/opie-sh/inputdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/opie-sh/inputdialog.cpp | 6 |
1 files changed, 6 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 @@ -76,12 +76,17 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString QTextStream stream(&file); QString string = stream.read(); listBox->insertStringList(QStringList::split('\n', string)); } break; + case 3: + lineEdit = new QLineEdit(this, "line edit"); + lineEdit->setEchoMode(QLineEdit::Password); + layout->addWidget(lineEdit); + break; } layout->addSpacing(5); x=(w/2)-(width()/2); y=(h/2)-(height()/2); @@ -90,12 +95,13 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString QString InputDialog::getString() { switch (type) { case 0: + case 3: return ((QLineEdit *)child("line edit"))->text(); break; case 1: return ((QComboBox *)child("combo box"))->currentText(); break; case 2: |