Remove normal mouse double-click action for decode display windows

The normal  action selects the word  under the mouse pointer  and this
disrupts   callsign  highlighting.    Normal  single-click   selection
behaviour is unchanged  so text can still be selected  using the mouse
and copied if desired.
This commit is contained in:
Bill Somerville 2019-02-02 20:38:56 +00:00
parent 4920a6aeee
commit 846918e3aa
2 changed files with 2 additions and 4 deletions

View File

@ -82,7 +82,6 @@ void DisplayText::setContentFont(QFont const& font)
void DisplayText::mouseDoubleClickEvent(QMouseEvent *e)
{
Q_EMIT selectCallsign(e->modifiers ());
QTextEdit::mouseDoubleClickEvent(e);
}
void DisplayText::insertLineSpacer(QString const& line)

View File

@ -44,10 +44,9 @@ public:
Q_SLOT void erase ();
Q_SLOT void highlight_callsign (QString const& callsign, QColor const& bg, QColor const& fg, bool last_only);
protected:
void mouseDoubleClickEvent(QMouseEvent *e);
private:
void mouseDoubleClickEvent (QMouseEvent *) override;
void extend_vertical_scrollbar (int min, int max);
Configuration const * m_config;