|
|
@ -855,6 +855,8 @@ QQmlListProperty_ *newListProperty(GoAddr *addr, intptr_t reflectIndex, intptr_t |
|
|
|
|
|
|
|
|
|
|
|
void internalLogHandler(QtMsgType severity, const QMessageLogContext &context, const QString &text) |
|
|
|
void internalLogHandler(QtMsgType severity, const QMessageLogContext &context, const QString &text) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (context.file == NULL) return; |
|
|
|
|
|
|
|
|
|
|
|
QByteArray textba = text.toUtf8(); |
|
|
|
QByteArray textba = text.toUtf8(); |
|
|
|
LogMessage message = {severity, textba.constData(), textba.size(), context.file, (int)strlen(context.file), context.line}; |
|
|
|
LogMessage message = {severity, textba.constData(), textba.size(), context.file, (int)strlen(context.file), context.line}; |
|
|
|
hookLogHandler(&message); |
|
|
|
hookLogHandler(&message); |
|
|
|