diff options
Diffstat (limited to 'ksirc/ssfeprompt.cpp')
-rw-r--r-- | ksirc/ssfeprompt.cpp | 54 |
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" |