From bea15ca3009c2f8505bfa10445c1dc2fc43a4ffe Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 4 Jan 2024 10:28:49 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- src/likeback.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/likeback.cpp') diff --git a/src/likeback.cpp b/src/likeback.cpp index b081031..b716b14 100644 --- a/src/likeback.cpp +++ b/src/likeback.cpp @@ -74,31 +74,31 @@ LikeBackBar::LikeBackBar(LikeBack *likeBack) m_likeButton->setIconSet(likeIconSet); m_likeButton->setTextLabel("

" + i18n("Send application developers a comment about something you like")); m_likeButton->setAutoRaise(true); - connect( m_likeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(clickedLike()) ); + connect( m_likeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedLike()) ); layout->add(m_likeButton); m_dislikeButton = new TQToolButton(this, "likeback_dislike"); m_dislikeButton->setIconSet(dislikeIconSet); m_dislikeButton->setTextLabel("

" + i18n("Send application developers a comment about something you dislike")); m_dislikeButton->setAutoRaise(true); - connect( m_dislikeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(clickedDislike()) ); + connect( m_dislikeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedDislike()) ); layout->add(m_dislikeButton); m_bugButton = new TQToolButton(this, "likeback_bug"); m_bugButton->setIconSet(bugIconSet); m_bugButton->setTextLabel("

" + i18n("Send application developers a comment about an improper behavior of the application")); m_bugButton->setAutoRaise(true); - connect( m_bugButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(clickedBug()) ); + connect( m_bugButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedBug()) ); layout->add(m_bugButton); m_featureButton = new TQToolButton(this, "likeback_feature"); m_featureButton->setIconSet(featureIconSet); m_featureButton->setTextLabel("

" + i18n("Send application developers a comment about a new feature you desire")); m_featureButton->setAutoRaise(true); - connect( m_featureButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(clickedFeature()) ); + connect( m_featureButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedFeature()) ); layout->add(m_featureButton); - connect( &m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(autoMove()) ); + connect( &m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(autoMove()) ); LikeBack::Button buttons = likeBack->buttons(); m_likeButton->setShown( buttons & LikeBack::Like ); @@ -244,7 +244,7 @@ LikeBack::LikeBack(Button buttons, bool showBarByDefault, TDEConfig *config, con // Show the bar if that's wanted by the developer or the user: if (d->showBar) - TQTimer::singleShot( 0, d->bar, TQT_SLOT(startTimer()) ); + TQTimer::singleShot( 0, d->bar, TQ_SLOT(startTimer()) ); #if 0 disableBar(); @@ -379,7 +379,7 @@ TDEAction* LikeBack::sendACommentAction(TDEActionCollection *parent) if (d->action == 0) d->action = new TDEAction( i18n("&Send a Comment to Developers"), /*icon=*/"mail-message-new", /*shortcut=*/"", - this, TQT_SLOT(execCommentDialog()), + this, TQ_SLOT(execCommentDialog()), parent, "likeback_send_a_comment" ); @@ -585,7 +585,7 @@ bool LikeBack::isDevelopmentVersion(const TQString &version) return; m_process = new TDEProcess(); *m_process << TQString::fromLatin1("tdecmshell") << TQString::fromLatin1("kcm_useraccount"); - connect( m_process, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SLOT(fetchUserEmail()) ); + connect( m_process, TQ_SIGNAL(processExited(TDEProcess*)), TQ_SLOT(fetchUserEmail()) ); if (!m_process->start()) { kdDebug() << "Couldn't start tdecmshell.." << endl; delete m_process; @@ -718,11 +718,11 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC m_showButtons = new TQCheckBox(i18n("Show comment buttons below &window titlebars"), page); m_showButtons->setChecked(m_likeBack->userWantsToShowBar()); pageLayout->addWidget(m_showButtons); - connect( m_showButtons, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(changeButtonBarVisible()) ); + connect( m_showButtons, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(changeButtonBarVisible()) ); setButtonOK(KGuiItem(i18n("&Send Comment"), "mail-send")); enableButtonOK(false); - connect( m_comment, TQT_SIGNAL(textChanged()), this, TQT_SLOT(commentChanged()) ); + connect( m_comment, TQ_SIGNAL(textChanged()), this, TQ_SLOT(commentChanged()) ); setButtonGuiItem(Default, KGuiItem(i18n("&Email Address..."), "mail_generic")); @@ -730,7 +730,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC TQAction *sendShortcut = new TQAction(this); sendShortcut->setAccel(TQString("Ctrl+Return")); - connect( sendShortcut, TQT_SIGNAL(activated()), actionButton(Ok), TQT_SLOT(animateClick()) ); + connect( sendShortcut, TQ_SIGNAL(activated()), actionButton(Ok), TQ_SLOT(animateClick()) ); setMainWidget(page); } @@ -820,7 +820,7 @@ void LikeBackDialog::send() std::cout << "http://" << m_likeBack->hostName().local8Bit() << ":" << m_likeBack->hostPort() << m_likeBack->remotePath().local8Bit() << std::endl; std::cout << data.local8Bit() << std::endl; - connect( http, TQT_SIGNAL(requestFinished(int, bool)), this, TQT_SLOT(requestFinished(int, bool)) ); + connect( http, TQ_SIGNAL(requestFinished(int, bool)), this, TQ_SLOT(requestFinished(int, bool)) ); TQHttpRequestHeader header("POST", m_likeBack->remotePath()); header.setValue("Host", m_likeBack->hostName()); -- cgit v1.2.1