diff options
Diffstat (limited to 'kresources/scalix/scalixadmin/ldapview.cpp')
-rw-r--r-- | kresources/scalix/scalixadmin/ldapview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kresources/scalix/scalixadmin/ldapview.cpp b/kresources/scalix/scalixadmin/ldapview.cpp index 660f1944a..0e40f3ae6 100644 --- a/kresources/scalix/scalixadmin/ldapview.cpp +++ b/kresources/scalix/scalixadmin/ldapview.cpp @@ -29,8 +29,8 @@ class LdapItem : public QListViewItem { public: - LdapItem( QListView *parent, const QString &text, const QString &email ) - : QListViewItem( parent ) + LdapItem( TQListView *parent, const TQString &text, const TQString &email ) + : TQListViewItem( parent ) { setText( 0, text ); setText( 1, email ); @@ -38,7 +38,7 @@ class LdapItem : public QListViewItem }; -LdapView::LdapView( QWidget *parent ) +LdapView::LdapView( TQWidget *parent ) : KListView( parent ) { addColumn( i18n( "User" ) ); @@ -52,14 +52,14 @@ LdapView::LdapView( QWidget *parent ) mClient->setBindDN( Settings::self()->ldapBindDn() ); mClient->setPwdBindDN( Settings::self()->ldapPassword() ); - QStringList attrs; + TQStringList attrs; attrs << "surname" << "mail"; mClient->setAttrs( attrs ); - connect( mClient, SIGNAL( result( const KABC::LdapObject& ) ), - this, SLOT( entryAdded( const KABC::LdapObject& ) ) ); - connect( mClient, SIGNAL( error( const QString& ) ), - this, SLOT( error( const QString& ) ) ); + connect( mClient, TQT_SIGNAL( result( const KABC::LdapObject& ) ), + this, TQT_SLOT( entryAdded( const KABC::LdapObject& ) ) ); + connect( mClient, TQT_SIGNAL( error( const TQString& ) ), + this, TQT_SLOT( error( const TQString& ) ) ); } LdapView::~LdapView() @@ -68,16 +68,16 @@ LdapView::~LdapView() delete mClient; } -QString LdapView::selectedUser() const +TQString LdapView::selectedUser() const { - QListViewItem *item = selectedItem(); + TQListViewItem *item = selectedItem(); if ( !item ) - return QString(); + return TQString(); else return item->text( 1 ); } -void LdapView::setQuery( const QString &query ) +void LdapView::setQuery( const TQString &query ) { clear(); mClient->startQuery( query ); @@ -85,13 +85,13 @@ void LdapView::setQuery( const QString &query ) void LdapView::entryAdded( const KABC::LdapObject &obj ) { - const QString text = QString( "%1 (%2)" ).arg( obj.attrs[ "surname" ].first() ) + const TQString text = TQString( "%1 (%2)" ).arg( obj.attrs[ "surname" ].first() ) .arg( obj.attrs[ "mail" ].first() ); new LdapItem( this, text, obj.attrs[ "mail" ].first() ); } -void LdapView::error( const QString &msg ) +void LdapView::error( const TQString &msg ) { KMessageBox::error( this, msg ); } |