fixed Qt5 compilation for YACReaderLibrary in Linux

fixed management of special chars in CompressedArchive paths (only with Qt5, TODO: fix the issue in Qt4)
This commit is contained in:
Luis Ángel San Martín
2014-01-29 13:56:02 -08:00
parent 2d111bd3e0
commit 25bca99d70
5 changed files with 19 additions and 4 deletions

View File

@ -34,8 +34,15 @@ CONFIG -= embed_manifest_exe
}
unix:!macx{
isEqual(QT_MAJOR_VERSION, 5) {
INCLUDEPATH += /usr/include/poppler/qt5
LIBS += -L/usr/lib -lpoppler-qt5
}
else {
INCLUDEPATH += /usr/include/poppler/qt4
LIBS += -L/usr/lib -lpoppler-qt4
}
LIBS += -lGLU
}
@ -97,7 +104,7 @@ HEADERS += comic_flow.h \
comics_remover.h \
../common/http_worker.h \
yacreader_libraries.h \
../common/exit_check.cpp \
../common/exit_check.h \
SOURCES += comic_flow.cpp \
create_library_dialog.cpp \

View File

@ -945,7 +945,7 @@ void LibraryWindow::loadCovers(const QModelIndex & mi)
comicView->setModel(dmCV);
comicView->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
#if QT_VERSION >= 0x050100
#if QT_VERSION >= 0x050000
comicView->horizontalHeader()->setSectionsMovable(true);
#else
comicView->horizontalHeader()->setMovable(true);