Clicked text on its baseline, live text on the Move tool's double click, SVG import (12.11c)
This commit is contained in:
1 parent
008493b0a3
commit
8fbb104c48
34 files changed
+572
-47
No files matched your search
@@ -58,3 +58,12 @@ inline ImportedImage coverage()
|
||||
image.scanLine(index / 2)[index % 2] = values[index];
|
||||
return LayerMask::assetFrom(image);
|
||||
}
|
||||
|
||||
// New text whose box starts at `corner`, unlike a click.
|
||||
inline void beginTextAt(EditorSession &session, QPointF corner)
|
||||
{
|
||||
session.beginText(corner, true);
|
||||
TextDraft draft = session.textDraft().value();
|
||||
draft.origin = corner;
|
||||
session.setTextDraft(draft);
|
||||
}
|
||||
Reference in new issue
Block a user