Split mouseTripleClickEvent method into selectLine()

Use a helper method selectLine() which is most of the
mouseTripleClickEvent().  Also, in preparation for upcoming patch to
allow selectLine per shortcut.

CCBUG: 327395
wilder-portage
Kurt Hindenburg 12 years ago
parent 2b31d26151
commit c5beb59032
  1. 7
      src/TerminalDisplay.cpp
  2. 1
      src/TerminalDisplay.h

@ -2615,7 +2615,12 @@ void TerminalDisplay::mouseTripleClickEvent(QMouseEvent* ev)
int charLine;
int charColumn;
getCharacterPosition(ev->pos(), charLine, charColumn);
_iPntSel = QPoint(charColumn, charLine);
selectLine(QPoint(charColumn, charLine));
}
void TerminalDisplay::selectLine(QPoint pos)
{
_iPntSel = pos;
_screenWindow->clearSelection();

@ -658,6 +658,7 @@ protected:
void clearImage();
void mouseTripleClickEvent(QMouseEvent* event);
void selectLine(QPoint pos);
// reimplemented
virtual void inputMethodEvent(QInputMethodEvent* event);

Loading…
Cancel
Save