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
d4797bd9
Commit
d4797bd9
authored
Jun 09, 2009
by
mae
Browse files
show the visual column in the line-column-label (makes a difference
when using tabs). Column counting still starts with 1.
parent
e8b95f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
d4797bd9
...
...
@@ -4203,8 +4203,8 @@ void BaseTextEditorEditable::updateCursorPosition()
const
QTextCursor
cursor
=
e
->
textCursor
();
const
QTextBlock
block
=
cursor
.
block
();
const
int
line
=
block
.
blockNumber
()
+
1
;
const
int
column
=
cursor
.
position
()
-
block
.
position
()
+
1
;
m_cursorPositionLabel
->
setText
(
tr
(
"Line: %1, Col: %2"
).
arg
(
line
).
arg
(
column
),
const
int
column
=
cursor
.
position
()
-
block
.
position
();
m_cursorPositionLabel
->
setText
(
tr
(
"Line: %1, Col: %2"
).
arg
(
line
).
arg
(
e
->
tabSettings
().
columnAt
(
block
.
text
(),
column
)
+
1
),
tr
(
"Line: %1, Col: 999"
).
arg
(
e
->
blockCount
()));
m_contextHelpId
.
clear
();
...
...
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