1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-01 18:29:16 +01:00

OP-42 GCS/Scope: Made scope back ground color use the L&F helper

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1420 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
banigreyling 2010-08-26 19:54:23 +00:00 committed by banigreyling
parent e353e24796
commit c84746b701
2 changed files with 268 additions and 267 deletions

View File

@ -18,8 +18,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>591</width>
<height>261</height>
<width>601</width>
<height>341</height>
</rect>
</property>
<widget class="QWidget" name="horizontalLayoutWidget">
@ -27,8 +27,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>551</width>
<height>275</height>
<width>461</width>
<height>231</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
@ -90,7 +90,7 @@
<item row="3" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Data Timeout:</string>
<string>Update Interval:</string>
</property>
</widget>
</item>
@ -190,7 +190,7 @@
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>80</height>
</size>
</property>
</spacer>
@ -220,7 +220,7 @@
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>50</height>
<height>30</height>
</size>
</property>
</spacer>

View File

@ -29,6 +29,7 @@
#include "uavobjects/uavobjectmanager.h"
#include "extensionsystem/pluginmanager.h"
#include "scopegadgetwidget.h"
#include "utils/stylehelper.h"
#include "qwt/src/qwt_plot_curve.h"
#include "qwt/src/qwt_legend.h"
@ -68,7 +69,7 @@ void ScopeGadgetWidget::preparePlot(PlotType plotType)
// Show a title
setTitle("Scope");
setCanvasBackground(Qt::darkBlue);
setCanvasBackground(Utils::StyleHelper::baseColor());
//Add grid lines
QwtPlotGrid *grid = new QwtPlotGrid;
@ -346,9 +347,9 @@ void TestDataGen::genTestData()
testTime += (periodMs / 1000.0);
debugCounter++;
if (debugCounter % (100/periodMs) == 0 )
qDebug() << "Test Time = " << testTime;
// debugCounter++;
// if (debugCounter % (100/periodMs) == 0 )
// qDebug() << "Test Time = " << testTime;
}
TestDataGen::~TestDataGen()