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 /kaddressbook/typecombo.h | |
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 'kaddressbook/typecombo.h')
-rw-r--r-- | kaddressbook/typecombo.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kaddressbook/typecombo.h b/kaddressbook/typecombo.h index 3b411c86c..90a000110 100644 --- a/kaddressbook/typecombo.h +++ b/kaddressbook/typecombo.h @@ -37,10 +37,10 @@ class TypeCombo : public KComboBox typedef typename T::List List; typedef typename T::List::Iterator Iterator; - TypeCombo( List &list, QWidget *parent, const char *name = 0 ); + TypeCombo( List &list, TQWidget *parent, const char *name = 0 ); - void setLineEdit( QLineEdit *edit ) { mLineEdit = edit; } - QLineEdit *lineEdit() const { return mLineEdit; } + void setLineEdit( TQLineEdit *edit ) { mLineEdit = edit; } + TQLineEdit *lineEdit() const { return mLineEdit; } void updateTypes(); @@ -58,11 +58,11 @@ class TypeCombo : public KComboBox private: List &mTypeList; - QLineEdit *mLineEdit; + TQLineEdit *mLineEdit; }; template <class T> -TypeCombo<T>::TypeCombo( TypeCombo::List &list, QWidget *parent, +TypeCombo<T>::TypeCombo( TypeCombo::List &list, TQWidget *parent, const char *name ) : KComboBox( parent, name ), mTypeList( list ) @@ -73,18 +73,18 @@ template <class T> void TypeCombo<T>::updateTypes() { // Remember current item - QString currentId; + TQString currentId; int current = currentItem(); if ( current >= 0 ) currentId = mTypeList[ current ].id(); clear(); - QMap<int,int> labelCount; + TQMap<int,int> labelCount; uint i; for ( i = 0; i < mTypeList.count(); ++i ) { int type = ( mTypeList[ i ].type() & ~( T::Pref ) ); - QString label = mTypeList[ i ].typeLabel( type ); + TQString label = mTypeList[ i ].typeLabel( type ); int count = 1; if ( labelCount.contains( type ) ) { count = labelCount[ type ] + 1; @@ -92,7 +92,7 @@ void TypeCombo<T>::updateTypes() labelCount[ type ] = count; if ( count > 1 ) { label = i18n("label (number)", "%1 (%2)").arg( label ) - .arg( QString::number( count ) ); + .arg( TQString::number( count ) ); } insertItem( label ); } |