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 /kresources/scalix/scalixadmin/ldapview.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 '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 ); } |