Web image support
This commit is contained in:
22 files changed
+370
-48
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#include "ImageProviderFactory.h"
|
||||
#include "EpubImageProvider.h"
|
||||
#include <QFileInfo>
|
||||
|
||||
IImageProvider *ImageProviderFactory::create(const QString &filePath)
|
||||
{
|
||||
const QString ext = QFileInfo(filePath).suffix().toLower();
|
||||
if (ext == QLatin1String("epub"))
|
||||
return new EpubImageProvider();
|
||||
return nullptr;
|
||||
}
|
||||
Reference in new issue
Block a user