|
|
@ -70,7 +70,7 @@ public class Invocation {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
parameterTypes.add(Class.forName(token));
|
|
|
|
parameterTypes.add(Class.forName(token));
|
|
|
|
} catch (ClassNotFoundException e) {
|
|
|
|
} catch (ClassNotFoundException e) {
|
|
|
|
Qt.tqWarning("TQObject.connect: No such argument type: " + token);
|
|
|
|
TQt.tqWarning("TQObject.connect: No such argument type: " + token);
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -184,11 +184,11 @@ public class Invocation {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Object result = method.invoke(onThis, arguments);
|
|
|
|
Object result = method.invoke(onThis, arguments);
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
Qt.tqWarning("Slot invocation failed");
|
|
|
|
TQt.tqWarning("Slot invocation failed");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
Qt.tqWarning("Slot invocation failed");
|
|
|
|
TQt.tqWarning("Slot invocation failed");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -385,11 +385,11 @@ public class Invocation {
|
|
|
|
Object result = method.invoke(onThis, (Class[]) null);
|
|
|
|
Object result = method.invoke(onThis, (Class[]) null);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
Qt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
TQt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
Qt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
TQt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -422,11 +422,11 @@ public class Invocation {
|
|
|
|
Object result = method.invoke(onThis, (Class[]) null);
|
|
|
|
Object result = method.invoke(onThis, (Class[]) null);
|
|
|
|
return ((Boolean) result).booleanValue();
|
|
|
|
return ((Boolean) result).booleanValue();
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
Qt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
TQt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
Qt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
TQt.tqWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -473,11 +473,11 @@ public class Invocation {
|
|
|
|
// The event will no longer be referenced, so force remove its java mapping entry.
|
|
|
|
// The event will no longer be referenced, so force remove its java mapping entry.
|
|
|
|
qtjava.removeObjectForQtKey(arg);
|
|
|
|
qtjava.removeObjectForQtKey(arg);
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
Qt.tqWarning("Event handler failed : " + onThis.getClass().getName() + "." + methodName + "(" + qtjava.toFullyQualifiedClassName(argClass) + " event)");
|
|
|
|
TQt.tqWarning("Event handler failed : " + onThis.getClass().getName() + "." + methodName + "(" + qtjava.toFullyQualifiedClassName(argClass) + " event)");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
Qt.tqWarning("Event handler failed : " + onThis.getClass().getName() + "." + methodName + "(" + qtjava.toFullyQualifiedClassName(argClass) + " event)");
|
|
|
|
TQt.tqWarning("Event handler failed : " + onThis.getClass().getName() + "." + methodName + "(" + qtjava.toFullyQualifiedClassName(argClass) + " event)");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -513,11 +513,11 @@ public class Invocation {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
result = (Boolean) method.invoke(onThis, arguments);
|
|
|
|
result = (Boolean) method.invoke(onThis, arguments);
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
Qt.tqWarning("Event filter failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
TQt.tqWarning("Event filter failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
Qt.tqWarning("Event filter failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
TQt.tqWarning("Event filter failed : " + onThis.getClass().getName() + "." + methodName + "()");
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|