Fixing constellation zoomer's label.
authorTom Rondeau <trondeau@vt.edu>
Sun, 2 May 2010 00:04:13 +0000 (20:04 -0400)
committerTom Rondeau <trondeau@vt.edu>
Sun, 2 May 2010 00:04:13 +0000 (20:04 -0400)
gr-qtgui/src/lib/ConstellationDisplayPlot.cc
gr-qtgui/src/lib/FrequencyDisplayPlot.cc
gr-qtgui/src/lib/WaterfallDisplayPlot.cc

index 4e6d6da18eaa1c2f229bf59d2ebd92f1f5b3c59c..9d2cb385d073ae5f416fe54b51facc06bdd1bf05 100644 (file)
@@ -26,8 +26,8 @@ public:
 protected:
   virtual QwtText trackerText( const QwtDoublePoint& p ) const 
   {
-    QwtText t(QString("Sample %1, %2 V").arg(p.x(), 0, 'f', 0).arg(p.y(), 0, 'f', 4));
-
+    QwtText t(QString("(%1, %2)").arg(p.x(), 0, 'f', 4).
+             arg(p.y(), 0, 'f', 4));
     return t;
   }
 };
index 6f09bbc88a64f169487f2f96ae036f6e0dffee2a..af705fb9657058331347e2d0c187fcedaa6b08ba 100644 (file)
@@ -81,9 +81,9 @@ public:
 protected:
   virtual QwtText trackerText( const QwtDoublePoint& p ) const 
   {
-    QwtText t(QString("%1 %2, %3 dB").arg(p.x(), 0, 'f', 
-                                         GetFrequencyPrecision()).arg(_unitType.c_str()).arg(p.y(), 0, 'f', 2));
-
+    QwtText t(QString("%1 %2, %3 dB").
+             arg(p.x(), 0, 'f', GetFrequencyPrecision()).
+             arg(_unitType.c_str()).arg(p.y(), 0, 'f', 2));
     return t;
   }
 
index 3d173cfe37f7bb077a34293902c9fa673aa5bd52..f53d3181c2b50d34441cce94654df9ffc38b9d86 100644 (file)
@@ -160,7 +160,8 @@ private:
 
 };
 
-class WaterfallZoomer: public QwtPlotZoomer, public TimeScaleData, public FreqOffsetAndPrecisionClass
+class WaterfallZoomer: public QwtPlotZoomer, public TimeScaleData, 
+                      public FreqOffsetAndPrecisionClass
 {
 public:
   WaterfallZoomer(QwtPlotCanvas* canvas, const unsigned int freqPrecision)
@@ -197,9 +198,9 @@ protected:
                                  timeTm.tm_mday, timeTm.tm_hour, timeTm.tm_min,
                                  timeTm.tm_sec, lineTime.tv_nsec/1000000));
 
-    QwtText t(QString("%1 %2, %3").arg(p.x(), 0, 'f',
-                                      GetFrequencyPrecision()).arg(_unitType.c_str()).arg(yLabel));
-
+    QwtText t(QString("%1 %2, %3").
+             arg(p.x(), 0, 'f', GetFrequencyPrecision()).
+             arg(_unitType.c_str()).arg(yLabel));
     return t;
   }