mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Exception refactoring
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define PDFRENDERER_H
|
||||
|
||||
#include "pdfpage.h"
|
||||
#include "pdfexception.h"
|
||||
|
||||
class QPainter;
|
||||
|
||||
@@ -26,26 +27,6 @@ namespace pdf
|
||||
{
|
||||
class PDFFontCache;
|
||||
|
||||
enum RenderErrorType
|
||||
{
|
||||
Error,
|
||||
NotImplemented
|
||||
};
|
||||
|
||||
struct PDFRenderError
|
||||
{
|
||||
explicit PDFRenderError() = default;
|
||||
explicit PDFRenderError(RenderErrorType type, QString message) :
|
||||
type(type),
|
||||
message(std::move(message))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
RenderErrorType type = RenderErrorType::Error;
|
||||
QString message;
|
||||
};
|
||||
|
||||
/// Renders the PDF page on the painter, or onto an image.
|
||||
class PDFRenderer
|
||||
{
|
||||
|
Reference in New Issue
Block a user