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
Tobias Hunger
qt-creator
Commits
32f67652
Commit
32f67652
authored
Nov 26, 2009
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added getter/setters for the ChangeSet.
parent
854eecfc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+10
-0
src/plugins/texteditor/basetexteditor.h
src/plugins/texteditor/basetexteditor.h
+4
-0
src/plugins/texteditor/basetexteditor_p.h
src/plugins/texteditor/basetexteditor_p.h
+3
-0
No files found.
src/plugins/texteditor/basetexteditor.cpp
View file @
32f67652
...
...
@@ -612,6 +612,16 @@ bool BaseTextEditor::open(const QString &fileName)
return
false
;
}
const
Utils
::
ChangeSet
&
BaseTextEditor
::
changeSet
()
const
{
return
d
->
m_changeSet
;
}
void
BaseTextEditor
::
setChangeSet
(
const
Utils
::
ChangeSet
&
changeSet
)
{
d
->
m_changeSet
=
changeSet
;
}
Core
::
IFile
*
BaseTextEditor
::
file
()
{
return
d
->
m_document
;
...
...
src/plugins/texteditor/basetexteditor.h
View file @
32f67652
...
...
@@ -46,6 +46,7 @@ QT_END_NAMESPACE
namespace
Utils
{
class
LineColumnLabel
;
class
ChangeSet
;
}
namespace
TextEditor
{
...
...
@@ -290,6 +291,9 @@ public:
static
ITextEditor
*
openEditorAt
(
const
QString
&
fileName
,
int
line
,
int
column
=
0
,
const
QString
&
editorKind
=
QString
());
const
Utils
::
ChangeSet
&
changeSet
()
const
;
void
setChangeSet
(
const
Utils
::
ChangeSet
&
changeSet
);
// EditorInterface
Core
::
IFile
*
file
();
bool
createNew
(
const
QString
&
contents
);
...
...
src/plugins/texteditor/basetexteditor_p.h
View file @
32f67652
...
...
@@ -33,6 +33,7 @@
#include "basetexteditor.h"
#include "texteditoroverlay.h"
#include <texteditor/fontsettings.h>
#include <utils/changeset.h>
#include <QtCore/QBasicTimer>
#include <QtCore/QSharedData>
...
...
@@ -167,6 +168,8 @@ public:
bool
m_autoParenthesesEnabled
;
QTimer
*
m_updateTimer
;
Utils
::
ChangeSet
m_changeSet
;
// parentheses matcher
bool
m_formatRange
;
QTextCharFormat
m_matchFormat
;
...
...
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