From 7ad2f154f24ac01a33118779950bcdfe0d16ca94 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 11 Jan 2024 10:40:32 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit ed7858de3a395180d6ec0c03d8358610b36938ea) --- kuser/addUser.cpp | 2 +- kuser/editDefaults.cpp | 10 ++++---- kuser/editGroup.cpp | 20 +++++++-------- kuser/kgroupldap.cpp | 16 ++++++------ kuser/kuserldap.cpp | 16 ++++++------ kuser/mainView.cpp | 10 ++++---- kuser/mainWidget.cpp | 58 +++++++++++++++++++++--------------------- kuser/propdlg.cpp | 68 +++++++++++++++++++++++++------------------------- kuser/selectconn.cpp | 4 +-- 9 files changed, 102 insertions(+), 102 deletions(-) (limited to 'kuser') diff --git a/kuser/addUser.cpp b/kuser/addUser.cpp index 06f716a..ed154d5 100644 --- a/kuser/addUser.cpp +++ b/kuser/addUser.cpp @@ -49,7 +49,7 @@ addUser::addUser( KU::KUser *AUser, bool useprivategroup, createhome = new TQCheckBox(i18n("Create home folder"), group); createhome->setChecked(true); copyskel = new TQCheckBox(i18n("Copy skeleton"), group); - connect(createhome, TQT_SIGNAL(toggled(bool)), copyskel, TQT_SLOT(setEnabled(bool))); + connect(createhome, TQ_SIGNAL(toggled(bool)), copyskel, TQ_SLOT(setEnabled(bool))); frontlayout->addMultiCellWidget(group, frontrow, frontrow, 0, 2); if ( useprivategroup ) pbprigr->setEnabled( false ); diff --git a/kuser/editDefaults.cpp b/kuser/editDefaults.cpp index b030c2b..37e2a63 100644 --- a/kuser/editDefaults.cpp +++ b/kuser/editDefaults.cpp @@ -76,7 +76,7 @@ editDefaults::editDefaults( TDEConfigSkeleton *config, TQWidget *parent, const c page3->addTab( page3b, i18n("Settings") ); page3c = new LdapSamba( this ); - connect( page3c->domQuery, TQT_SIGNAL(clicked()), TQT_SLOT(slotQueryClicked()) ); + connect( page3c->domQuery, TQ_SIGNAL(clicked()), TQ_SLOT(slotQueryClicked()) ); page3->addTab( page3c, i18n("Samba") ); addPage( page3, i18n("LDAP"), "", i18n("LDAP Source Settings") ); } @@ -107,10 +107,10 @@ void editDefaults::slotQueryClicked() mLdif.startParsing(); TDEIO::Job *job = TDEIO::get( _url, true, false ); // job->addMetaData("no-auth-prompt","true"); - connect( job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), - this, TQT_SLOT( loadData( TDEIO::Job*, const TQByteArray& ) ) ); - connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), - this, TQT_SLOT( loadResult( TDEIO::Job* ) ) ); + connect( job, TQ_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), + this, TQ_SLOT( loadData( TDEIO::Job*, const TQByteArray& ) ) ); + connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ), + this, TQ_SLOT( loadResult( TDEIO::Job* ) ) ); mProg = new KProgressDialog( this, 0, i18n("LDAP Query"), _url.prettyURL(), true ); mProg->progressBar()->setValue( 0 ); diff --git a/kuser/editGroup.cpp b/kuser/editGroup.cpp index 7bab765..c5de11e 100644 --- a/kuser/editGroup.cpp +++ b/kuser/editGroup.cpp @@ -80,7 +80,7 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add, lerid->setCurrentText( TQString::number( sid.getRID() ) ); lerid->setValidator (new TQIntValidator(this) ); lerid->setEnabled( mAdd ); - connect( lerid, TQT_SIGNAL(activated(int)), TQT_SLOT(ridSelected(int)) ); + connect( lerid, TQ_SIGNAL(activated(int)), TQ_SLOT(ridSelected(int)) ); lb->setBuddy( lerid ); layout->addWidget( lb, 1, 0 ); layout->addMultiCellWidget( lerid, 1, 1, 1, 2 ); @@ -150,11 +150,11 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add, cbsamba = new TQCheckBox( i18n("Disable Samba group information"), page ); layout->addMultiCellWidget( cbsamba, 7, 7, 0, 2 ); - connect( cbsamba, TQT_SIGNAL(toggled(bool)), ledesc, TQT_SLOT(setDisabled(bool)) ); - connect( cbsamba, TQT_SIGNAL(toggled(bool)), ledispname, TQT_SLOT(setDisabled(bool)) ); - connect( cbsamba, TQT_SIGNAL(toggled(bool)), letype, TQT_SLOT(setDisabled(bool)) ); - connect( cbsamba, TQT_SIGNAL(toggled(bool)), ledomsid, TQT_SLOT(setDisabled(bool)) ); - if ( mAdd ) connect( cbsamba, TQT_SIGNAL(toggled(bool)), lerid, TQT_SLOT(setDisabled(bool)) ); + connect( cbsamba, TQ_SIGNAL(toggled(bool)), ledesc, TQ_SLOT(setDisabled(bool)) ); + connect( cbsamba, TQ_SIGNAL(toggled(bool)), ledispname, TQ_SLOT(setDisabled(bool)) ); + connect( cbsamba, TQ_SIGNAL(toggled(bool)), letype, TQ_SLOT(setDisabled(bool)) ); + connect( cbsamba, TQ_SIGNAL(toggled(bool)), ledomsid, TQ_SLOT(setDisabled(bool)) ); + if ( mAdd ) connect( cbsamba, TQ_SIGNAL(toggled(bool)), lerid, TQ_SLOT(setDisabled(bool)) ); if ( !mAdd ) cbsamba->setChecked( !( kg->getCaps() & KU::KGroup::Cap_Samba ) ); } @@ -176,8 +176,8 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add, layout->addWidget( m_list_notin, 8, 2 ); // TQString whatstr = i18n("Select the users that should be in this kg->"); // TQWhatsThis::add(m_list, whatstr); -// connect(this,TQT_SIGNAL(okClicked(void)), - //this,TQT_SLOT(okClicked())); +// connect(this,TQ_SIGNAL(okClicked(void)), + //this,TQ_SLOT(okClicked())); for (unsigned int i = 0; igetUsers().count(); i++) { @@ -192,8 +192,8 @@ editGroup::editGroup(KU::KGroup *akg, bool samba, bool add, } } - connect(btadd, TQT_SIGNAL(clicked()), TQT_SLOT(addClicked())); - connect(btdel, TQT_SIGNAL(clicked()), TQT_SLOT(delClicked())); + connect(btadd, TQ_SIGNAL(clicked()), TQ_SLOT(addClicked())); + connect(btdel, TQ_SIGNAL(clicked()), TQ_SLOT(delClicked())); if ( ro ) { btadd->setEnabled( false ); diff --git a/kuser/kgroupldap.cpp b/kuser/kgroupldap.cpp index c969e19..977cb06 100644 --- a/kuser/kgroupldap.cpp +++ b/kuser/kgroupldap.cpp @@ -170,10 +170,10 @@ bool KGroupLDAP::reload() ldif = ""; TDEIO::Job *job = TDEIO::get( mUrl, true, false ); - connect( job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), - this, TQT_SLOT( data( TDEIO::Job*, const TQByteArray& ) ) ); - connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), - this, TQT_SLOT( result( TDEIO::Job* ) ) ); + connect( job, TQ_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), + this, TQ_SLOT( data( TDEIO::Job*, const TQByteArray& ) ) ); + connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ), + this, TQ_SLOT( result( TDEIO::Job* ) ) ); mProg->exec(); if ( mCancel ) job->kill(); @@ -193,10 +193,10 @@ bool KGroupLDAP::dbcommit() mProg = new KProgressDialog( 0, "", i18n("LDAP Operation"), "", true ); TDEIO::Job *job = TDEIO::put( mUrl, -1, false, false, false ); - connect( job, TQT_SIGNAL( dataReq( TDEIO::Job*, TQByteArray& ) ), - this, TQT_SLOT( putData( TDEIO::Job*, TQByteArray& ) ) ); - connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), - this, TQT_SLOT( result( TDEIO::Job* ) ) ); + connect( job, TQ_SIGNAL( dataReq( TDEIO::Job*, TQByteArray& ) ), + this, TQ_SLOT( putData( TDEIO::Job*, TQByteArray& ) ) ); + connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ), + this, TQ_SLOT( result( TDEIO::Job* ) ) ); mProg->exec(); return( mOk ); } diff --git a/kuser/kuserldap.cpp b/kuser/kuserldap.cpp index a136b61..5ad7836 100644 --- a/kuser/kuserldap.cpp +++ b/kuser/kuserldap.cpp @@ -248,10 +248,10 @@ bool KUserLDAP::reload() ldif = ""; TDEIO::Job *job = TDEIO::get( mUrl, true, false ); - connect( job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), - this, TQT_SLOT( data( TDEIO::Job*, const TQByteArray& ) ) ); - connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), - this, TQT_SLOT( result( TDEIO::Job* ) ) ); + connect( job, TQ_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ), + this, TQ_SLOT( data( TDEIO::Job*, const TQByteArray& ) ) ); + connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ), + this, TQ_SLOT( result( TDEIO::Job* ) ) ); // job->addMetaData( "SERVER_CTRL0", "1.2.840.113556.1.4.473 true: uidNumber"); mProg->exec(); if ( mCancel ) job->kill(); @@ -610,10 +610,10 @@ bool KUserLDAP::dbcommit() mProg = new KProgressDialog( 0, "", i18n("LDAP Operation"), "", true ); TDEIO::Job *job = TDEIO::put( mUrl, -1, false, false, false ); - connect( job, TQT_SIGNAL( dataReq( TDEIO::Job*, TQByteArray& ) ), - this, TQT_SLOT( putData( TDEIO::Job*, TQByteArray& ) ) ); - connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), - this, TQT_SLOT( result( TDEIO::Job* ) ) ); + connect( job, TQ_SIGNAL( dataReq( TDEIO::Job*, TQByteArray& ) ), + this, TQ_SLOT( putData( TDEIO::Job*, TQByteArray& ) ) ); + connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ), + this, TQ_SLOT( result( TDEIO::Job* ) ) ); mProg->exec(); return( mOk ); } diff --git a/kuser/mainView.cpp b/kuser/mainView.cpp index eae6ef8..9533b54 100644 --- a/kuser/mainView.cpp +++ b/kuser/mainView.cpp @@ -52,13 +52,13 @@ void mainView::init() { lbgroups = new KGroupView( this, "lbgroups" ); addTab( lbgroups, i18n("Groups")); - connect(lbusers, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(userSelected())); - connect(lbusers, TQT_SIGNAL(returnPressed(TQListViewItem *)), this, TQT_SLOT(userSelected())); + connect(lbusers, TQ_SIGNAL(doubleClicked(TQListViewItem *)), this, TQ_SLOT(userSelected())); + connect(lbusers, TQ_SIGNAL(returnPressed(TQListViewItem *)), this, TQ_SLOT(userSelected())); - connect(lbgroups, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(groupSelected())); - connect(lbgroups, TQT_SIGNAL(returnPressed(TQListViewItem *)), this, TQT_SLOT(groupSelected())); + connect(lbgroups, TQ_SIGNAL(doubleClicked(TQListViewItem *)), this, TQ_SLOT(groupSelected())); + connect(lbgroups, TQ_SIGNAL(returnPressed(TQListViewItem *)), this, TQ_SLOT(groupSelected())); - connect(this, TQT_SIGNAL(currentChanged(TQWidget *)), this, TQT_SLOT(slotTabChanged())); + connect(this, TQ_SIGNAL(currentChanged(TQWidget *)), this, TQ_SLOT(slotTabChanged())); } mainView::~mainView() 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(); } diff --git a/kuser/propdlg.cpp b/kuser/propdlg.cpp index 4ffe281..7693d6d 100644 --- a/kuser/propdlg.cpp +++ b/kuser/propdlg.cpp @@ -86,7 +86,7 @@ KIntSpinBox *propdlg::addDaysGroup(TQWidget *parent, TQGridLayout *layout, int r } layout->addWidget( days, row, 2 ); - connect(days, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); + connect(days, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(changed())); TQCheckBox *nc = new TQCheckBox( i18n("Do not change"), parent ); layout->addWidget( nc, row, 3 ); @@ -119,31 +119,31 @@ void propdlg::initDlg() // whatstr = i18n("WHAT IS THIS: User Id"); leid->setValidator(new TQIntValidator(frame)); addRow(frame, layout, row++, leid, i18n("&User ID:"), whatstr); - connect(leid, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leid, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); if ( !ro ) { pbsetpwd = new TQPushButton(i18n("Set &Password..."), frame); layout->addWidget(pbsetpwd, 0, 2); - connect(pbsetpwd, TQT_SIGNAL(clicked()), this, TQT_SLOT(setpwd())); + connect(pbsetpwd, TQ_SIGNAL(clicked()), this, TQ_SLOT(setpwd())); } lefname = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Full Name"); addRow(frame, layout, row++, lefname, i18n("Full &name:"), whatstr); - connect(lefname, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lefname, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); lefname->setFocus(); if ( kug->getUsers().getCaps() & KU::KUsers::Cap_InetOrg ) { lesurname = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Surname"); addRow(frame, layout, row++, lesurname, i18n("Surname:"), whatstr); - connect(lesurname, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lesurname, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); lemail = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Email"); addRow(frame, layout, row++, lemail, i18n("Email address:"), whatstr); - connect(lemail, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lemail, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); } leshell = new KComboBox(true, frame); @@ -153,13 +153,13 @@ void propdlg::initDlg() TQStringList shells = readShells(); shells.sort(); leshell->insertStringList(shells); - connect(leshell, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(changed())); - connect(leshell, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leshell, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(changed())); + connect(leshell, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Login Shell"); addRow(frame, layout, row++, leshell, i18n("&Login shell:"), whatstr); lehome = new KLineEdit(frame); - connect(lehome, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lehome, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Home Directory"); addRow(frame, layout, row++, lehome, i18n("&Home folder:"), whatstr); @@ -167,48 +167,48 @@ void propdlg::initDlg() // differently than Linux. if ( kug->getUsers().getCaps() & KU::KUsers::Cap_BSD ) { leoffice = new KLineEdit(frame); - connect(leoffice, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leoffice, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Office"); addRow(frame, layout, row++, leoffice, i18n("&Office:"), whatstr); leophone = new KLineEdit(frame); - connect(leophone, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leophone, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Office Phone"); addRow(frame, layout, row++, leophone, i18n("Offi&ce Phone:"), whatstr); lehphone = new KLineEdit(frame); - connect(lehphone, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lehphone, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Home Phone"); addRow(frame, layout, row++, lehphone, i18n("Ho&me Phone:"), whatstr); leclass = new KLineEdit(frame); - connect(leclass, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leclass, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Login class"); addRow(frame, layout, row++, leclass, i18n("Login class:"), whatstr, true); } else { leoffice1 = new KLineEdit(frame); - connect(leoffice1, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leoffice1, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Office1"); addRow(frame, layout, row++, leoffice1, i18n("&Office #1:"), whatstr); leoffice2 = new KLineEdit(frame); - connect(leoffice2, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leoffice2, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Office2"); addRow(frame, layout, row++, leoffice2, i18n("O&ffice #2:"), whatstr); leaddress = new KLineEdit(frame); - connect(leaddress, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leaddress, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); // whatstr = i18n("WHAT IS THIS: Address"); addRow(frame, layout, row++, leaddress, i18n("&Address:"), whatstr); } cbdisabled = new TQCheckBox(frame); - connect(cbdisabled, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); + connect(cbdisabled, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); addRow(frame, layout, row++, cbdisabled, i18n("Account &disabled"), whatstr); if ( kug->getUsers().getCaps() & KU::KUsers::Cap_Disable_POSIX ) { cbposix = new TQCheckBox(frame); - connect(cbposix, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(cbposix, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(cbposixChanged())); + connect(cbposix, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(cbposix, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(cbposixChanged())); addRow(frame, layout, row++, cbposix, i18n("Disable &POSIX account information"), whatstr); } else { cbposix = 0; @@ -257,9 +257,9 @@ void propdlg::initDlg() cbexpire = new TQCheckBox( i18n("Never"), frame ); layout->addWidget( cbexpire, row++, 3 ); - connect( lesexpire, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(changed()) ); - connect( cbexpire, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed()) ); - connect( cbexpire, TQT_SIGNAL(toggled(bool)), lesexpire, TQT_SLOT(setDisabled(bool)) ); + connect( lesexpire, TQ_SIGNAL(valueChanged(const TQDateTime&)), this, TQ_SLOT(changed()) ); + connect( cbexpire, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed()) ); + connect( cbexpire, TQ_SIGNAL(toggled(bool)), lesexpire, TQ_SLOT(setDisabled(bool)) ); } // Tab 3: Samba @@ -272,46 +272,46 @@ void propdlg::initDlg() // whatstr = i18n("WHAT IS THIS: Rid"); lerid->setValidator(new TQIntValidator(frame)); addRow(frame, layout, row++, lerid, i18n("RID:"), whatstr); - connect(lerid, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lerid, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); leliscript = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, leliscript, i18n("Login script:"), whatstr); - connect(leliscript, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leliscript, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); leprofile = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, leprofile, i18n("Profile path:"), whatstr); - connect(leprofile, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leprofile, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); lehomedrive = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, lehomedrive, i18n("Home drive:"), whatstr); - connect(lehomedrive, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lehomedrive, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); lehomepath = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, lehomepath, i18n("Home path:"), whatstr); - connect(lehomepath, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(lehomepath, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); leworkstations = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, leworkstations, i18n("User workstations:"), whatstr); - connect(leworkstations, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(leworkstations, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); ledomain = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, ledomain, i18n("Domain name:"), whatstr); - connect(ledomain, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(ledomain, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); ledomsid = new KLineEdit(frame); // whatstr = i18n("WHAT IS THIS: Login script"); addRow(frame, layout, row++, ledomsid, i18n("Domain SID:"), whatstr); - connect(ledomsid, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changed())); + connect(ledomsid, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changed())); cbsamba = new TQCheckBox(frame); - connect(cbsamba, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changed())); - connect(cbsamba, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(cbsambaChanged())); + connect(cbsamba, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changed())); + connect(cbsamba, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(cbsambaChanged())); addRow(frame, layout, row++, cbsamba, i18n("Disable &Samba account information"), whatstr); } @@ -332,9 +332,9 @@ void propdlg::initDlg() if ( !ro ) { pbprigr = new TQPushButton( i18n("Set as Primary"), frame ); layout->addWidget( pbprigr, 1, 1 ); - connect( pbprigr, TQT_SIGNAL(clicked()), this, TQT_SLOT(setpgroup()) ); + connect( pbprigr, TQ_SIGNAL(clicked()), this, TQ_SLOT(setpgroup()) ); } - connect( lstgrp, TQT_SIGNAL(clicked(TQListViewItem *)), this, TQT_SLOT(gchanged()) ); + connect( lstgrp, TQ_SIGNAL(clicked(TQListViewItem *)), this, TQ_SLOT(gchanged()) ); } } diff --git a/kuser/selectconn.cpp b/kuser/selectconn.cpp index 30066f0..9ab2911 100644 --- a/kuser/selectconn.cpp +++ b/kuser/selectconn.cpp @@ -88,7 +88,7 @@ void SelectConn::slotUser3() KUserPrefsBase kcfg( kapp->sharedConfig(), newconn ); editDefaults eddlg( &kcfg, this ); - connect(&eddlg, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotNewApplySettings())); + connect(&eddlg, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(slotNewApplySettings())); eddlg.exec(); if ( newconn.isEmpty() ) @@ -111,7 +111,7 @@ void SelectConn::slotUser2() kcfg.readConfig(); editDefaults eddlg( &kcfg, this ); - connect( &eddlg, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotApplySettings()) ); + connect( &eddlg, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(slotApplySettings()) ); eddlg.exec(); } -- cgit v1.2.1