qet-mcp presets: include QPageSize outside the QtPdf guard

The preset code uses QPageSize and std::floor whether or not QtPdf was
found; it compiled only because other headers bring them in.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-02 23:28:58 +13:00
parent 0b4fc8beb0
commit 487b67136b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,9 +52,9 @@
#ifdef QET_HAS_QTPDF
#include <QPdfDocument>
#include <QPainter>
#endif
#include <QPageSize>
#include <cmath>
#endif
#include "../qetgraphicsitem/dynamicelementtextitem.h"
#include "../qetgraphicsitem/independenttextitem.h"
#include "../qetgraphicsitem/qetshapeitem.h"
+1 -1
View File
@@ -265,7 +265,7 @@ class QetGraphicsTableItem;
"height", are the frame and title block together in scene units --
what an export draws -- so a caller can check the result.
A folio's title block @b template is a seventh, separate case:
A folio's title block @b template is a separate case again:
Diagram::setTitleBlockTemplate() resolves a name only against
QETProject::embeddedTitleBlockTemplatesCollection() -- the same
copy-into-the-project step addElement() already does for elements,