summaryrefslogtreecommitdiffstats
path: root/lib/interfaces/kdevcore.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:24:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-21 23:12:29 +0900
commit0b6a83b773c37ee6949d73346c4a669aa1fc98b8 (patch)
tree03606cf5d79c9c08b77909997c4301fb34bc783c /lib/interfaces/kdevcore.h
parent19ccb502fc61ce7dfa1d030d833d2b1f898051f4 (diff)
downloadtdevelop-0b6a83b773c37ee6949d73346c4a669aa1fc98b8.tar.gz
tdevelop-0b6a83b773c37ee6949d73346c4a669aa1fc98b8.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c)
Diffstat (limited to 'lib/interfaces/kdevcore.h')
-rw-r--r--lib/interfaces/kdevcore.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/interfaces/kdevcore.h b/lib/interfaces/kdevcore.h
index 282906db..e496576f 100644
--- a/lib/interfaces/kdevcore.h
+++ b/lib/interfaces/kdevcore.h
@@ -78,15 +78,15 @@ to if you reimplement TQWidget::contextMenuEvent method.
-# Connect KDevCore::contextMenu(TQPopupMenu *, const Context *) signal to that slot in
the constructor of your plugin:\n
@code
-connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
- this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+connect(core(), TQ_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQ_SLOT(contextMenu(TQPopupMenu *, const Context *)));
@endcode
-# Fill the menu in the slot you created, for example:\n
@code
if (context->hasType(Context::EditorContext))
{
const EditorContext *econtext = static_cast<const EditorContext*>(context);
- int id = popup->insertItem(i18n("My Menu Item 1"), this, TQT_SLOT(myMenuAction1()));
+ int id = popup->insertItem(i18n("My Menu Item 1"), this, TQ_SLOT(myMenuAction1()));
popup->setWhatsThis(id, i18n("What's this for my menu item 1"));
}
else if context->hasType(MyContext))