diff options
author | Jason Uher <jason.uher@jhuapl.edu> | 2021-02-18 23:25:19 +0000 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-02-22 02:10:02 -0800 |
commit | cbc9344475873034096acd308d91cda994dfbfa9 (patch) | |
tree | 7e40d1bd7630807ee5d2e849cfa3eb21a58a9b0a | |
parent | 7d9c4159ff4481dfcbcdb07ca94426a94b0dafba (diff) |
re-clang
Signed-off-by: Jason Uher <jason.uher@jhuapl.edu>
-rw-r--r-- | gr-qtgui/lib/eyecontrolpanel.cc | 26 | ||||
-rw-r--r-- | gr-qtgui/lib/freqcontrolpanel.cc | 28 | ||||
-rw-r--r-- | gr-qtgui/lib/timecontrolpanel.cc | 27 |
3 files changed, 40 insertions, 41 deletions
diff --git a/gr-qtgui/lib/eyecontrolpanel.cc b/gr-qtgui/lib/eyecontrolpanel.cc index 7d2dea01df..db8c406e98 100644 --- a/gr-qtgui/lib/eyecontrolpanel.cc +++ b/gr-qtgui/lib/eyecontrolpanel.cc @@ -76,7 +76,8 @@ EyeControlPanel::EyeControlPanel(EyeDisplayForm* form) : QVBoxLayout(), d_parent d_extras_box = new QGroupBox("Extras"); d_extras_layout = new QVBoxLayout; d_autoscale_button = new QPushButton("Autoscale"); - d_stop_button = new QPushButton(QApplication::style()->standardIcon(QStyle::SP_MediaStop),"Stop"); + d_stop_button = new QPushButton( + QApplication::style()->standardIcon(QStyle::SP_MediaStop), "Stop"); d_stop_button->setCheckable(true); // Set up the boxes into the layout @@ -143,11 +144,10 @@ EyeControlPanel::EyeControlPanel(EyeDisplayForm* form) : QVBoxLayout(), d_parent d_autoscale_button, SIGNAL(pressed(void)), d_parent, SLOT(autoScaleShot(void))); // Handle the start/stop button - //Call the base class' stop function when they press the button + // Call the base class' stop function when they press the button connect(d_stop_button, SIGNAL(pressed(void)), d_parent, SLOT(setStop(void))); - //Updated the button state regardless of who changed it - connect( - d_stop_button, SIGNAL(toggled(bool)), this, SLOT(updateStopLabel(bool))); + // Updated the button state regardless of who changed it + connect(d_stop_button, SIGNAL(toggled(bool)), this, SLOT(updateStopLabel(bool))); connect( this, SIGNAL(signalToggleStopButton(void)), d_stop_button, SLOT(toggle(void))); } @@ -180,13 +180,13 @@ void EyeControlPanel::toggleTriggerSlope(gr::qtgui::trigger_slope slope) void EyeControlPanel::toggleStopButton() { emit signalToggleStopButton(); } -void EyeControlPanel::updateStopLabel(bool on) { - if( on) { - d_stop_button->setText("Start"); - d_stop_button->setIcon( QApplication::style()->standardIcon(QStyle::SP_MediaPlay) ); - } - else { - d_stop_button->setText("Stop"); - d_stop_button->setIcon( QApplication::style()->standardIcon(QStyle::SP_MediaStop) ); +void EyeControlPanel::updateStopLabel(bool on) +{ + if (on) { + d_stop_button->setText("Start"); + d_stop_button->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaPlay)); + } else { + d_stop_button->setText("Stop"); + d_stop_button->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaStop)); } } diff --git a/gr-qtgui/lib/freqcontrolpanel.cc b/gr-qtgui/lib/freqcontrolpanel.cc index acce91686f..a587288876 100644 --- a/gr-qtgui/lib/freqcontrolpanel.cc +++ b/gr-qtgui/lib/freqcontrolpanel.cc @@ -111,7 +111,8 @@ FreqControlPanel::FreqControlPanel(FreqDisplayForm* form) : QVBoxLayout(), d_par // Set up the box for other items d_extras_box = new QGroupBox("Extras"); d_extras_layout = new QVBoxLayout; - d_stop_button = new QPushButton(QApplication::style()->standardIcon(QStyle::SP_MediaStop),"Stop"); + d_stop_button = new QPushButton( + QApplication::style()->standardIcon(QStyle::SP_MediaStop), "Stop"); d_stop_button->setCheckable(true); // Set up the boxes into the layout @@ -189,12 +190,11 @@ FreqControlPanel::FreqControlPanel(FreqDisplayForm* form) : QVBoxLayout(), d_par SLOT(notifyTriggerLevelMinus())); // Handle the start/stop button - //Call the base class' stop function when they press the button + // Call the base class' stop function when they press the button connect(d_stop_button, SIGNAL(pressed(void)), d_parent, SLOT(setStop(void))); - //Updated the button state regardless of who changed it - connect( - d_stop_button, SIGNAL(toggled(bool)), this, SLOT(updateStopLabel(bool))); - //Update the button if someone else changes it + // Updated the button state regardless of who changed it + connect(d_stop_button, SIGNAL(toggled(bool)), this, SLOT(updateStopLabel(bool))); + // Update the button if someone else changes it connect( this, SIGNAL(signalToggleStopButton(void)), d_stop_button, SLOT(toggle(void))); } @@ -273,13 +273,13 @@ void FreqControlPanel::toggleTriggerMode(gr::qtgui::trigger_mode mode) void FreqControlPanel::toggleStopButton() { emit signalToggleStopButton(); } -void FreqControlPanel::updateStopLabel(bool on) { - if( on) { - d_stop_button->setText("Start"); - d_stop_button->setIcon( QApplication::style()->standardIcon(QStyle::SP_MediaPlay) ); - } - else { - d_stop_button->setText("Stop"); - d_stop_button->setIcon( QApplication::style()->standardIcon(QStyle::SP_MediaStop) ); +void FreqControlPanel::updateStopLabel(bool on) +{ + if (on) { + d_stop_button->setText("Start"); + d_stop_button->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaPlay)); + } else { + d_stop_button->setText("Stop"); + d_stop_button->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaStop)); } } diff --git a/gr-qtgui/lib/timecontrolpanel.cc b/gr-qtgui/lib/timecontrolpanel.cc index c72e638025..52c14eade4 100644 --- a/gr-qtgui/lib/timecontrolpanel.cc +++ b/gr-qtgui/lib/timecontrolpanel.cc @@ -88,7 +88,8 @@ TimeControlPanel::TimeControlPanel(TimeDisplayForm* form) : QVBoxLayout(), d_par d_extras_box = new QGroupBox("Extras"); d_extras_layout = new QVBoxLayout; d_autoscale_button = new QPushButton("Autoscale"); - d_stop_button = new QPushButton(QApplication::style()->standardIcon(QStyle::SP_MediaStop),"Stop"); + d_stop_button = new QPushButton( + QApplication::style()->standardIcon(QStyle::SP_MediaStop), "Stop"); d_stop_button->setCheckable(true); // Set up the boxes into the layout @@ -158,11 +159,10 @@ TimeControlPanel::TimeControlPanel(TimeDisplayForm* form) : QVBoxLayout(), d_par d_autoscale_button, SIGNAL(pressed(void)), d_parent, SLOT(autoScaleShot(void))); // Handle the start/stop button - //Call the base class' stop function when they press the button + // Call the base class' stop function when they press the button connect(d_stop_button, SIGNAL(pressed(void)), d_parent, SLOT(setStop(void))); - //Updated the button state regardless of who changed it - connect( - d_stop_button, SIGNAL(toggled(bool)), this, SLOT(updateStopLabel(bool))); + // Updated the button state regardless of who changed it + connect(d_stop_button, SIGNAL(toggled(bool)), this, SLOT(updateStopLabel(bool))); connect( this, SIGNAL(signalToggleStopButton(void)), d_stop_button, SLOT(toggle(void))); } @@ -195,14 +195,13 @@ void TimeControlPanel::toggleTriggerSlope(gr::qtgui::trigger_slope slope) void TimeControlPanel::toggleStopButton() { emit signalToggleStopButton(); } -void TimeControlPanel::updateStopLabel(bool on) { - if( on) { - d_stop_button->setText("Start"); - d_stop_button->setIcon( QApplication::style()->standardIcon(QStyle::SP_MediaPlay) ); - } - else { - d_stop_button->setText("Stop"); - d_stop_button->setIcon( QApplication::style()->standardIcon(QStyle::SP_MediaStop) ); +void TimeControlPanel::updateStopLabel(bool on) +{ + if (on) { + d_stop_button->setText("Start"); + d_stop_button->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaPlay)); + } else { + d_stop_button->setText("Stop"); + d_stop_button->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaStop)); } } - |