mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Format code using clang-format
This commit is contained in:
@ -9,40 +9,40 @@
|
||||
#if defined Q_OS_MAC && defined USE_PDFKIT
|
||||
class MacOSXPDFComic
|
||||
{
|
||||
public:
|
||||
MacOSXPDFComic();
|
||||
~MacOSXPDFComic();
|
||||
bool openComic(const QString & path);
|
||||
void closeComic();
|
||||
unsigned int numPages();
|
||||
QImage getPage(const int page);
|
||||
//void releaseLastPageData();
|
||||
public:
|
||||
MacOSXPDFComic();
|
||||
~MacOSXPDFComic();
|
||||
bool openComic(const QString &path);
|
||||
void closeComic();
|
||||
unsigned int numPages();
|
||||
QImage getPage(const int page);
|
||||
//void releaseLastPageData();
|
||||
|
||||
private:
|
||||
void * document;
|
||||
void * lastPageData;
|
||||
};
|
||||
private:
|
||||
void *document;
|
||||
void *lastPageData;
|
||||
};
|
||||
|
||||
#elif defined USE_PDFIUM
|
||||
#include <fpdfview.h>
|
||||
|
||||
class PdfiumComic
|
||||
{
|
||||
public:
|
||||
PdfiumComic();
|
||||
~PdfiumComic();
|
||||
bool openComic(const QString & path);
|
||||
void closeComic();
|
||||
unsigned int numPages();
|
||||
QImage getPage(const int page);
|
||||
public:
|
||||
PdfiumComic();
|
||||
~PdfiumComic();
|
||||
bool openComic(const QString &path);
|
||||
void closeComic();
|
||||
unsigned int numPages();
|
||||
QImage getPage(const int page);
|
||||
|
||||
private:
|
||||
static int refcount;
|
||||
static QMutex pdfmutex;
|
||||
FPDF_LIBRARY_CONFIG config;
|
||||
FPDF_DOCUMENT doc;
|
||||
FPDF_FILEACCESS fileAccess;
|
||||
QFile pdfFile;
|
||||
private:
|
||||
static int refcount;
|
||||
static QMutex pdfmutex;
|
||||
FPDF_LIBRARY_CONFIG config;
|
||||
FPDF_DOCUMENT doc;
|
||||
FPDF_FILEACCESS fileAccess;
|
||||
QFile pdfFile;
|
||||
};
|
||||
#else
|
||||
#include "poppler-qt5.h"
|
||||
|
Reference in New Issue
Block a user