summaryrefslogtreecommitdiffstats
path: root/kaddressbook/typecombo.h
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/typecombo.h')
-rw-r--r--kaddressbook/typecombo.h18
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 );
}