summaryrefslogtreecommitdiffstats
path: root/kuser/kuservw.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kuser/kuservw.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kuser/kuservw.cpp')
-rw-r--r--kuser/kuservw.cpp26
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()