summaryrefslogtreecommitdiffstats
path: root/kppp/pwentry.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/pwentry.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}