summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetepasswordwidget.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 /kopete/libkopete/ui/kopetepasswordwidget.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 'kopete/libkopete/ui/kopetepasswordwidget.cpp')
-rw-r--r--kopete/libkopete/ui/kopetepasswordwidget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/libkopete/ui/kopetepasswordwidget.cpp b/kopete/libkopete/ui/kopetepasswordwidget.cpp
index 2345f103..52921b16 100644
--- a/kopete/libkopete/ui/kopetepasswordwidget.cpp
+++ b/kopete/libkopete/ui/kopetepasswordwidget.cpp
@@ -20,7 +20,7 @@
#include <kpassdlg.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
class Kopete::UI::PasswordWidget::Private
{
@@ -28,7 +28,7 @@ public:
uint maxLength;
};
-Kopete::UI::PasswordWidget::PasswordWidget( QWidget *parent, const char *name, Kopete::Password *from )
+Kopete::UI::PasswordWidget::PasswordWidget( TQWidget *parent, const char *name, Kopete::Password *from )
: KopetePasswordWidgetBase( parent, name ), d( new Private )
{
load( from );
@@ -41,15 +41,15 @@ Kopete::UI::PasswordWidget::~PasswordWidget()
void Kopete::UI::PasswordWidget::load( Kopete::Password *source )
{
- disconnect( mRemembered, SIGNAL( stateChanged( int ) ), this, SLOT( slotRememberChanged() ) );
- disconnect( mPassword, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
- disconnect( mRemembered, SIGNAL( stateChanged( int ) ), this, SIGNAL( changed() ) );
+ disconnect( mRemembered, TQT_SIGNAL( stateChanged( int ) ), this, TQT_SLOT( slotRememberChanged() ) );
+ disconnect( mPassword, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SIGNAL( changed() ) );
+ disconnect( mRemembered, TQT_SIGNAL( stateChanged( int ) ), this, TQT_SIGNAL( changed() ) );
if ( source && source->remembered() )
{
mRemembered->setTristate();
mRemembered->setNoChange();
- source->requestWithoutPrompt( this, SLOT( receivePassword( const QString & ) ) );
+ source->requestWithoutPrompt( this, TQT_SLOT( receivePassword( const TQString & ) ) );
}
else
{
@@ -64,9 +64,9 @@ void Kopete::UI::PasswordWidget::load( Kopete::Password *source )
mPassword->setEnabled( false );
- connect( mRemembered, SIGNAL( stateChanged( int ) ), this, SLOT( slotRememberChanged() ) );
- connect( mPassword, SIGNAL( textChanged( const QString & ) ), this, SIGNAL( changed() ) );
- connect( mRemembered, SIGNAL( stateChanged( int ) ), this, SIGNAL( changed() ) );
+ connect( mRemembered, TQT_SIGNAL( stateChanged( int ) ), this, TQT_SLOT( slotRememberChanged() ) );
+ connect( mPassword, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SIGNAL( changed() ) );
+ connect( mRemembered, TQT_SIGNAL( stateChanged( int ) ), this, TQT_SIGNAL( changed() ) );
emit changed();
}
@@ -77,11 +77,11 @@ void Kopete::UI::PasswordWidget::slotRememberChanged()
mPassword->setEnabled( mRemembered->isChecked() );
}
-void Kopete::UI::PasswordWidget::receivePassword( const QString &pwd )
+void Kopete::UI::PasswordWidget::receivePassword( const TQString &pwd )
{
// pwd == null could mean user declined to open wallet
// don't uncheck the remembered field in this case.
- if ( !pwd.isNull() && mRemembered->state() == QButton::NoChange )
+ if ( !pwd.isNull() && mRemembered->state() == TQButton::NoChange )
{
mRemembered->setChecked( true );
setPassword( pwd );
@@ -90,7 +90,7 @@ void Kopete::UI::PasswordWidget::receivePassword( const QString &pwd )
void Kopete::UI::PasswordWidget::save( Kopete::Password *target )
{
- if ( !target || mRemembered->state() == QButton::NoChange )
+ if ( !target || mRemembered->state() == TQButton::NoChange )
return;
if ( mRemembered->isChecked() )
@@ -106,17 +106,17 @@ bool Kopete::UI::PasswordWidget::validate()
return password().length() <= d->maxLength;
}
-QString Kopete::UI::PasswordWidget::password() const
+TQString Kopete::UI::PasswordWidget::password() const
{
- return QString::fromLocal8Bit( mPassword->password() );
+ return TQString::fromLocal8Bit( mPassword->password() );
}
bool Kopete::UI::PasswordWidget::remember() const
{
- return mRemembered->state() == QButton::On;
+ return mRemembered->state() == TQButton::On;
}
-void Kopete::UI::PasswordWidget::setPassword( const QString &pass )
+void Kopete::UI::PasswordWidget::setPassword( const TQString &pass )
{
// switch out of 'waiting for wallet' mode if we're in it
mRemembered->setTristate( false );