diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kuser/kgroupvw.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-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/kgroupvw.cpp')
-rw-r--r-- | kuser/kgroupvw.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kuser/kgroupvw.cpp b/kuser/kgroupvw.cpp index 2641554..76af939 100644 --- a/kuser/kgroupvw.cpp +++ b/kuser/kgroupvw.cpp @@ -29,7 +29,7 @@ KGroupViewItem::KGroupViewItem(KListView *parent, KU::KGroup *aku) { } -int KGroupViewItem::compare( QListViewItem *i, int col, bool ascending ) const +int KGroupViewItem::compare( TQListViewItem *i, int col, bool ascending ) const { switch ( col ) { case 0: { @@ -49,20 +49,20 @@ int KGroupViewItem::compare( QListViewItem *i, int col, bool ascending ) const return ( rid1 < rid2) ? -1: 1; } default: - return QListViewItem::compare( i, col, ascending ); + return TQListViewItem::compare( i, col, ascending ); } } -QString KGroupViewItem::text(int num) const +TQString KGroupViewItem::text(int num) const { switch(num) { - case 0: return QString::number(mGroup->getGID()); + case 0: return TQString::number(mGroup->getGID()); case 1: return mGroup->getName(); case 2: return ( mGroup->getCaps() & KU::KGroup::Cap_Samba ) ? - mGroup->getSID().getDOM() : QString::null; + mGroup->getSID().getDOM() : TQString::null; case 3: return ( mGroup->getCaps() & KU::KGroup::Cap_Samba ) ? - QString::number( mGroup->getSID().getRID() ) : QString::null; + TQString::number( mGroup->getSID().getRID() ) : TQString::null; case 4: { if ( mGroup->getCaps() & KU::KGroup::Cap_Samba ) { switch ( mGroup->getType() ) { @@ -72,20 +72,20 @@ QString KGroupViewItem::text(int num) const default: return i18n("Unknown"); } } else { - return QString::null; + return TQString::null; } } case 5: return mGroup->getDisplayName(); case 6: return mGroup->getDesc(); } - return QString::null; + return TQString::null; } -KGroupView::KGroupView(QWidget *parent, const char *name) +KGroupView::KGroupView(TQWidget *parent, const char *name) : KListView( parent, name ) { - setSelectionMode( QListView::Extended ); + setSelectionMode( TQListView::Extended ); } KGroupView::~KGroupView() |