mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Use Q_EMIT
This commit is contained in:
parent
6a9bb3df55
commit
ef32d05a01
1 changed files with 4 additions and 4 deletions
|
|
@ -918,9 +918,9 @@ CPlotter::wheelEvent(QWheelEvent * event)
|
|||
|
||||
if (auto const d = ((y > 0) - (y < 0)))
|
||||
{
|
||||
emit changeFreq(event->modifiers() & Qt::ControlModifier
|
||||
? freq() + d
|
||||
: freq() / 10 * 10 + d * 10);
|
||||
Q_EMIT changeFreq(event->modifiers() & Qt::ControlModifier
|
||||
? freq() + d
|
||||
: freq() / 10 * 10 + d * 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -945,7 +945,7 @@ CPlotter::mouseReleaseEvent(QMouseEvent * event)
|
|||
{
|
||||
if (Qt::LeftButton == event->button())
|
||||
{
|
||||
emit changeFreq(static_cast<int>(freqFromX(m_lastMouseX)));
|
||||
Q_EMIT changeFreq(static_cast<int>(freqFromX(m_lastMouseX)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue