From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: Enable compilation with TQt for Qt4 3.4.0 TP2 This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdepasswd/kcm/chfacedlg.cpp | 2 +- kdepasswd/kcm/chfnprocess.cpp | 8 +++---- kdepasswd/kcm/main.cpp | 8 +++---- kdepasswd/kcm/main_widget.ui | 50 +++++++++++++++++++++---------------------- 4 files changed, 34 insertions(+), 34 deletions(-) (limited to 'kdepasswd/kcm') diff --git a/kdepasswd/kcm/chfacedlg.cpp b/kdepasswd/kcm/chfacedlg.cpp index c5f700338..8344164db 100644 --- a/kdepasswd/kcm/chfacedlg.cpp +++ b/kdepasswd/kcm/chfacedlg.cpp @@ -128,7 +128,7 @@ void ChFaceDlg::addCustomPixmap( TQString imPath, bool saveCopy ) } if ( (pix.width() > KCFGUserAccount::faceSize()) || (pix.height() > KCFGUserAccount::faceSize()) ) - pix = pix.scale( KCFGUserAccount::faceSize(), KCFGUserAccount::faceSize(), TQImage::ScaleMin );// Should be no bigger than certain size. + pix = pix.scale( KCFGUserAccount::faceSize(), KCFGUserAccount::faceSize(), TQ_ScaleMin );// Should be no bigger than certain size. if ( saveCopy ) { diff --git a/kdepasswd/kcm/chfnprocess.cpp b/kdepasswd/kcm/chfnprocess.cpp index 4f6af0add..76d5209ea 100644 --- a/kdepasswd/kcm/chfnprocess.cpp +++ b/kdepasswd/kcm/chfnprocess.cpp @@ -60,7 +60,7 @@ int ChfnProcess::ConverseChfn(const char *pass) if ( line.isEmpty() ) continue;// discard line - if ( line.contains( "Password: " )/*isPrompt( line, "password" )*/ ) + if ( line.tqcontains( "Password: " )/*isPrompt( line, "password" )*/ ) { WaitSlave(); write(m_Fd, pass, strlen(pass)); @@ -69,11 +69,11 @@ int ChfnProcess::ConverseChfn(const char *pass) line = readLine(); // Let's see what the outcome was - if ( line.contains( "Changing finger info" ) ) + if ( line.tqcontains( "Changing finger info" ) ) { // do nothing } - else if ( line.contains( "information changed" ) ) + else if ( line.tqcontains( "information changed" ) ) { status=0; break; @@ -83,7 +83,7 @@ int ChfnProcess::ConverseChfn(const char *pass) status=0; break; } - else if ( line.contains( "Password error" ) || line.contains("Incorrect password") ) + else if ( line.tqcontains( "Password error" ) || line.tqcontains("Incorrect password") ) { status=PasswordError; break; diff --git a/kdepasswd/kcm/main.cpp b/kdepasswd/kcm/main.cpp index a3a25c0f3..8a6a520bb 100644 --- a/kdepasswd/kcm/main.cpp +++ b/kdepasswd/kcm/main.cpp @@ -150,11 +150,11 @@ void KCMUserAccount::load() KGlobal::dirs()->resourceDirs("data").last() + "kdm/faces/"; TQString fs = KCFGUserAccount::faceSource(); - if (fs == TQString::fromLatin1("UserOnly")) + if (fs == TQString::tqfromLatin1("UserOnly")) _facePerm = userOnly; - else if (fs == TQString::fromLatin1("PreferUser")) + else if (fs == TQString::tqfromLatin1("PreferUser")) _facePerm = userFirst; - else if (fs == TQString::fromLatin1("PreferAdmin")) + else if (fs == TQString::tqfromLatin1("PreferAdmin")) _facePerm = adminFirst; else _facePerm = adminOnly; // Admin Only @@ -231,7 +231,7 @@ void KCMUserAccount::save() { KMessageBox::sorry( this, i18n("An error occurred and your password has " "probably not been changed. The error " - "message was:\n%1").arg(proc->error())); + "message was:\n%1").arg(static_cast(proc->error()))); kdDebug() << "ChfnProcess->exec() failed. Error code: " << ret << "\nOutput:" << proc->error() << endl; } diff --git a/kdepasswd/kcm/main_widget.ui b/kdepasswd/kcm/main_widget.ui index 29adb0835..bb5a57b94 100644 --- a/kdepasswd/kcm/main_widget.ui +++ b/kdepasswd/kcm/main_widget.ui @@ -1,7 +1,7 @@ MainWidget Frans Englich <frans.englich@telia.com> - + MainWidget @@ -32,13 +32,13 @@ 0 - + 74 74 - + 74 74 @@ -51,7 +51,7 @@ - + grpUserInformation @@ -62,7 +62,7 @@ unnamed - + lblOrganisation @@ -73,12 +73,12 @@ leOrganization - + leRealname - + lblRealName @@ -89,12 +89,12 @@ leRealname - + leOrganization - + lblEmail @@ -105,12 +105,12 @@ leEmail - + leEmail - + textLabel3 @@ -121,12 +121,12 @@ leSMTP - + leSMTP - + lblUIDTell @@ -134,7 +134,7 @@ User ID: - + lblUID @@ -154,14 +154,14 @@ Expanding - + 20 16 - + layout1 @@ -169,7 +169,7 @@ unnamed - + lblUsername @@ -182,18 +182,18 @@ - + AlignVCenter - + lblClickButtonInfo <i>(Click the button to change your image)</i> - + AlignVCenter @@ -217,14 +217,14 @@ Expanding - + 111 20 - + kcfg_EchoMode @@ -247,7 +247,7 @@ unnamed - + rdbOneStar @@ -255,7 +255,7 @@ Show one star for each letter - + rdbThreeStars @@ -263,7 +263,7 @@ Show three stars for each letter - + rdbShowPassword -- cgit v1.2.3