summaryrefslogtreecommitdiffstats
path: root/kppp/pwentry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/pwentry.cpp')
-rw-r--r--kppp/pwentry.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kppp/pwentry.cpp b/kppp/pwentry.cpp
index aef02aa7..5e6397a5 100644
--- a/kppp/pwentry.cpp
+++ b/kppp/pwentry.cpp
@@ -26,41 +26,41 @@
#include <stdio.h>
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kglobalsettings.h>
#include "pwentry.h"
-PWEntry::PWEntry( QWidget *parent, const char *name )
- : QWidget(NULL, name) {
+PWEntry::PWEntry( TQWidget *parent, const char *name )
+ : TQWidget(NULL, name) {
if(parent){
- QPoint point = mapToGlobal (QPoint (0,0));
- QRect pos = geometry();
+ TQPoint point = mapToGlobal (TQPoint (0,0));
+ TQRect pos = geometry();
setGeometry(point.x() + pos.width()/2 - 300/2,
point.y() + pos.height()/2 - 90/2,
300,
90);
} else {
- QRect desk = KGlobalSettings::desktopGeometry(parent);
+ TQRect desk = KGlobalSettings::desktopGeometry(parent);
setGeometry( desk.center().x() - 150, desk.center().y() - 50, 300, 90 );
}
- frame = new QGroupBox(name, this );
+ frame = new TQGroupBox(name, this );
- setFocusPolicy( QWidget::StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
- pw = new QLineEdit( this, "le" );
- pw->setEchoMode( QLineEdit::Password );
- connect( pw, SIGNAL(returnPressed()), this, SLOT(hide()) );
+ pw = new TQLineEdit( this, "le" );
+ pw->setEchoMode( TQLineEdit::Password );
+ connect( pw, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(hide()) );
isconsumed = TRUE;
}
-QString PWEntry::text() { return (pw->text()); }
+TQString PWEntry::text() { return (pw->text()); }
-void PWEntry::focusInEvent( QFocusEvent *){
+void PWEntry::focusInEvent( TQFocusEvent *){
pw->setFocus();
@@ -68,23 +68,23 @@ void PWEntry::focusInEvent( QFocusEvent *){
void PWEntry::setEchoModeNormal() {
- pw->setEchoMode(QLineEdit::Normal);
+ pw->setEchoMode(TQLineEdit::Normal);
}
void PWEntry::setEchoModePassword() {
- pw->setEchoMode(QLineEdit::Password);
+ pw->setEchoMode(TQLineEdit::Password);
}
-void PWEntry::setPrompt(const QString &p) {
+void PWEntry::setPrompt(const TQString &p) {
frame->setTitle(p);
}
-void PWEntry::resizeEvent(QResizeEvent* ){
+void PWEntry::resizeEvent(TQResizeEvent* ){
pw->setGeometry( 15,35, width() - 30, 25 );
frame->setGeometry(5,5, width() - 10, height() - 10 );
@@ -96,7 +96,7 @@ void PWEntry::show() {
pw->setText("");
isconsumed = FALSE;
- QWidget::show();
+ TQWidget::show();
}
bool PWEntry::Consumed() {
@@ -108,7 +108,7 @@ void PWEntry::setConsumed() {
}
void PWEntry::hide() {
- QWidget::hide();
+ TQWidget::hide();
return;
}