From eedf1c13536da2209d117bd4d01159690ace2ee4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 5 Jan 2024 10:35:50 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 8a15929c2ac3206825be858e4ba4d53532c62333) --- src/AuthDialog.cpp | 8 ++++---- src/polkit-listener.cpp | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/AuthDialog.cpp b/src/AuthDialog.cpp index 03872af..c4848c8 100644 --- a/src/AuthDialog.cpp +++ b/src/AuthDialog.cpp @@ -102,8 +102,8 @@ AuthDialog::AuthDialog(const TQString &actionId, const TQString &message, // If there is more than 1 identity we will show the combobox for user selection if (identities.size() > 1) { - connect(m_authWidget->userCB, SIGNAL(activated(int)), - this, SLOT(on_userCB_currentIndexChanged(int))); + connect(m_authWidget->userCB, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(on_userCB_currentIndexChanged(int))); createUserCB(identities); } else @@ -336,8 +336,8 @@ AuthDetails::AuthDetails(const Details &details, const ActionDescription &action vendorUL->hide(); } - connect(vendorUL, TQT_SIGNAL(leftClickedURL(const TQString&)), - TQT_SLOT(openUrl(const TQString&))); + connect(vendorUL, TQ_SIGNAL(leftClickedURL(const TQString&)), + TQ_SLOT(openUrl(const TQString&))); } void AuthDetails::openUrl(const TQString &url) diff --git a/src/polkit-listener.cpp b/src/polkit-listener.cpp index 16e2a3b..fa05566 100644 --- a/src/polkit-listener.cpp +++ b/src/polkit-listener.cpp @@ -76,10 +76,10 @@ void PolkitListener::initiateAuthentication(const TQString &actionId, const TQSt m_inProgress = true; m_dialog = new AuthDialog(actionId, message, iconName, details, identities); - connect(m_dialog, TQT_SIGNAL(okClicked()), TQT_SLOT(dialogAccepted())); - connect(m_dialog, TQT_SIGNAL(cancelClicked()), TQT_SLOT(dialogCanceled())); - connect(m_dialog, TQT_SIGNAL(adminUserSelected(const PolkitTQt::Identity&)), - TQT_SLOT(userSelected(const PolkitTQt::Identity&))); + connect(m_dialog, TQ_SIGNAL(okClicked()), TQ_SLOT(dialogAccepted())); + connect(m_dialog, TQ_SIGNAL(cancelClicked()), TQ_SLOT(dialogCanceled())); + connect(m_dialog, TQ_SIGNAL(adminUserSelected(const PolkitTQt::Identity&)), + TQ_SLOT(userSelected(const PolkitTQt::Identity&))); m_dialog->setOptions(); m_dialog->show(); @@ -108,11 +108,11 @@ void PolkitListener::tryAgain() if (m_selectedUser.isValid()) { m_session = new Session(m_selectedUser, m_cookie, m_result); - connect(m_session, TQT_SIGNAL(request(const TQString&, bool)), this, - TQT_SLOT(request(const TQString&, bool))); - connect(m_session, TQT_SIGNAL(completed(bool)), this, TQT_SLOT(completed(bool))); - connect(m_session, TQT_SIGNAL(showError(const TQString&)), this, - TQT_SLOT(showError(const TQString&))); + connect(m_session, TQ_SIGNAL(request(const TQString&, bool)), this, + TQ_SLOT(request(const TQString&, bool))); + connect(m_session, TQ_SIGNAL(completed(bool)), this, TQ_SLOT(completed(bool))); + connect(m_session, TQ_SIGNAL(showError(const TQString&)), this, + TQ_SLOT(showError(const TQString&))); m_session->initiate(); } } -- cgit v1.2.1