diff options
author | Ken Moore <ken@ixsystems.com> | 2019-04-03 15:21:17 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2019-04-03 15:21:17 -0400 |
commit | 8d5f1e04d7e4f24a4026804d62abe64883419bf2 (patch) | |
tree | e8de5a663e7c39db7979b61320a220bcbbdfa5ce /src-qt5/desktop-utils/lumina-pdf/drawablepage.h | |
parent | Update README.md (diff) | |
download | lumina-8d5f1e04d7e4f24a4026804d62abe64883419bf2.tar.gz lumina-8d5f1e04d7e4f24a4026804d62abe64883419bf2.tar.bz2 lumina-8d5f1e04d7e4f24a4026804d62abe64883419bf2.zip |
Remove lumina-calculator and lumina-pdf from the lumina repo.
They have their own repos now (https://github.com/lumina-desktop/lumina-[pdf/calculator])
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/drawablepage.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/drawablepage.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/drawablepage.h b/src-qt5/desktop-utils/lumina-pdf/drawablepage.h deleted file mode 100644 index ee3b76ec..00000000 --- a/src-qt5/desktop-utils/lumina-pdf/drawablepage.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef LUMINA_PDF_DRAWABLEPAGE_H -#define LUMINA_PDF_DRAWABLEPAGE_H - -#include <QImage> -#include <QSize> -#include <poppler/qt5/poppler-qt5.h> - -namespace LuminaPDF { - -class drawablePage { -public: - drawablePage() - : page(nullptr), DPI(0.0, 0.0), rotation(Poppler::Page::Rotate0) {} - drawablePage(Poppler::Page *_page, QSize _DPI, - Poppler::Page::Rotation _rotation) - : page(_page), DPI(_DPI), rotation(_rotation) {} - - drawablePage(const LuminaPDF::drawablePage &other) = delete; - LuminaPDF::drawablePage & - operator=(const LuminaPDF::drawablePage &other) = delete; - - drawablePage(LuminaPDF::drawablePage &&other) = default; - LuminaPDF::drawablePage &operator=(LuminaPDF::drawablePage &&other) = default; - ~drawablePage() = default; - - QImage render() { - return page->renderToImage(DPI.width(), DPI.height(), -1, -1, -1, -1, - rotation); - } - - QSize size() { return page->pageSize(); } - -private: - std::unique_ptr<Poppler::Page> page; - QSize DPI; - Poppler::Page::Rotation rotation; -}; - -} // namespace LuminaPDF - -#endif // LUMINA_PDF_DRAWABLEPAGE_H |