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