Skip to content

Commit

Permalink
UDP source plugin GUI: added missing channel frequency display on the…
Browse files Browse the repository at this point in the history
… channel marker when the mouse is passed on the GUI
  • Loading branch information
f4exb committed Apr 3, 2016
1 parent b3c1368 commit aafff9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/channel/udpsrc/udpsrcgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,19 @@ void UDPSrcGUI::onMenuDoubleClicked()
bcsw->show();
}
}

void UDPSrcGUI::leaveEvent(QEvent*)
{
blockApplySettings(true);
m_channelMarker.setHighlighted(false);
blockApplySettings(false);
}

void UDPSrcGUI::enterEvent(QEvent*)
{
blockApplySettings(true);
m_channelMarker.setHighlighted(true);
blockApplySettings(false);
}


3 changes: 3 additions & 0 deletions plugins/channel/udpsrc/udpsrcgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ private slots:
void blockApplySettings(bool block);
void applySettings();
void applySettingsImmediate();

void leaveEvent(QEvent*);
void enterEvent(QEvent*);
};

#endif // INCLUDE_UDPSRCGUI_H

0 comments on commit aafff9b

Please sign in to comment.