aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/changeset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/changeset.cpp')
-rw-r--r--src/libs/utils/changeset.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/utils/changeset.cpp b/src/libs/utils/changeset.cpp
index fa4e6696431..b5d3dc2f93a 100644
--- a/src/libs/utils/changeset.cpp
+++ b/src/libs/utils/changeset.cpp
@@ -318,6 +318,12 @@ void ChangeSet::apply(QTextCursor *textCursor)
m_cursor = nullptr;
}
+void ChangeSet::apply(QTextDocument *document)
+{
+ QTextCursor c(document);
+ apply(&c);
+}
+
QString ChangeSet::textAt(int pos, int length)
{
if (m_string) {