summaryrefslogtreecommitdiffstats
path: root/kuser
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:10:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:10:12 -0600
commit189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e (patch)
tree52d62ad83db1551dd15dc147b4af4cacaae6e850 /kuser
parent58cb2c2c17b1e6dd48cbfbcb69ec2f50f1ced9ee (diff)
downloadtdeadmin-189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e.tar.gz
tdeadmin-189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kuser')
-rw-r--r--kuser/editGroup.cpp12
-rw-r--r--kuser/editGroup.h2
-rw-r--r--kuser/kgroupvw.cpp8
-rw-r--r--kuser/kgroupvw.h6
-rw-r--r--kuser/kuservw.cpp10
-rw-r--r--kuser/kuservw.h6
-rw-r--r--kuser/mainWidget.cpp22
-rw-r--r--kuser/mainWidget.h6
-rw-r--r--kuser/propdlg.cpp2
-rw-r--r--kuser/propdlg.h2
10 files changed, 38 insertions, 38 deletions
diff --git a/kuser/editGroup.cpp b/kuser/editGroup.cpp
index 02fce6f..b9263b4 100644
--- a/kuser/editGroup.cpp
+++ b/kuser/editGroup.cpp
@@ -158,7 +158,7 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
if ( !mAdd ) cbsamba->setChecked( !( kg->getCaps() & KU::KGroup::Cap_Samba ) );
}
- m_list_in = new KListView(page);
+ m_list_in = new TDEListView(page);
m_list_in->setFullWidth(true); // Single column, full widget width.
m_list_in->addColumn(i18n("Users in Group"));
m_list_in->setSelectionMode( TQListView::Extended );
@@ -169,7 +169,7 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
TQPushButton *btdel = new TQPushButton(i18n("Remove ->"), vbox);
layout->addWidget( vbox, 8, 1 );
- m_list_notin = new KListView(page);
+ m_list_notin = new TDEListView(page);
m_list_notin->setFullWidth(true); // Single column, full widget width.
m_list_notin->addColumn(i18n("Users NOT in Group"));
m_list_notin->setSelectionMode(TQListView::Extended);
@@ -185,10 +185,10 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add,
user = kug->getUsers()[i];
TQString userName = user->getName();
if ( kg->lookup_user(userName) || user->getGID() == kg->getGID() ) {
- KListViewItem *item = new KListViewItem(m_list_in, userName);
+ TDEListViewItem *item = new TDEListViewItem(m_list_in, userName);
if ( user->getGID() == kg->getGID() ) item->setSelectable( false );
} else {
- new KListViewItem(m_list_notin, userName);
+ new TDEListViewItem(m_list_notin, userName);
}
}
@@ -224,7 +224,7 @@ void editGroup::addClicked()
if ( item->isSelected() ) {
name = item->text( 0 );
delete item;
- item = new KListViewItem( m_list_in, name );
+ item = new TDEListViewItem( m_list_in, name );
}
item = next;
}
@@ -241,7 +241,7 @@ void editGroup::delClicked()
if ( item->isSelected() ) {
name = item->text( 0 );
delete item;
- item = new KListViewItem( m_list_notin, name );
+ item = new TDEListViewItem( m_list_notin, name );
}
item = next;
}
diff --git a/kuser/editGroup.h b/kuser/editGroup.h
index 16e83cf..16a8ae4 100644
--- a/kuser/editGroup.h
+++ b/kuser/editGroup.h
@@ -51,7 +51,7 @@ private:
bool mSamba, mAdd;
bool ro;
KU::KGroup *kg;
- KListView *m_list_in,*m_list_notin;
+ TDEListView *m_list_in,*m_list_notin;
KLineEdit *legrpname;
KLineEdit *legid;
KComboBox *lerid;
diff --git a/kuser/kgroupvw.cpp b/kuser/kgroupvw.cpp
index 1eccf5c..c9df471 100644
--- a/kuser/kgroupvw.cpp
+++ b/kuser/kgroupvw.cpp
@@ -24,8 +24,8 @@
#include "kgroupvw.h"
-KGroupViewItem::KGroupViewItem(KListView *parent, KU::KGroup *aku)
- : KListViewItem(parent), mGroup(aku)
+KGroupViewItem::KGroupViewItem(TDEListView *parent, KU::KGroup *aku)
+ : TDEListViewItem(parent), mGroup(aku)
{
}
@@ -83,7 +83,7 @@ TQString KGroupViewItem::text(int num) const
KGroupView::KGroupView(TQWidget *parent, const char *name)
- : KListView( parent, name )
+ : TDEListView( parent, name )
{
setSelectionMode( TQListView::Extended );
}
@@ -95,7 +95,7 @@ KGroupView::~KGroupView()
void KGroupView::insertItem(KU::KGroup *aku)
{
KGroupViewItem *groupItem = new KGroupViewItem(this, aku);
- KListView::insertItem(groupItem);
+ TDEListView::insertItem(groupItem);
}
void KGroupView::removeItem(KU::KGroup *aku)
diff --git a/kuser/kgroupvw.h b/kuser/kgroupvw.h
index 69d53d2..0b29dab 100644
--- a/kuser/kgroupvw.h
+++ b/kuser/kgroupvw.h
@@ -27,10 +27,10 @@
#include "kgroup.h"
-class KGroupViewItem : public KListViewItem
+class KGroupViewItem : public TDEListViewItem
{
public:
- KGroupViewItem(KListView *parent, KU::KGroup *aku);
+ KGroupViewItem(TDEListView *parent, KU::KGroup *aku);
KU::KGroup *group() { return mGroup; }
private:
virtual TQString text ( int ) const;
@@ -39,7 +39,7 @@ private:
KU::KGroup *mGroup;
};
-class KGroupView : public KListView
+class KGroupView : public TDEListView
{
Q_OBJECT
diff --git a/kuser/kuservw.cpp b/kuser/kuservw.cpp
index b98495e..9fae9d5 100644
--- a/kuser/kuservw.cpp
+++ b/kuser/kuservw.cpp
@@ -24,8 +24,8 @@
#include "kuservw.h"
-KUserViewItem::KUserViewItem(KListView *parent, KU::KUser *aku)
- : KListViewItem(parent), mUser(aku)
+KUserViewItem::KUserViewItem(TDEListView *parent, KU::KUser *aku)
+ : TDEListViewItem(parent), mUser(aku)
{
}
@@ -53,7 +53,7 @@ void KUserViewItem::paintCell( TQPainter *p, const TQColorGroup &cg,
if ( mUser->getDisabled() )
_cg.setColor( TQColorGroup::Text, TDEGlobalSettings::visitedLinkColor() );
- KListViewItem::paintCell( p, _cg, column, width, alignment );
+ TDEListViewItem::paintCell( p, _cg, column, width, alignment );
_cg.setColor( TQColorGroup::Text, c );
}
@@ -81,7 +81,7 @@ TQString KUserViewItem::text(int num) const
}
KUserView::KUserView(TQWidget *parent, const char *name)
- : KListView( parent, name )
+ : TDEListView( parent, name )
{
setSelectionMode( TQListView::Extended );
}
@@ -92,7 +92,7 @@ KUserView::~KUserView()
void KUserView::insertItem(KU::KUser *aku) {
KUserViewItem *userItem = new KUserViewItem(this, aku);
- KListView::insertItem(userItem);
+ TDEListView::insertItem(userItem);
}
void KUserView::removeItem(KU::KUser *aku) {
diff --git a/kuser/kuservw.h b/kuser/kuservw.h
index 5977ad5..15068a6 100644
--- a/kuser/kuservw.h
+++ b/kuser/kuservw.h
@@ -27,10 +27,10 @@
#include "kuser.h"
-class KUserViewItem : public KListViewItem
+class KUserViewItem : public TDEListViewItem
{
public:
- KUserViewItem(KListView *parent, KU::KUser *aku);
+ KUserViewItem(TDEListView *parent, KU::KUser *aku);
KU::KUser *user() { return mUser; }
private:
virtual TQString text ( int ) const;
@@ -40,7 +40,7 @@ private:
KU::KUser *mUser;
};
-class KUserView : public KListView
+class KUserView : public TDEListView
{
Q_OBJECT
diff --git a/kuser/mainWidget.cpp b/kuser/mainWidget.cpp
index 0f3dfbd..046ed76 100644
--- a/kuser/mainWidget.cpp
+++ b/kuser/mainWidget.cpp
@@ -38,7 +38,7 @@
#include "selectconn.h"
#include "mainView.h"
-mainWidget::mainWidget(const char *name) : KMainWindow(0,name)
+mainWidget::mainWidget(const char *name) : TDEMainWindow(0,name)
{
md = new mainView(this);
@@ -75,37 +75,37 @@ void mainWidget::setupActions()
#define BarIconC(x) BarIcon(TQString::fromLatin1(x))
- (void) new KAction(i18n("&Add..."), TQIconSet(BarIconC("add_user")), 0, TQT_TQOBJECT(md),
+ (void) new TDEAction(i18n("&Add..."), TQIconSet(BarIconC("add_user")), 0, TQT_TQOBJECT(md),
TQT_SLOT(useradd()), actionCollection(), "add_user");
- (void) new KAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_user")), 0, TQT_TQOBJECT(md),
+ (void) new TDEAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_user")), 0, TQT_TQOBJECT(md),
TQT_SLOT(useredit()), actionCollection(), "edit_user");
- (void) new KAction(i18n("&Delete..."), TQIconSet(BarIconC("delete_user")), 0, TQT_TQOBJECT(md),
+ (void) new TDEAction(i18n("&Delete..."), TQIconSet(BarIconC("delete_user")), 0, TQT_TQOBJECT(md),
TQT_SLOT(userdel()), actionCollection(), "delete_user");
- (void) new KAction(i18n("&Set Password..."),
+ (void) new TDEAction(i18n("&Set Password..."),
0, TQT_TQOBJECT(md), TQT_SLOT(setpwd()), actionCollection(), "set_password_user");
- (void) new KAction(i18n("&Add..."), TQIconSet(BarIconC("add_group")), 0, TQT_TQOBJECT(md),
+ (void) new TDEAction(i18n("&Add..."), TQIconSet(BarIconC("add_group")), 0, TQT_TQOBJECT(md),
TQT_SLOT(grpadd()), actionCollection(), "add_group");
- (void) new KAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_group")), 0, TQT_TQOBJECT(md),
+ (void) new TDEAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_group")), 0, TQT_TQOBJECT(md),
TQT_SLOT(grpedit()), actionCollection(), "edit_group");
- (void) new KAction(i18n("&Delete"), TQIconSet(BarIconC("delete_group")), 0, TQT_TQOBJECT(md),
+ (void) new TDEAction(i18n("&Delete"), TQIconSet(BarIconC("delete_group")), 0, TQT_TQOBJECT(md),
TQT_SLOT(grpdel()), actionCollection(), "delete_group");
- (void) new KAction(i18n("&Reload"), TQIconSet(BarIconC("reload")), 0, TQT_TQOBJECT(this),
+ (void) new TDEAction(i18n("&Reload"), TQIconSet(BarIconC("reload")), 0, TQT_TQOBJECT(this),
TQT_SLOT(reload()), actionCollection(), "reload");
#undef BarIconC
- (void) new KAction(i18n("&Select Connection..."),
+ (void) new TDEAction(i18n("&Select Connection..."),
0, TQT_TQOBJECT(this),
TQT_SLOT(selectconn()), actionCollection(), "select_conn");
- mShowSys = new KToggleAction(i18n("Show System Users/Groups"),
+ mShowSys = new TDEToggleAction(i18n("Show System Users/Groups"),
0, 0, TQT_TQOBJECT(this),
TQT_SLOT(showSys()), actionCollection(), "show_sys");
mShowSys->setCheckedState(i18n("Hide System Users/Groups"));
diff --git a/kuser/mainWidget.h b/kuser/mainWidget.h
index 78724af..dbe2b34 100644
--- a/kuser/mainWidget.h
+++ b/kuser/mainWidget.h
@@ -25,9 +25,9 @@
class SelectConn;
class mainView;
-class KToggleAction;
+class TDEToggleAction;
-class mainWidget : public KMainWindow {
+class mainWidget : public TDEMainWindow {
Q_OBJECT
public:
@@ -48,7 +48,7 @@ protected slots:
void reload();
private:
- KToggleAction *mShowSys;
+ TDEToggleAction *mShowSys;
mainView *md;
SelectConn *sc;
diff --git a/kuser/propdlg.cpp b/kuser/propdlg.cpp
index 40e8085..8ce7e6a 100644
--- a/kuser/propdlg.cpp
+++ b/kuser/propdlg.cpp
@@ -320,7 +320,7 @@ void propdlg::initDlg()
TQFrame *frame = addPage(i18n("Groups"));
TQGridLayout *layout = new TQGridLayout(frame, 2, 2, marginHint(), spacingHint());
- lstgrp = new KListView(frame);
+ lstgrp = new TDEListView(frame);
lstgrp->setFullWidth(true); // Single column, full widget width.
lstgrp->addColumn( i18n("Groups") );
if ( ro ) lstgrp->setSelectionMode( TQListView::NoSelection );
diff --git a/kuser/propdlg.h b/kuser/propdlg.h
index 7ecc396..a94ddc4 100644
--- a/kuser/propdlg.h
+++ b/kuser/propdlg.h
@@ -101,7 +101,7 @@ protected:
TQString newpass;
time_t lstchg;
- KListView *lstgrp;
+ TDEListView *lstgrp;
TQPushButton *pbsetpwd;