Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0c03179f
Commit
0c03179f
authored
Apr 14, 2009
by
hjk
Browse files
fakevim: compile fix
parent
7f84a96e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
0c03179f
...
...
@@ -96,15 +96,16 @@ namespace Internal {
//
///////////////////////////////////////////////////////////////////////
#define StartOfLine QTextCursor::StartOfLine
#define EndOfLine QTextCursor::EndOfLine
#define MoveAnchor QTextCursor::MoveAnchor
#define KeepAnchor QTextCursor::KeepAnchor
#define Up QTextCursor::Up
#define Down QTextCursor::Down
#define Right QTextCursor::Right
#define Left QTextCursor::Left
#define EndOfDocument QTextCursor::End
#define StartOfLine QTextCursor::StartOfLine
#define EndOfLine QTextCursor::EndOfLine
#define MoveAnchor QTextCursor::MoveAnchor
#define KeepAnchor QTextCursor::KeepAnchor
#define Up QTextCursor::Up
#define Down QTextCursor::Down
#define Right QTextCursor::Right
#define Left QTextCursor::Left
#define EndOfDocument QTextCursor::End
#define StartOfDocument QTextCursor::Start
#define EDITOR(s) (m_textedit ? m_textedit->s : m_plaintextedit->s)
...
...
@@ -274,8 +275,6 @@ public:
void
moveToWordBoundary
(
bool
simple
,
bool
forward
);
// to reduce line noise
typedef
QTextCursor
::
MoveOperation
MoveOperation
;
typedef
QTextCursor
::
MoveMode
MoveMode
;
void
moveToEndOfDocument
()
{
m_tc
.
movePosition
(
EndOfDocument
,
MoveAnchor
);
}
void
moveToStartOfLine
()
{
m_tc
.
movePosition
(
StartOfLine
,
MoveAnchor
);
}
void
moveToEndOfLine
();
...
...
@@ -1969,7 +1968,7 @@ void FakeVimHandler::Private::highlightMatches(const QString &needle0)
if
(
!
needle0
.
isEmpty
())
{
QTextCursor
tc
=
m_tc
;
tc
.
movePosition
(
QTextCursor
::
Star
t
,
MoveAnchor
);
tc
.
movePosition
(
StartOfDocumen
t
,
MoveAnchor
);
QTextDocument
::
FindFlags
flags
=
QTextDocument
::
FindCaseSensitively
;
QString
needle
=
needle0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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