Extract the comic and page flow classes to their own files

This commit is contained in:
luisangelsm
2026-01-18 10:06:44 +01:00
parent 65fd07bb99
commit 816d5bfe9a
10 changed files with 582 additions and 543 deletions

View File

@ -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
}
}

View File

@ -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"