From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kppp/pwentry.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kppp/pwentry.cpp') 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 -#include +#include #include #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; } -- cgit v1.2.1