summaryrefslogtreecommitdiffstats
path: root/kdict/applet/kdictapplet.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 17:34:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 17:51:33 +0900
commit1329ec6abbcb7b79cd960e0ca138f16598d5f11f (patch)
tree8b64fab3a352aada6a046f69f1f7e8a6ad819594 /kdict/applet/kdictapplet.cpp
parent69c2eb8d5f2ed64c876b2a1081cc83ed9f4652d3 (diff)
downloadtdenetwork-1329ec6abbcb7b79cd960e0ca138f16598d5f11f.tar.gz
tdenetwork-1329ec6abbcb7b79cd960e0ca138f16598d5f11f.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kdict/applet/kdictapplet.cpp')
-rw-r--r--kdict/applet/kdictapplet.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdict/applet/kdictapplet.cpp b/kdict/applet/kdictapplet.cpp
index 04268177..1fa07914 100644
--- a/kdict/applet/kdictapplet.cpp
+++ b/kdict/applet/kdictapplet.cpp
@@ -60,7 +60,7 @@ void PopupBox::hideEvent(TQHideEvent *)
{
emit(hidden());
popupEnabled = false;
- TQTimer::singleShot(100, this, TQT_SLOT(enablePopup()));
+ TQTimer::singleShot(100, this, TQ_SLOT(enablePopup()));
}
@@ -111,7 +111,7 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid
clipboardBtn->setBackgroundOrigin(AncestorOrigin);
clipboardBtn->setFont(f);
clipboardBtn->setFixedSize(16,16);
- connect(clipboardBtn, TQT_SIGNAL(clicked()), TQT_SLOT(queryClipboard()));
+ connect(clipboardBtn, TQ_SIGNAL(clicked()), TQ_SLOT(queryClipboard()));
baseLay->addWidget(clipboardBtn,0,3);
TQToolTip::add(clipboardBtn,i18n("Define selected text"));
@@ -120,7 +120,7 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid
defineBtn->setFont(f);
defineBtn->setFixedSize(16,16);
defineBtn->setEnabled(false);
- connect(defineBtn, TQT_SIGNAL(clicked()), TQT_SLOT(startDefine()));
+ connect(defineBtn, TQ_SIGNAL(clicked()), TQ_SLOT(startDefine()));
baseLay->addWidget(defineBtn,0,4);
TQToolTip::add(defineBtn,i18n("Define word/phrase"));
@@ -129,7 +129,7 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid
matchBtn->setFont(f);
matchBtn->setFixedSize(16,16);
matchBtn->setEnabled(false);
- connect(matchBtn, TQT_SIGNAL(clicked()), TQT_SLOT(startMatch()));
+ connect(matchBtn, TQ_SIGNAL(clicked()), TQ_SLOT(startMatch()));
baseLay->addWidget(matchBtn,0,5);
TQToolTip::add(matchBtn,i18n("Find matching definitions"));
@@ -141,8 +141,8 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid
internalCombo->setFocus();
internalCombo->clearEdit();
internalCombo->lineEdit()->installEventFilter( this );
- connect(internalCombo, TQT_SIGNAL(returnPressed(const TQString&)), TQT_SLOT(startQuery(const TQString&)));
- connect(internalCombo, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(comboTextChanged(const TQString&)));
+ connect(internalCombo, TQ_SIGNAL(returnPressed(const TQString&)), TQ_SLOT(startQuery(const TQString&)));
+ connect(internalCombo, TQ_SIGNAL(textChanged(const TQString&)), TQ_SLOT(comboTextChanged(const TQString&)));
TQToolTip::add(internalCombo,i18n("Look up a word or phrase with Kdict"));
baseLay->addMultiCellWidget(internalCombo,1,1,1,5);
@@ -151,21 +151,21 @@ DictApplet::DictApplet(const TQString& configFile, Type type, int actions, TQWid
// widgets for a vertical panel
verticalBtn = new TQPushButton(this);
- connect(verticalBtn, TQT_SIGNAL(pressed()), TQT_SLOT(showExternalCombo()));
+ connect(verticalBtn, TQ_SIGNAL(pressed()), TQ_SLOT(showExternalCombo()));
TQToolTip::add(verticalBtn,i18n("Look up a word or phrase with Kdict"));
popupBox = new PopupBox();
popupBox->setFixedSize(160, 22);
- connect(popupBox, TQT_SIGNAL(hidden()), TQT_SLOT(externalComboHidden()));
+ connect(popupBox, TQ_SIGNAL(hidden()), TQ_SLOT(externalComboHidden()));
externalCombo = new KHistoryCombo(popupBox);
externalCombo->setCompletionObject(completionObject);
- connect(externalCombo, TQT_SIGNAL(returnPressed(const TQString&)), TQT_SLOT(startQuery(const TQString&)));
+ connect(externalCombo, TQ_SIGNAL(returnPressed(const TQString&)), TQ_SLOT(startQuery(const TQString&)));
externalCombo->setFixedSize(160, externalCombo->sizeHint().height());
- connect(internalCombo, TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
- this, TQT_SLOT(updateCompletionMode(TDEGlobalSettings::Completion)));
- connect(externalCombo, TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
- this, TQT_SLOT(updateCompletionMode(TDEGlobalSettings::Completion)));
+ connect(internalCombo, TQ_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
+ this, TQ_SLOT(updateCompletionMode(TDEGlobalSettings::Completion)));
+ connect(externalCombo, TQ_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
+ this, TQ_SLOT(updateCompletionMode(TDEGlobalSettings::Completion)));
// restore history and completion list
TDEConfig *c = config();
@@ -282,7 +282,7 @@ void DictApplet::sendCommand(const TQCString &fun, const TQString &data)
waiting = 1;
delayedFunc = fun.copy();
delayedData = data;
- TQTimer::singleShot(100, this, TQT_SLOT(sendDelayedCommand()));
+ TQTimer::singleShot(100, this, TQ_SLOT(sendDelayedCommand()));
return;
} else {
QCStringList list = client->remoteObjects("kdict");
@@ -290,7 +290,7 @@ void DictApplet::sendCommand(const TQCString &fun, const TQString &data)
waiting = 1;
delayedFunc = fun.copy();
delayedData = data;
- TQTimer::singleShot(100, this, TQT_SLOT(sendDelayedCommand()));
+ TQTimer::singleShot(100, this, TQ_SLOT(sendDelayedCommand()));
return;
}
}
@@ -309,13 +309,13 @@ void DictApplet::sendDelayedCommand()
DCOPClient *client = kapp->dcopClient();
if (!client->isApplicationRegistered("kdict")) {
waiting++;
- TQTimer::singleShot(100, this, TQT_SLOT(sendDelayedCommand()));
+ TQTimer::singleShot(100, this, TQ_SLOT(sendDelayedCommand()));
return;
} else {
QCStringList list = client->remoteObjects("kdict");
if (list.findIndex("KDictIface")==-1) {
waiting++;
- TQTimer::singleShot(100, this, TQT_SLOT(sendDelayedCommand()));
+ TQTimer::singleShot(100, this, TQ_SLOT(sendDelayedCommand()));
return;
}
}