OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3a90f
)
Enable line numbers selection in pro editor
author
Jarek Kobus
<jkobus@trolltech.com>
Tue, 25 May 2010 15:57:51 +0000
(17:57 +0200)
committer
Jarek Kobus
<jkobus@trolltech.com>
Tue, 25 May 2010 15:58:54 +0000
(17:58 +0200)
Make it possible to select multiple lines in pro editor by d'n'd over
the line numbers like in the cpp editor.
Reviewed-by: mae <qt-info@nokia.com>
src/plugins/texteditor/basetexteditor.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/texteditor/basetexteditor.cpp
b/src/plugins/texteditor/basetexteditor.cpp
index
2f43968
..
681653a
100644
(file)
--- a/
src/plugins/texteditor/basetexteditor.cpp
+++ b/
src/plugins/texteditor/basetexteditor.cpp
@@
-3497,7
+3497,7
@@
void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
toggleBlockVisible(c);
d->moveCursorVisible(false);
}
- } else if (d->m_
mark
sVisible && e->pos().x() > markWidth) {
+ } else if (d->m_
lineNumber
sVisible && e->pos().x() > markWidth) {
QTextCursor selection = cursor;
selection.setVisualNavigation(true);
d->extraAreaSelectionAnchorBlockNumber = selection.blockNumber();