mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
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:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user