diff options
Diffstat (limited to 'kuser/kuservw.cpp')
-rw-r--r-- | kuser/kuservw.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kuser/kuservw.cpp b/kuser/kuservw.cpp index 766700c..f34581c 100644 --- a/kuser/kuservw.cpp +++ b/kuser/kuservw.cpp @@ -29,7 +29,7 @@ KUserViewItem::KUserViewItem(KListView *parent, KU::KUser *aku) { } -int KUserViewItem::compare( QListViewItem *i, int col, bool ascending ) const +int KUserViewItem::compare( TQListViewItem *i, int col, bool ascending ) const { if ( col == 0 ) { uid_t uid1, uid2; @@ -40,50 +40,50 @@ int KUserViewItem::compare( QListViewItem *i, int col, bool ascending ) const if ( uid1 == uid2 ) return 0; return ( uid1 < uid2) ? -1: 1; } else { - return QListViewItem::compare( i, col, ascending ); + return TQListViewItem::compare( i, col, ascending ); } } -void KUserViewItem::paintCell( QPainter *p, const QColorGroup &cg, +void KUserViewItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment ) { - QColorGroup _cg( cg ); - QColor c = _cg.text(); + TQColorGroup _cg( cg ); + TQColor c = _cg.text(); if ( mUser->getDisabled() ) - _cg.setColor( QColorGroup::Text, KGlobalSettings::visitedLinkColor() ); + _cg.setColor( TQColorGroup::Text, KGlobalSettings::visitedLinkColor() ); KListViewItem::paintCell( p, _cg, column, width, alignment ); - _cg.setColor( QColorGroup::Text, c ); + _cg.setColor( TQColorGroup::Text, c ); } -QString KUserViewItem::text(int num) const +TQString KUserViewItem::text(int num) const { switch(num) { case 0: return mUser->getCaps() & KU::KUser::Cap_POSIX ? - QString::number( mUser->getUID() ) : QString::null; + TQString::number( mUser->getUID() ) : TQString::null; case 1: return mUser->getName(); case 2: return mUser->getFullName(); case 3: return mUser->getHomeDir(); case 4: return mUser->getShell(); case 5: return mUser->getSID().getDOM(); case 6: return mUser->getCaps() & KU::KUser::Cap_Samba ? - QString::number( mUser->getSID().getRID() ) : QString::null; + TQString::number( mUser->getSID().getRID() ) : TQString::null; case 7: return mUser->getLoginScript(); case 8: return mUser->getProfilePath(); case 9: return mUser->getHomeDrive(); case 10: return mUser->getHomePath(); } - return QString::null; + return TQString::null; } -KUserView::KUserView(QWidget *parent, const char *name) +KUserView::KUserView(TQWidget *parent, const char *name) : KListView( parent, name ) { - setSelectionMode( QListView::Extended ); + setSelectionMode( TQListView::Extended ); } KUserView::~KUserView() |