summaryrefslogtreecommitdiffstats
path: root/ksirc/ssfeprompt.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/ssfeprompt.cpp
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/ssfeprompt.cpp')
-rw-r--r--ksirc/ssfeprompt.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/ksirc/ssfeprompt.cpp b/ksirc/ssfeprompt.cpp
new file mode 100644
index 00000000..46e68909
--- /dev/null
+++ b/ksirc/ssfeprompt.cpp
@@ -0,0 +1,54 @@
+/**********************************************************************
+
+ --- Qt Architect generated file ---
+
+ File: ssfeprompt.cpp
+ Last generated: Thu Jan 15 20:49:56 1998
+
+ *********************************************************************/
+
+#include "ssfeprompt.h"
+#include <klocale.h>
+
+#undef Inherited
+#define Inherited ssfepromptdata
+
+ssfePrompt::ssfePrompt
+(
+ QString prompttext,
+ QWidget* parent,
+ const char* name
+)
+ :
+ Inherited( parent, name )
+{
+ setCaption( i18n("Prompt") );
+ prompt->setText(prompttext);
+ SLine->setFocus();
+}
+
+
+ssfePrompt::~ssfePrompt()
+{
+}
+
+void ssfePrompt::terminate()
+{
+ done(0);
+}
+
+QString ssfePrompt::text()
+{
+ QString text;
+ text = SLine->text();
+ return text;
+}
+
+void ssfePrompt::setPassword(bool pass)
+{
+ if(pass == TRUE)
+ SLine->setEchoMode(QLineEdit::Password);
+ else
+ SLine->setEchoMode(QLineEdit::Normal);
+}
+#include "ssfeprompt.moc"