Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
049f8d53
Commit
049f8d53
authored
Nov 26, 2009
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: process the edit-ops.
parent
62a15e04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+29
-0
No files found.
src/plugins/texteditor/basetexteditor.cpp
View file @
049f8d53
...
...
@@ -619,7 +619,36 @@ const Utils::ChangeSet &BaseTextEditor::changeSet() const
void
BaseTextEditor
::
setChangeSet
(
const
Utils
::
ChangeSet
&
changeSet
)
{
using
namespace
Utils
;
d
->
m_changeSet
=
changeSet
;
foreach
(
const
ChangeSet
::
EditOp
&
op
,
changeSet
.
operationList
())
{
// ### TODO: process the edit operation
switch
(
op
.
type
)
{
case
ChangeSet
::
EditOp
::
Replace
:
break
;
case
ChangeSet
::
EditOp
::
Move
:
break
;
case
ChangeSet
::
EditOp
::
Insert
:
break
;
case
ChangeSet
::
EditOp
::
Remove
:
break
;
case
ChangeSet
::
EditOp
::
Flip
:
break
;
case
ChangeSet
::
EditOp
::
Copy
:
break
;
default:
break
;
}
// switch
}
}
Core
::
IFile
*
BaseTextEditor
::
file
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment