Commit 03fd7266 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

BinEditor: Allow selection using Shift+LeftClick



Change-Id: If992e62d1f7c1cf9ae3059f9833d24dfa868f762
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 408c6daa
...@@ -973,7 +973,8 @@ void BinEditor::mousePressEvent(QMouseEvent *e) ...@@ -973,7 +973,8 @@ void BinEditor::mousePressEvent(QMouseEvent *e)
{ {
if (e->button() != Qt::LeftButton) if (e->button() != Qt::LeftButton)
return; return;
setCursorPosition(posAt(e->pos())); MoveMode moveMode = e->modifiers() & Qt::ShiftModifier ? KeepAnchor : MoveAnchor;
setCursorPosition(posAt(e->pos()), moveMode);
setBlinkingCursorEnabled(true); setBlinkingCursorEnabled(true);
if (m_hexCursor == inTextArea(e->pos())) { if (m_hexCursor == inTextArea(e->pos())) {
m_hexCursor = !m_hexCursor; m_hexCursor = !m_hexCursor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment