old render cleanup part 2
This commit is contained in:
40 files changed
+329
-3643
No files matched your search
@@ -13,18 +13,13 @@
|
||||
#include "backend/AppState.h"
|
||||
#include "backend/formats/FileIconProvider.h"
|
||||
#include "backend/formats/FormatRegistry.h"
|
||||
#include "backend/formats/WebImageProvider.h"
|
||||
#include "backend/formats/sources/DirByteSource.h"
|
||||
#include "backend/formats/sources/Fb2ByteSource.h"
|
||||
#include "backend/formats/sources/RarByteSource.h"
|
||||
#include "backend/formats/sources/ZipByteSource.h"
|
||||
#include "backend/HistoryModel.h"
|
||||
#include "backend/ReadingModel.h"
|
||||
#include "backend/NativeFileDialogService.h"
|
||||
#include "backend/book/Book.h"
|
||||
#include "backend/formats/TxtReader.h"
|
||||
#include "backend/formats/EpubReader.h"
|
||||
#include "backend/formats/Fb2Reader.h"
|
||||
#include "backend/formats/comic/CbzReader.h"
|
||||
#include "backend/formats/comic/CbrReader.h"
|
||||
#include "backend/formats/comic/FolderReader.h"
|
||||
@@ -107,14 +102,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
// The format table: one row declares everything a format needs.
|
||||
FormatRegistry formatRegistry({
|
||||
{QStringLiteral("txt"), false, {},
|
||||
[] { return std::make_unique<TxtReader>(); }, nullptr},
|
||||
{QStringLiteral("epub"), false, QStringLiteral("epub"),
|
||||
[] { return std::make_unique<EpubReader>(); },
|
||||
[] { return std::make_unique<ZipByteSource>(); }},
|
||||
{QStringLiteral("fb2"), false, QStringLiteral("fb2"),
|
||||
[] { return std::make_unique<Fb2Reader>(); },
|
||||
[] { return std::make_unique<Fb2ByteSource>(); }},
|
||||
{QStringLiteral("cbz"), false, QStringLiteral("cbz"),
|
||||
[] { return std::make_unique<CbzReader>(); },
|
||||
[] { return std::make_unique<ZipByteSource>(); }},
|
||||
@@ -159,7 +146,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
// --- QML engine ---
|
||||
QQmlApplicationEngine engine;
|
||||
engine.addImageProvider(QStringLiteral("web"), new WebImageProvider());
|
||||
engine.addImageProvider(QStringLiteral("fileicon"), new FileIconProvider());
|
||||
formatRegistry.registerImageProviders(engine);
|
||||
engine.rootContext()->setContextProperty(QStringLiteral("isDebugBuild"),
|
||||
|
||||
Reference in new issue
Block a user