mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Extract the comic and page flow classes to their own files
This commit is contained in:
@ -110,6 +110,8 @@ HEADERS += ../common/comic.h \
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||
HEADERS += ../common/rhi/yacreader_flow_rhi.h
|
||||
HEADERS += ../common/rhi/yacreader_comic_flow_rhi.h \
|
||||
../common/rhi/yacreader_page_flow_rhi.h
|
||||
}
|
||||
}
|
||||
|
||||
@ -153,6 +155,8 @@ SOURCES += ../common/comic.cpp \
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||
SOURCES += ../common/rhi/yacreader_flow_rhi.cpp
|
||||
SOURCES += ../common/rhi/yacreader_comic_flow_rhi.cpp \
|
||||
../common/rhi/yacreader_page_flow_rhi.cpp
|
||||
RESOURCES += ../common/rhi/shaders/shaders.qrc
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
// Conditional include based on Qt version and RHI availability
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) && defined(YACREADER_USE_RHI)
|
||||
#include "yacreader_flow_rhi.h"
|
||||
#include "yacreader_page_flow_rhi.h"
|
||||
using YACReaderPageFlowImpl = YACReaderPageFlow3D;
|
||||
#else
|
||||
#include "yacreader_flow_gl.h"
|
||||
|
||||
Reference in New Issue
Block a user