diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:40:32 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-12 18:41:24 +0900 |
commit | 7ad2f154f24ac01a33118779950bcdfe0d16ca94 (patch) | |
tree | b9925df5e2fc01026c3ef866224704086ab32da5 /kuser/mainWidget.cpp | |
parent | 6360698f4f1660c36e1874dc496fb057f28e7b86 (diff) | |
download | tdeadmin-7ad2f154f24ac01a33118779950bcdfe0d16ca94.tar.gz tdeadmin-7ad2f154f24ac01a33118779950bcdfe0d16ca94.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ed7858de3a395180d6ec0c03d8358610b36938ea)
Diffstat (limited to 'kuser/mainWidget.cpp')
-rw-r--r-- | kuser/mainWidget.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kuser/mainWidget.cpp b/kuser/mainWidget.cpp index c11c0ca..9e6fa54 100644 --- a/kuser/mainWidget.cpp +++ b/kuser/mainWidget.cpp @@ -68,46 +68,46 @@ bool mainWidget::queryClose() void mainWidget::setupActions() { - KStdAction::quit(this, TQT_SLOT(close()), actionCollection()); - KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection()); + KStdAction::quit(this, TQ_SLOT(close()), actionCollection()); + KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()), actionCollection()); - KStdAction::preferences(this, TQT_SLOT(properties()), actionCollection()); + KStdAction::preferences(this, TQ_SLOT(properties()), actionCollection()); #define BarIconC(x) BarIcon(TQString::fromLatin1(x)) (void) new TDEAction(i18n("&Add..."), TQIconSet(BarIconC("add_user")), 0, md, - TQT_SLOT(useradd()), actionCollection(), "add_user"); + TQ_SLOT(useradd()), actionCollection(), "add_user"); (void) new TDEAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_user")), 0, md, - TQT_SLOT(useredit()), actionCollection(), "edit_user"); + TQ_SLOT(useredit()), actionCollection(), "edit_user"); (void) new TDEAction(i18n("&Delete..."), TQIconSet(BarIconC("delete_user")), 0, md, - TQT_SLOT(userdel()), actionCollection(), "delete_user"); + TQ_SLOT(userdel()), actionCollection(), "delete_user"); (void) new TDEAction(i18n("&Set Password..."), - 0, md, TQT_SLOT(setpwd()), actionCollection(), "set_password_user"); + 0, md, TQ_SLOT(setpwd()), actionCollection(), "set_password_user"); (void) new TDEAction(i18n("&Add..."), TQIconSet(BarIconC("add_group")), 0, md, - TQT_SLOT(grpadd()), actionCollection(), "add_group"); + TQ_SLOT(grpadd()), actionCollection(), "add_group"); (void) new TDEAction(i18n("&Edit..."), TQIconSet(BarIconC("edit_group")), 0, md, - TQT_SLOT(grpedit()), actionCollection(), "edit_group"); + TQ_SLOT(grpedit()), actionCollection(), "edit_group"); (void) new TDEAction(i18n("&Delete"), TQIconSet(BarIconC("delete_group")), 0, md, - TQT_SLOT(grpdel()), actionCollection(), "delete_group"); + TQ_SLOT(grpdel()), actionCollection(), "delete_group"); (void) new TDEAction(i18n("&Reload"), TQIconSet(BarIconC("reload")), 0, this, - TQT_SLOT(reload()), actionCollection(), "reload"); + TQ_SLOT(reload()), actionCollection(), "reload"); #undef BarIconC (void) new TDEAction(i18n("&Select Connection..."), 0, this, - TQT_SLOT(selectconn()), actionCollection(), "select_conn"); + TQ_SLOT(selectconn()), actionCollection(), "select_conn"); mShowSys = new TDEToggleAction(i18n("Show System Users/Groups"), 0, 0, this, - TQT_SLOT(showSys()), actionCollection(), "show_sys"); + TQ_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, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotApplySettings())); + connect(eddlg, TQ_SIGNAL(settingsChanged()), this, TQ_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, 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)) ); + connect( md, TQ_SIGNAL(userSelected(bool)), + actionCollection()->action("edit_user"), TQ_SLOT(setEnabled(bool)) ); + connect( md, TQ_SIGNAL(userSelected(bool)), + actionCollection()->action("delete_user"), TQ_SLOT(setEnabled(bool)) ); + connect( md, TQ_SIGNAL(userSelected(bool)), + actionCollection()->action("set_password_user"), TQ_SLOT(setEnabled(bool)) ); } else { - disconnect( md, TQT_SIGNAL(userSelected(bool)), 0, 0 ); + disconnect( md, TQ_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, 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)) ); + connect( md, TQ_SIGNAL(groupSelected(bool)), + actionCollection()->action("edit_group"), TQ_SLOT(setEnabled(bool)) ); + connect( md, TQ_SIGNAL(groupSelected(bool)), + actionCollection()->action("delete_group"), TQ_SLOT(setEnabled(bool)) ); } else { - disconnect( md, TQT_SIGNAL(groupSelected(bool)), 0, 0 ); + disconnect( md, TQ_SIGNAL(groupSelected(bool)), 0, 0 ); } md->reloadUsers(); md->reloadGroups(); - TQTimer::singleShot( 0, md, TQT_SLOT(slotTabChanged()) ); + TQTimer::singleShot( 0, md, TQ_SLOT(slotTabChanged()) ); } void mainWidget::slotApplySettings() @@ -193,8 +193,8 @@ void mainWidget::slotApplyConnection() void mainWidget::selectconn() { sc = new SelectConn( kug->kcfg()->connection(), this, "selectconn" ); - connect( sc, TQT_SIGNAL(applyClicked()), TQT_SLOT(slotApplyConnection()) ); - connect( sc, TQT_SIGNAL(okClicked()), TQT_SLOT(slotApplyConnection()) ); + connect( sc, TQ_SIGNAL(applyClicked()), TQ_SLOT(slotApplyConnection()) ); + connect( sc, TQ_SIGNAL(okClicked()), TQ_SLOT(slotApplyConnection()) ); sc->show(); } |