From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- qtjava/javalib/org/kde/qt/Invocation.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'qtjava/javalib/org/kde/qt/Invocation.java') diff --git a/qtjava/javalib/org/kde/qt/Invocation.java b/qtjava/javalib/org/kde/qt/Invocation.java index 04a41949..7ae31bd3 100644 --- a/qtjava/javalib/org/kde/qt/Invocation.java +++ b/qtjava/javalib/org/kde/qt/Invocation.java @@ -70,7 +70,7 @@ public class Invocation { try { parameterTypes.add(Class.forName(token)); } catch (ClassNotFoundException e) { - Qt.qWarning("QObject.connect: No such argument type: " + token); + Qt.qWarning("TQObject.connect: No such argument type: " + token); return null; } } @@ -131,7 +131,7 @@ public class Invocation { targetClass = targetClass.getSuperclass(); } while (targetClass != null); - System.out.print("QObject.connect: No such slot " + methodName + "("); + System.out.print("TQObject.connect: No such slot " + methodName + "("); for (int index = 0; index < parameterTypes.length; index++) { System.out.print(parameterTypes[index].toString()); @@ -170,7 +170,7 @@ public class Invocation { /** Used for Java slot/signal targets, handles callbacks */ public Object invoke(Object[] args) throws IllegalAccessException, InvocationTargetException { if (signalName != null) { - // If the target is a signal, then there are two parameters needed for QObject.emit(). + // If the target is a signal, then there are two parameters needed for TQObject.emit(). // A signal name, followed by an array of arguments to be emitted. Object[] emitArgs = new Object[2]; emitArgs[0] = signalName; @@ -400,7 +400,7 @@ public class Invocation { Used for boolean callbacks such as KMainWindow::queryClose() */ public static boolean booleanInvoke(long target, String methodName) throws NoSuchMethodException, ClassNotFoundException { Method method; - Object onThis = qtjava.objectForQtKey(target, "QObject", false); + Object onThis = qtjava.objectForQtKey(target, "TQObject", false); try { method = onThis.getClass().getMethod(methodName, (Class[]) null); @@ -439,7 +439,7 @@ public class Invocation { Method method = null; Class[] parameterType = new Class[1]; parameterType[0] = Class.forName(qtjava.toFullyQualifiedClassName(argClass)); - Object onThis = qtjava.objectForQtKey(target, "org.kde.qt.QObject", false); + Object onThis = qtjava.objectForQtKey(target, "org.kde.qt.TQObject", false); Class targetClass = onThis.getClass(); @@ -495,8 +495,8 @@ public class Invocation { arguments[0] = qtjava.objectForQtKey(arg1, arg1class, false); arguments[1] = qtjava.objectForQtKey(arg2, arg2class, false); - Class[] parameterTypes = new Class[] { QObject.class, QEvent.class }; - Object onThis = qtjava.objectForQtKey(target, "QObject", false); + Class[] parameterTypes = new Class[] { TQObject.class, TQEvent.class }; + Object onThis = qtjava.objectForQtKey(target, "TQObject", false); try { method = onThis.getClass().getMethod(methodName, parameterTypes); -- cgit v1.2.3