diff options
| author | Christoph Berg <myon@debian.org> | 2020-11-16 21:55:31 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-11-16 21:55:31 +0100 |
| commit | 62b7139bfe06fb6555de9a62ee3e62ccfd6e6cf1 (patch) | |
| tree | 3d9e4579a69060d2767ec2e9153b0ec60f78cb54 /widgets/plotter.cpp | |
| parent | 8bf7a33f24073bbed51789cb9aaf36ef9126e543 (diff) | |
| parent | 77922fa33547ce24535f2e514c9a112dcb496f18 (diff) | |
Update upstream source from tag 'upstream/2.3.0_rc2+repack'
Update to upstream version '2.3.0~rc2+repack'
with Debian dir c40ed5d87e465612e7c15c7b67791946a5dcf64c
Diffstat (limited to 'widgets/plotter.cpp')
| -rw-r--r-- | widgets/plotter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/plotter.cpp b/widgets/plotter.cpp index d612b2eb..3b5ff22f 100644 --- a/widgets/plotter.cpp +++ b/widgets/plotter.cpp @@ -719,16 +719,17 @@ void CPlotter::mouseMoveEvent (QMouseEvent * event) void CPlotter::mouseReleaseEvent (QMouseEvent * event) { - if (Qt::LeftButton == event->button () and m_mode!="FST4W") { + if (Qt::LeftButton == event->button()) { int x=event->x(); if(x<0) x=0; if(x>m_Size.width()) x=m_Size.width(); bool ctrl = (event->modifiers() & Qt::ControlModifier); bool shift = (event->modifiers() & Qt::ShiftModifier); + if(!shift and m_mode=="FST4W") return; int newFreq = int(FreqfromX(x)+0.5); int oldTxFreq = m_txFreq; int oldRxFreq = m_rxFreq; - if (ctrl) { + if (ctrl and m_mode!="FST4W") { emit setFreq1 (newFreq, newFreq); } else if (shift) { emit setFreq1 (oldRxFreq, newFreq); |
