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/mainView.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/mainView.cpp')
-rw-r--r-- | kuser/mainView.cpp | 50 |
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(); |