fix ports specific bugs

This commit is contained in:
Geoffray Levasseur committed 2026-11-04 17:11:16 +01:00
1 parent c30531e032
commit 80c329a697
3 files changed
+44 -6

No files matched your search

+4 -2
View File
@@ -29,6 +29,7 @@
#pragma once
#include "Dpi/DpiForms.h"
#include "Dpi/DpiGraphics.h"
#include <QPoint>
#include <QString>
@@ -83,8 +84,9 @@ protected:
void paintEvent(QPaintEvent *event) override;
// Pass preview=true to just measure how many lines the text needs
// (fills `lines`) without drawing anything.
void splitText(bool preview);
// (fills `lines`) without drawing anything. Otherwise the text is drawn
// on `target`.
void splitText(bool preview, Dpi::Canvas *target = nullptr);
void correctHeight();
};