summaryrefslogtreecommitdiffstats
path: root/kuser/mainView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kuser/mainView.cpp')
-rw-r--r--kuser/mainView.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kuser/mainView.cpp b/kuser/mainView.cpp
index 4f4e388..9c9b5d8 100644
--- a/kuser/mainView.cpp
+++ b/kuser/mainView.cpp
@@ -22,8 +22,8 @@
#include <stdio.h>
-#include <qtooltip.h>
-#include <qfile.h>
+#include <tqtooltip.h>
+#include <tqfile.h>
#include <kinputdialog.h>
#include <ktoolbar.h>
@@ -39,7 +39,7 @@
#include "pwddlg.h"
#include "editGroup.h"
-mainView::mainView(QWidget *parent) : QTabWidget(parent)
+mainView::mainView(TQWidget *parent) : TQTabWidget(parent)
{
init();
}
@@ -52,13 +52,13 @@ void mainView::init() {
lbgroups = new KGroupView( this, "lbgroups" );
addTab( lbgroups, i18n("Groups"));
- connect(lbusers, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(userSelected()));
- connect(lbusers, SIGNAL(returnPressed(QListViewItem *)), this, SLOT(userSelected()));
+ connect(lbusers, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(userSelected()));
+ connect(lbusers, TQT_SIGNAL(returnPressed(TQListViewItem *)), this, TQT_SLOT(userSelected()));
- connect(lbgroups, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(groupSelected()));
- connect(lbgroups, SIGNAL(returnPressed(QListViewItem *)), this, SLOT(groupSelected()));
+ connect(lbgroups, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(groupSelected()));
+ connect(lbgroups, TQT_SIGNAL(returnPressed(TQListViewItem *)), this, TQT_SLOT(groupSelected()));
- connect(this, SIGNAL(currentChanged(QWidget *)), this, SLOT(slotTabChanged()));
+ connect(this, TQT_SIGNAL(currentChanged(TQWidget *)), this, TQT_SLOT(slotTabChanged()));
}
mainView::~mainView()
@@ -132,11 +132,11 @@ void mainView::userdel()
if (!user)
return;
- QString username = user->getName();
+ TQString username = user->getName();
gid_t gid = user->getGID();
delUser dlg(user, this);
- if ( dlg.exec() == QDialog::Rejected )
+ if ( dlg.exec() == TQDialog::Rejected )
return;
user->setDeleteHome( dlg.getDeleteHomeDir() );
@@ -165,7 +165,7 @@ void mainView::userdel()
if ( group &&
KMessageBox::questionYesNo( 0, i18n("You are using private groups.\n"
"Do you want to delete the user's private group '%1'?")
- .arg(group->getName()), QString::null,
+ .arg(group->getName()), TQString::null,
KStdGuiItem::del(), i18n("Do Not Delete")) == KMessageBox::Yes) {
kdDebug() << "del private group" << endl;
kug->getGroups().del( group );
@@ -196,9 +196,9 @@ void mainView::useradd()
*/
if ( samba ) rid = SID::uid2rid( uid );
bool ok;
- QString name = KInputDialog::getText( QString::null,
+ TQString name = KInputDialog::getText( TQString::null,
i18n("Please type the name of the new user:"),
- QString::null, &ok );
+ TQString::null, &ok );
if ( !ok ) return;
@@ -246,7 +246,7 @@ void mainView::useradd()
au.setCreateHomeDir( kug->kcfg()->createHomeDir() );
au.setCopySkel( kug->kcfg()->copySkel() );
- if ( au.exec() == QDialog::Rejected ) {
+ if ( au.exec() == TQDialog::Rejected ) {
delete tk;
return;
}
@@ -305,13 +305,13 @@ void mainView::setpwd()
if ( count > 1 ) {
if ( KMessageBox::questionYesNo( 0,
i18n("You have selected %1 users. Do you really want to change the password for all the selected users?")
- .arg( count ), QString::null, i18n("Change"), i18n("Do Not Change") ) == KMessageBox::No ) return;
+ .arg( count ), TQString::null, i18n("Change"), i18n("Do Not Change") ) == KMessageBox::No ) return;
}
pwddlg d( this );
- if ( d.exec() != QDialog::Accepted ) return;
+ if ( d.exec() != TQDialog::Accepted ) return;
KU::KUser newuser, *user;
- QListViewItem *item;
+ TQListViewItem *item;
item = lbusers->firstChild();
while ( item ) {
@@ -347,7 +347,7 @@ void mainView::groupSelected()
}
editGroup egdlg( &newGroup, samba, false );
- if ( egdlg.exec() == QDialog::Accepted ) {
+ if ( egdlg.exec() == TQDialog::Accepted ) {
kug->getGroups().mod( tmpKG, newGroup );
updateGroups();
}
@@ -355,8 +355,8 @@ void mainView::groupSelected()
void mainView::userSelected()
{
- QListViewItem *item;
- QPtrList<KU::KUser> ulist;
+ TQListViewItem *item;
+ TQPtrList<KU::KUser> ulist;
item = lbusers->firstChild();
while ( item ) {
@@ -368,7 +368,7 @@ void mainView::userSelected()
if ( ulist.isEmpty() ) return;
propdlg editUser( ulist, this );
- if ( editUser.exec() == QDialog::Rejected ) return;
+ if ( editUser.exec() == TQDialog::Rejected ) return;
KU::KUser *user, newuser;
user = ulist.first();
@@ -415,7 +415,7 @@ void mainView::grpadd()
}
editGroup egdlg( tk, samba, true );
- if ( egdlg.exec() == QDialog::Rejected ) {
+ if ( egdlg.exec() == TQDialog::Rejected ) {
delete tk;
return;
}
@@ -430,7 +430,7 @@ void mainView::grpedit()
void mainView::grpdel()
{
- QListViewItem *item;
+ TQListViewItem *item;
KU::KGroup *group = NULL;
int selected = 0;
@@ -458,12 +458,12 @@ void mainView::grpdel()
case 1:
if (KMessageBox::warningContinueCancel( 0,
i18n("Do you really want to delete the group '%1'?").arg(group->getName()),
- QString::null, KStdGuiItem::del()) != KMessageBox::Continue) return;
+ TQString::null, KStdGuiItem::del()) != KMessageBox::Continue) return;
break;
default:
if (KMessageBox::warningContinueCancel( 0,
i18n("Do you really want to delete the %1 selected groups?").arg(selected),
- QString::null, KStdGuiItem::del()) != KMessageBox::Continue) return;
+ TQString::null, KStdGuiItem::del()) != KMessageBox::Continue) return;
}
item = lbgroups->firstChild();