Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d55d570d
Commit
d55d570d
authored
Jan 16, 2009
by
hjk
Browse files
fakevim: compile fix for windows
parent
1325da63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
d55d570d
...
...
@@ -219,20 +219,13 @@ private:
// to reduce line noise
typedef
QTextCursor
::
MoveOperation
MoveOperation
;
typedef
QTextCursor
::
MoveMode
MoveMode
;
void
moveToEndOfDocument
()
{
m_tc
.
movePosition
(
QTextCursor
::
End
,
QTextCursor
::
MoveAnchor
);
}
void
moveToStartOfLine
()
{
m_tc
.
movePosition
(
QTextCursor
::
StartOfLine
,
QTextCursor
::
MoveAnchor
);
}
void
moveToEndOfLine
()
{
m_tc
.
movePosition
(
QTextCursor
::
EndOfLine
,
QTextCursor
::
MoveAnchor
);
}
void
moveUp
(
int
n
=
1
)
{
m_tc
.
movePosition
(
QTextCursor
::
Up
,
QTextCursor
::
MoveAnchor
,
n
);
}
void
moveDown
(
int
n
=
1
)
{
m_tc
.
movePosition
(
QTextCursor
::
Down
,
QTextCursor
::
MoveAnchor
,
n
);
}
void
moveRight
(
int
n
=
1
)
{
m_tc
.
movePosition
(
QTextCursor
::
Right
,
QTextCursor
::
MoveAnchor
,
n
);
}
void
moveLeft
(
int
n
=
1
)
{
m_tc
.
movePosition
(
QTextCursor
::
Left
,
QTextCursor
::
MoveAnchor
,
n
);
}
void
moveToEndOfDocument
()
{
m_tc
.
movePosition
(
EndOfDocument
,
MoveAnchor
);
}
void
moveToStartOfLine
()
{
m_tc
.
movePosition
(
StartOfLine
,
MoveAnchor
);
}
void
moveToEndOfLine
()
{
m_tc
.
movePosition
(
EndOfLine
,
MoveAnchor
);
}
void
moveUp
(
int
n
=
1
)
{
m_tc
.
movePosition
(
Up
,
MoveAnchor
,
n
);
}
void
moveDown
(
int
n
=
1
)
{
m_tc
.
movePosition
(
Down
,
MoveAnchor
,
n
);
}
void
moveRight
(
int
n
=
1
)
{
m_tc
.
movePosition
(
Right
,
MoveAnchor
,
n
);
}
void
moveLeft
(
int
n
=
1
)
{
m_tc
.
movePosition
(
Left
,
MoveAnchor
,
n
);
}
void
setAnchor
()
{
m_anchor
=
m_tc
.
position
();
}
QString
selectedText
()
const
;
...
...
Write
Preview
Supports
Markdown
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