commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/01: qtgui: forces min/max sliders for qt


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: qtgui: forces min/max sliders for qt_sink waterfall plots to be horizontal.
Date: Tue, 11 Feb 2014 21:11:14 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 69323c1dd31941174ea6a33f0027955807cd89bb
Author: Tom Rondeau <address@hidden>
Date:   Tue Feb 11 14:43:26 2014 -0500

    qtgui: forces min/max sliders for qt_sink waterfall plots to be horizontal.
---
 gr-qtgui/lib/spectrumdisplayform.cc | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gr-qtgui/lib/spectrumdisplayform.cc 
b/gr-qtgui/lib/spectrumdisplayform.cc
index aeda7d0..0b5f630 100644
--- a/gr-qtgui/lib/spectrumdisplayform.cc
+++ b/gr-qtgui/lib/spectrumdisplayform.cc
@@ -49,7 +49,7 @@ SpectrumDisplayForm::SpectrumDisplayForm(QWidget* parent)
   AvgLineEdit->setRange(0, 500);                 // Set range of Average box 
value from 0 to 500
   minHoldCheckBox_toggled( false );
   maxHoldCheckBox_toggled( false );
-  
+
 #if QWT_VERSION < 0x060100
   WaterfallMaximumIntensitySlider->setRange(-200, 0);
   WaterfallMinimumIntensitySlider->setRange(-200, 0);
@@ -59,7 +59,10 @@ SpectrumDisplayForm::SpectrumDisplayForm(QWidget* parent)
   WaterfallMinimumIntensitySlider->setScale(-200, 0);
   WaterfallMinimumIntensitySlider->setValue(-200);
 #endif /* QWT_VERSION < 0x060100 */
-  
+
+  WaterfallMaximumIntensitySlider->setOrientation(Qt::Horizontal);
+  WaterfallMinimumIntensitySlider->setOrientation(Qt::Horizontal);
+
   _peakFrequency = 0;
   _peakAmplitude = -HUGE_VAL;
 
@@ -169,12 +172,12 @@ static void fftshift_and_sum(double *outFFT, const float 
*inFFT,
       peak_ampl = *outptr;
     }
     sum_mean += *outptr;
-    
+
     inptr++;
     outptr++;
   }
-  
-  // This loop takes the first half of the input data and puts it in the 
+
+  // This loop takes the first half of the input data and puts it in the
   // second half of the plotted data
   inptr = inFFT;
   for(uint64_t point = 0; point < num_points/2; point++) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]