summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/TimeRasterDisplayPlot.cc
diff options
context:
space:
mode:
authorBill Clark <saikou@vt.edu>2015-08-28 11:44:09 -0400
committerBill Clark <saikou@vt.edu>2015-08-28 11:44:09 -0400
commitfb470503a4a15f0d185abd282210543e5bb0825b (patch)
tree71bf109ded343c80335c14454f3af8bf3f268674 /gr-qtgui/lib/TimeRasterDisplayPlot.cc
parent22e2f1aed8afdfccce3884cf6bf3140c2b8e3f53 (diff)
qtgui: Modified the qproperties to scale the colorbar title from the .qss file
Diffstat (limited to 'gr-qtgui/lib/TimeRasterDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/TimeRasterDisplayPlot.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/gr-qtgui/lib/TimeRasterDisplayPlot.cc b/gr-qtgui/lib/TimeRasterDisplayPlot.cc
index 5cf736d389..e5e18b769f 100644
--- a/gr-qtgui/lib/TimeRasterDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeRasterDisplayPlot.cc
@@ -205,6 +205,7 @@ TimeRasterDisplayPlot::TimeRasterDisplayPlot(int nplots,
d_cols = cols;
d_rows = rows;
d_numPoints = d_cols;
+ d_color_bar_title_font_size = 18;
setAxisScaleDraw(QwtPlot::xBottom, new QwtXScaleDraw());
setAxisScaleDraw(QwtPlot::yLeft, new QwtYScaleDraw());
@@ -474,6 +475,18 @@ TimeRasterDisplayPlot::getIntensityColorMapType1() const
return getIntensityColorMapType(0);
}
+int
+TimeRasterDisplayPlot::getColorMapTitleFontSize() const
+{
+ return d_color_bar_title_font_size;
+}
+
+void
+TimeRasterDisplayPlot::setColorMapTitleFontSize(int tfs)
+{
+ d_color_bar_title_font_size = tfs;
+}
+
void
TimeRasterDisplayPlot::setIntensityColorMapType(const int which,
const int newType,
@@ -556,7 +569,9 @@ void
TimeRasterDisplayPlot::_updateIntensityRangeDisplay()
{
QwtScaleWidget *rightAxis = axisWidget(QwtPlot::yRight);
- rightAxis->setTitle("Intensity");
+ QwtText colorBarTitle("Intensity");
+ colorBarTitle.setFont(QFont("Arial",d_color_bar_title_font_size));
+ rightAxis->setTitle(colorBarTitle);
rightAxis->setColorBarEnabled(true);
for(int i = 0; i < d_nplots; i++) {