diff options
author | Michele Calgaro <[email protected]> | 2023-12-28 21:16:10 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-01 20:25:20 +0900 |
commit | 01627fbd795c62fb7f6e8f0bce8ae6cf3dc5b6de (patch) | |
tree | 6fc3295d8f5cf222b37b0721ed00b1a1f514cc96 /src/likeback.cpp | |
parent | 166571710ff186cff2b09a83336f6aadc2c8340a (diff) | |
download | tork-01627fbd795c62fb7f6e8f0bce8ae6cf3dc5b6de.tar.gz tork-01627fbd795c62fb7f6e8f0bce8ae6cf3dc5b6de.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit a3180d7d508dc046a75a887d43a7e6b2d5f02468)
Diffstat (limited to 'src/likeback.cpp')
-rw-r--r-- | src/likeback.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/likeback.cpp b/src/likeback.cpp index 80cf232..976e328 100644 --- a/src/likeback.cpp +++ b/src/likeback.cpp @@ -73,31 +73,31 @@ LikeBackBar::LikeBackBar(LikeBack *likeBack) m_likeButton->setIconSet(likeIconSet); m_likeButton->setTextLabel("<p>" + i18n("Send application developers a comment about something you like")); m_likeButton->setAutoRaise(true); - connect( m_likeButton, SIGNAL(clicked()), this, SLOT(clickedLike()) ); + connect( m_likeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedLike()) ); layout->add(m_likeButton); m_dislikeButton = new TQToolButton(this, "likeback_dislike_tork"); m_dislikeButton->setIconSet(dislikeIconSet); m_dislikeButton->setTextLabel("<p>" + i18n("Send application developers a comment about something you dislike")); m_dislikeButton->setAutoRaise(true); - connect( m_dislikeButton, SIGNAL(clicked()), this, SLOT(clickedDislike()) ); + connect( m_dislikeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedDislike()) ); layout->add(m_dislikeButton); m_bugButton = new TQToolButton(this, "likeback_bug_tork"); m_bugButton->setIconSet(bugIconSet); m_bugButton->setTextLabel("<p>" + i18n("Send application developers a comment about an improper behavior of the application")); m_bugButton->setAutoRaise(true); - connect( m_bugButton, SIGNAL(clicked()), this, SLOT(clickedBug()) ); + connect( m_bugButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedBug()) ); layout->add(m_bugButton); m_featureButton = new TQToolButton(this, "likeback_feature_tork"); m_featureButton->setIconSet(featureIconSet); m_featureButton->setTextLabel("<p>" + i18n("Send application developers a comment about a new feature you desire")); m_featureButton->setAutoRaise(true); - connect( m_featureButton, SIGNAL(clicked()), this, SLOT(clickedFeature()) ); + connect( m_featureButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(clickedFeature()) ); layout->add(m_featureButton); - connect( &m_timer, SIGNAL(timeout()), this, SLOT(autoMove()) ); + connect( &m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(autoMove()) ); LikeBack::Button buttons = likeBack->buttons(); m_likeButton->setShown( buttons & LikeBack::Like ); @@ -243,7 +243,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, SLOT(startTimer()) ); + TQTimer::singleShot( 0, d->bar, TQ_SLOT(startTimer()) ); #if 0 disableBar(); @@ -378,7 +378,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, SLOT(execCommentDialog()), + this, TQ_SLOT(execCommentDialog()), parent, "likeback_send_a_comment" ); @@ -584,7 +584,7 @@ bool LikeBack::isDevelopmentVersion(const TQString &version) return; m_process = new TDEProcess(); *m_process << TQString::fromLatin1("tdecmshell") << TQString::fromLatin1("kcm_useraccount"); - connect( m_process, SIGNAL(processExited(TDEProcess*)), 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; @@ -717,11 +717,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, SIGNAL(stateChanged(int)), this, 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, SIGNAL(textChanged()), this, SLOT(commentChanged()) ); + connect( m_comment, TQ_SIGNAL(textChanged()), this, TQ_SLOT(commentChanged()) ); setButtonGuiItem(Default, KGuiItem(i18n("&Email Address..."), "mail_generic")); @@ -729,7 +729,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC TQAction *sendShortcut = new TQAction(this); sendShortcut->setAccel(TQString("Ctrl+Return")); - connect( sendShortcut, SIGNAL(activated()), actionButton(Ok), SLOT(animateClick()) ); + connect( sendShortcut, TQ_SIGNAL(activated()), actionButton(Ok), TQ_SLOT(animateClick()) ); setMainWidget(page); } @@ -819,7 +819,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, SIGNAL(requestFinished(int, bool)), this, 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()); |