Colour only the selected letters of text being edited; project format version 10 (12.14d1)
This commit is contained in:
1 parent
2fa8d9921d
commit
27a4fe8428
32 files changed
+1398
-82
No files matched your search
@@ -158,7 +158,7 @@ void LiveTextDoubleClickTests::theCaretWaitsAfterTheText()
|
||||
shown.session.cancelText();
|
||||
shown.session.editActiveText();
|
||||
shown.session.cancelText();
|
||||
TextDraft fresh{.documentID = shown.session.document().value().id, .layerID = std::nullopt, .origin = QPointF(20, 200), .style = style};
|
||||
TextDraft fresh{.documentID = shown.session.document().value().id, .layerID = std::nullopt, .origin = QPointF(20, 200), .style = style, .selection = TextSpan()};
|
||||
fresh.style.content = QStringLiteral("New");
|
||||
shown.session.setTextDraft(fresh);
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
Reference in new issue
Block a user