mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 22:14:41 -04:00
Fixed YACReader compilation under Qt5 (YACReader-YACReaderLibrary communication is broken at runtime)
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
######################################################################
|
||||
|
||||
TEMPLATE = app
|
||||
TARGET =
|
||||
TARGET = YACReaderLibrary
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += .
|
||||
INCLUDEPATH += ../common \
|
||||
@ -143,12 +143,11 @@ TRANSLATIONS = yacreaderlibrary_es.ts \
|
||||
yacreaderlibrary_fr.ts \
|
||||
yacreaderlibrary_nl.ts \
|
||||
yacreaderlibrary_source.ts
|
||||
contains(QT_MINOR_VERSION, 5) {
|
||||
Release:DESTDIR = ../release5
|
||||
Debug:DESTDIR = ../debug5
|
||||
}
|
||||
!contains(QT_MINOR_VERSION, 5)
|
||||
{
|
||||
Release:DESTDIR = ../release
|
||||
Debug:DESTDIR = ../debug
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 5) {
|
||||
Release:DESTDIR = ../release5
|
||||
Debug:DESTDIR = ../debug5
|
||||
} else {
|
||||
Release:DESTDIR = ../release
|
||||
Debug:DESTDIR = ../debug
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ void Logger::msgHandler(const QtMsgType type, const char* message) {
|
||||
|
||||
Logger::~Logger() {
|
||||
if (defaultLogger==this) {
|
||||
#if QT_VERSION >= 0x050100
|
||||
#if QT_VERSION >= 0x050000
|
||||
qInstallMessageHandler(0);
|
||||
#else
|
||||
qInstallMsgHandler(0);
|
||||
@ -92,7 +92,7 @@ void Logger::write(const LogMessage* logMessage) {
|
||||
|
||||
void Logger::installMsgHandler() {
|
||||
defaultLogger=this;
|
||||
#if QT_VERSION >= 0x050100
|
||||
#if QT_VERSION >= 0x050000
|
||||
//qInstallMessageHandler(msgHandler); TODO Qt5
|
||||
#else
|
||||
qInstallMsgHandler(msgHandler);
|
||||
|
Reference in New Issue
Block a user