|
|
@ -419,12 +419,12 @@ enum TQtMsgType {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SIP_PYCALLABLE tqInstallMsgHandler(SIP_PYCALLABLE /AllowNone/);
|
|
|
|
SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/);
|
|
|
|
%MethodCode
|
|
|
|
%MethodCode
|
|
|
|
void (*old)(TQtMsgType, const char *);
|
|
|
|
void (*old)(TQtMsgType, const char *);
|
|
|
|
|
|
|
|
|
|
|
|
// Treat None as the default handler.
|
|
|
|
// Treat None as the default handler.
|
|
|
|
old = tqInstallMsgHandler((a0 != Py_None) ? pytqtMsgHandler : 0);
|
|
|
|
old = qInstallMsgHandler((a0 != Py_None) ? pytqtMsgHandler : 0);
|
|
|
|
|
|
|
|
|
|
|
|
// If we recognise the old handler, then return it. Otherwise return
|
|
|
|
// If we recognise the old handler, then return it. Otherwise return
|
|
|
|
// the default handler. This doesn't exactly mimic the TQt behaviour
|
|
|
|
// the default handler. This doesn't exactly mimic the TQt behaviour
|
|
|
|