mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
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:
parent
4920a6aeee
commit
846918e3aa
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user