summaryrefslogtreecommitdiffstats
path: root/kuser/mainWidget.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/mainWidget.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/mainWidget.cpp')
-rw-r--r--kuser/mainWidget.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/kuser/mainWidget.cpp b/kuser/mainWidget.cpp
index 91b5862..afdb557 100644
--- a/kuser/mainWidget.cpp
+++ b/kuser/mainWidget.cpp
@@ -18,8 +18,8 @@
* Boston, MA 02110-1301, USA.
**/
-#include <qtooltip.h>
-#include <qtimer.h>
+#include <tqtooltip.h>
+#include <tqtimer.h>
#include <ktoolbar.h>
#include <kiconloader.h>
@@ -68,46 +68,46 @@ bool mainWidget::queryClose()
void mainWidget::setupActions()
{
- KStdAction::quit(this, SLOT(close()), actionCollection());
- KStdAction::keyBindings(guiFactory(), SLOT(configureShortcuts()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(close()), actionCollection());
+ KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection());
- KStdAction::preferences(this, SLOT(properties()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(properties()), actionCollection());
-#define BarIconC(x) BarIcon(QString::fromLatin1(x))
+#define BarIconC(x) BarIcon(TQString::fromLatin1(x))
- (void) new KAction(i18n("&Add..."), QIconSet(BarIconC("add_user")), 0, md,
- SLOT(useradd()), actionCollection(), "add_user");
+ (void) new KAction(i18n("&Add..."), TQIconSet(BarIconC("add_user")), 0, md,
+ TQT_SLOT(useradd()), actionCollection(), "add_user");
- (void) new KAction(i18n("&Edit..."), QIconSet(BarIconC("edit_user")), 0, md,
- SLOT(useredit()), actionCollection(), "edit_user");
+ (void) new KAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_user")), 0, md,
+ TQT_SLOT(useredit()), actionCollection(), "edit_user");
- (void) new KAction(i18n("&Delete..."), QIconSet(BarIconC("delete_user")), 0, md,
- SLOT(userdel()), actionCollection(), "delete_user");
+ (void) new KAction(i18n("&Delete..."), TQIconSet(BarIconC("delete_user")), 0, md,
+ TQT_SLOT(userdel()), actionCollection(), "delete_user");
(void) new KAction(i18n("&Set Password..."),
- 0, md, SLOT(setpwd()), actionCollection(), "set_password_user");
+ 0, md, TQT_SLOT(setpwd()), actionCollection(), "set_password_user");
- (void) new KAction(i18n("&Add..."), QIconSet(BarIconC("add_group")), 0, md,
- SLOT(grpadd()), actionCollection(), "add_group");
+ (void) new KAction(i18n("&Add..."), TQIconSet(BarIconC("add_group")), 0, md,
+ TQT_SLOT(grpadd()), actionCollection(), "add_group");
- (void) new KAction(i18n("&Edit..."), QIconSet(BarIconC("edit_group")), 0, md,
- SLOT(grpedit()), actionCollection(), "edit_group");
+ (void) new KAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_group")), 0, md,
+ TQT_SLOT(grpedit()), actionCollection(), "edit_group");
- (void) new KAction(i18n("&Delete"), QIconSet(BarIconC("delete_group")), 0, md,
- SLOT(grpdel()), actionCollection(), "delete_group");
+ (void) new KAction(i18n("&Delete"), TQIconSet(BarIconC("delete_group")), 0, md,
+ TQT_SLOT(grpdel()), actionCollection(), "delete_group");
- (void) new KAction(i18n("&Reload"), QIconSet(BarIconC("reload")), 0, this,
- SLOT(reload()), actionCollection(), "reload");
+ (void) new KAction(i18n("&Reload"), TQIconSet(BarIconC("reload")), 0, this,
+ TQT_SLOT(reload()), actionCollection(), "reload");
#undef BarIconC
(void) new KAction(i18n("&Select Connection..."),
0, this,
- SLOT(selectconn()), actionCollection(), "select_conn");
+ TQT_SLOT(selectconn()), actionCollection(), "select_conn");
mShowSys = new KToggleAction(i18n("Show System Users/Groups"),
0, 0, this,
- SLOT(showSys()), actionCollection(), "show_sys");
+ TQT_SLOT(showSys()), actionCollection(), "show_sys");
mShowSys->setCheckedState(i18n("Hide System Users/Groups"));
mShowSys->setChecked( kug->kcfg()->showsys() );
}
@@ -123,7 +123,7 @@ void mainWidget::showSys()
void mainWidget::properties()
{
editDefaults *eddlg = new editDefaults( kug->kcfg(), this );
- connect(eddlg, SIGNAL(settingsChanged()), this, SLOT(slotApplySettings()));
+ connect(eddlg, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotApplySettings()));
eddlg->show();
}
@@ -147,14 +147,14 @@ void mainWidget::init()
actionCollection()->action("delete_user")->setEnabled( rw );
actionCollection()->action("set_password_user")->setEnabled( rw );
if ( rw ) {
- connect( md, SIGNAL(userSelected(bool)),
- actionCollection()->action("edit_user"), SLOT(setEnabled(bool)) );
- connect( md, SIGNAL(userSelected(bool)),
- actionCollection()->action("delete_user"), SLOT(setEnabled(bool)) );
- connect( md, SIGNAL(userSelected(bool)),
- actionCollection()->action("set_password_user"), SLOT(setEnabled(bool)) );
+ connect( md, TQT_SIGNAL(userSelected(bool)),
+ actionCollection()->action("edit_user"), TQT_SLOT(setEnabled(bool)) );
+ connect( md, TQT_SIGNAL(userSelected(bool)),
+ actionCollection()->action("delete_user"), TQT_SLOT(setEnabled(bool)) );
+ connect( md, TQT_SIGNAL(userSelected(bool)),
+ actionCollection()->action("set_password_user"), TQT_SLOT(setEnabled(bool)) );
} else {
- disconnect( md, SIGNAL(userSelected(bool)), 0, 0 );
+ disconnect( md, TQT_SIGNAL(userSelected(bool)), 0, 0 );
}
rw = ! ( kug->getGroups().getCaps() & KU::KGroups::Cap_ReadOnly );
@@ -163,16 +163,16 @@ void mainWidget::init()
actionCollection()->action("edit_group")->setEnabled( rw );
actionCollection()->action("delete_group")->setEnabled( rw );
if ( rw ) {
- connect( md, SIGNAL(groupSelected(bool)),
- actionCollection()->action("edit_group"), SLOT(setEnabled(bool)) );
- connect( md, SIGNAL(groupSelected(bool)),
- actionCollection()->action("delete_group"), SLOT(setEnabled(bool)) );
+ connect( md, TQT_SIGNAL(groupSelected(bool)),
+ actionCollection()->action("edit_group"), TQT_SLOT(setEnabled(bool)) );
+ connect( md, TQT_SIGNAL(groupSelected(bool)),
+ actionCollection()->action("delete_group"), TQT_SLOT(setEnabled(bool)) );
} else {
- disconnect( md, SIGNAL(groupSelected(bool)), 0, 0 );
+ disconnect( md, TQT_SIGNAL(groupSelected(bool)), 0, 0 );
}
md->reloadUsers();
md->reloadGroups();
- QTimer::singleShot( 0, md, SLOT(slotTabChanged()) );
+ TQTimer::singleShot( 0, md, TQT_SLOT(slotTabChanged()) );
}
void mainWidget::slotApplySettings()
@@ -184,7 +184,7 @@ void mainWidget::slotApplySettings()
void mainWidget::slotApplyConnection()
{
kdDebug() << "slotApplyConnection()" << endl;
- QString conn = sc->connSelected();
+ TQString conn = sc->connSelected();
kug->kcfg()->setConnection( conn );
kug->initCfg( conn );
slotApplySettings();
@@ -193,8 +193,8 @@ void mainWidget::slotApplyConnection()
void mainWidget::selectconn()
{
sc = new SelectConn( kug->kcfg()->connection(), this, "selectconn" );
- connect( sc, SIGNAL(applyClicked()), SLOT(slotApplyConnection()) );
- connect( sc, SIGNAL(okClicked()), SLOT(slotApplyConnection()) );
+ connect( sc, TQT_SIGNAL(applyClicked()), TQT_SLOT(slotApplyConnection()) );
+ connect( sc, TQT_SIGNAL(okClicked()), TQT_SLOT(slotApplyConnection()) );
sc->show();
}