summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KStdAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KStdAction.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/KStdAction.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KStdAction.java b/tdejava/koala/org/trinitydesktop/koala/KStdAction.java
index da3d582f..8a2085f8 100644
--- a/tdejava/koala/org/trinitydesktop/koala/KStdAction.java
+++ b/tdejava/koala/org/trinitydesktop/koala/KStdAction.java
@@ -22,11 +22,11 @@ import org.trinitydesktop.qt.TQWidget;
<pre>
TDEAction newAct = new TDEAction(i18n("&New"), TQIconSet(BarIcon("filenew")),
TDEStdAccel.shortcut(TDEStdAccel.New), this,
- SLOT("fileNew()"), actionCollection());
+ TQ_SLOT("fileNew()"), actionCollection());
</pre>
You could drop that and replace it with:
<pre>
- TDEAction newAct = KStdAction.openNew(this, SLOT("fileNew()"),
+ TDEAction newAct = KStdAction.openNew(this, TQ_SLOT("fileNew()"),
actionCollection());
</pre>
<li><b>Non-standard Usages</b></li>
@@ -47,7 +47,7 @@ import org.trinitydesktop.qt.TQWidget;
However, you can change the internal name. In this example, just
do something like:
<pre>
- KStdAction.cut(this, SLOT("editCut()"), actionCollection(), "my_cut");
+ KStdAction.cut(this, TQ_SLOT("editCut()"), actionCollection(), "my_cut");
</pre>
Now, in your local XML resource file (e.g., yourappui.rc), simply
put 'my_cut' where you want it to go.
@@ -61,13 +61,13 @@ import org.trinitydesktop.qt.TQWidget;
</pre>
Another non-standard usage concerns instantiating the action in the
first place. Usually, you would use the member functions as
- shown above (e.g., KStdAction.cut(this, SLOT, parent)). You
+ shown above (e.g., KStdAction.cut(this, TQ_SLOT, parent)). You
may, however, do this using the enums provided. This author can't
think of a reason why you would want to, but, hey, if you do,
here's how:
<pre>
- KStdAction.action(KStdAction.New, this, SLOT("fileNew()"), actionCollection());
- KStdAction.action(KStdAction.Cut, this, SLOT("editCut()"), actionCollection());
+ KStdAction.action(KStdAction.New, this, TQ_SLOT("fileNew()"), actionCollection());
+ KStdAction.action(KStdAction.Cut, this, TQ_SLOT("editCut()"), actionCollection());
</pre>
@author Kurt Granroth <granroth@kde.org>
@@ -179,7 +179,7 @@ public class KStdAction {
Open a recently used document. The signature of the slot being called
is of the form slotURLSelected( KURL ).
@param recvr object to receive slot
- @param slot The SLOT to invoke when a URL is selected. The slot's
+ @param slot The slot to invoke when a URL is selected. The slot's
signature is slotURLSelected( KURL ).
@param parent parent widget
@param name name of widget
@@ -476,7 +476,7 @@ public class KStdAction {
/**
Display the configure key bindings dialog.
Note that you might be able to use the pre-built KXMLGUIFactory's fuction:
- KStdAction.keyBindings(guiFactory(), SLOT("configureShortcuts()"), actionCollection());
+ KStdAction.keyBindings(guiFactory(), TQ_SLOT("configureShortcuts()"), actionCollection());
@short Display the configure key bindings dialog.
*/
public static native TDEAction keyBindings(TQObject recvr, String slot, TDEActionCollection parent, String name);