diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkpimidentities/identitycombo.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkpimidentities/identitycombo.cpp')
-rw-r--r-- | libkpimidentities/identitycombo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libkpimidentities/identitycombo.cpp b/libkpimidentities/identitycombo.cpp index a7b9cd3ab..55c78e2a6 100644 --- a/libkpimidentities/identitycombo.cpp +++ b/libkpimidentities/identitycombo.cpp @@ -43,17 +43,17 @@ using namespace KPIM; -IdentityCombo::IdentityCombo( IdentityManager* manager, QWidget * parent, const char * name ) - : QComboBox( false, parent, name ), mIdentityManager( manager ) +IdentityCombo::IdentityCombo( IdentityManager* manager, TQWidget * parent, const char * name ) + : TQComboBox( false, parent, name ), mIdentityManager( manager ) { reloadCombo(); reloadUoidList(); - connect( this, SIGNAL(activated(int)), SLOT(slotEmitChanged(int)) ); - connect( manager, SIGNAL(changed()), - SLOT(slotIdentityManagerChanged()) ); + connect( this, TQT_SIGNAL(activated(int)), TQT_SLOT(slotEmitChanged(int)) ); + connect( manager, TQT_SIGNAL(changed()), + TQT_SLOT(slotIdentityManagerChanged()) ); } -QString IdentityCombo::currentIdentityName() const { +TQString IdentityCombo::currentIdentityName() const { return mIdentityManager->identities()[ currentItem() ]; } @@ -65,7 +65,7 @@ void IdentityCombo::setCurrentIdentity( const Identity & identity ) { setCurrentIdentity( identity.uoid() ); } -void IdentityCombo::setCurrentIdentity( const QString & name ) { +void IdentityCombo::setCurrentIdentity( const TQString & name ) { int idx = mIdentityManager->identities().findIndex( name ); if ( idx < 0 ) return; if ( idx == currentItem() ) return; @@ -90,7 +90,7 @@ void IdentityCombo::setCurrentIdentity( uint uoid ) { } void IdentityCombo::reloadCombo() { - QStringList identities = mIdentityManager->identities(); + TQStringList identities = mIdentityManager->identities(); // the IM should prevent this from happening: assert( !identities.isEmpty() ); identities.first() = i18n("%1 (Default)").arg( identities.first() ); |