diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/org/kde/qt/qtjava.java | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/org/kde/qt/qtjava.java')
-rw-r--r-- | qtjava/javalib/org/kde/qt/qtjava.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qtjava/javalib/org/kde/qt/qtjava.java b/qtjava/javalib/org/kde/qt/qtjava.java index 8547776c..4ce02b93 100644 --- a/qtjava/javalib/org/kde/qt/qtjava.java +++ b/qtjava/javalib/org/kde/qt/qtjava.java @@ -77,7 +77,7 @@ public class qtjava { qtKeyToJavaMap (tricky!). So it is useful to be able to force the early removal of an entry, when the C++ - instance has a known lifetime (eg a QEvent after its event handler has + instance has a known lifetime (eg a TQEvent after its event handler has returned). */ public static void removeObjectForQtKey(long qt) { @@ -88,7 +88,7 @@ public class qtjava { /** Allocates an instance of a class without initializing it */ private native static Object allocateInstance(Class cls) throws InstantiationException, IllegalAccessException; - /** If the C++ qt instance is an instance of QObject, then + /** If the C++ qt instance is an instance of TQObject, then use the Qt runtime meta-data to retrieve the class name. If there is a Java class with the same name, then return a Class object for that class. Otherwise, just return the @@ -115,7 +115,7 @@ public class qtjava { } if (QtSupport.class.isAssignableFrom(aClass)) { - if (QObject.class.isAssignableFrom(aClass)) { + if (TQObject.class.isAssignableFrom(aClass)) { aClass = qtjava.classFromQtMetaData(aClass, aClass.getName(), qt); } @@ -247,11 +247,11 @@ public class qtjava { /** Returns a new C++ JavaSlot proxy instance, to receive signals and invoke the target Java slot */ - private native static long newJavaSlot(QObject receiver, String member); + private native static long newJavaSlot(TQObject receiver, String member); /** Looks up a 'qt instance/slot name' key and returns the corresponding JavaSlot instance */ - public static long slotForReceiver(long qt, QObject receiver, String slot) { + public static long slotForReceiver(long qt, TQObject receiver, String slot) { String normalizedSlot = toNormalizedTypeSignature(slot); String key = (Long.toString(qt) + normalizedSlot).intern(); Long result = (Long) qtSlotDictionary.get(key); |