mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Oscilloscope now has finer lines for seeing detail.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2774 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
66a9d53d0a
commit
e5c56e462e
@ -68,7 +68,8 @@ void ScopeGadget::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
uavField,
|
||||
scale,
|
||||
QPen( QBrush(QColor(color),Qt::SolidPattern),
|
||||
(qreal)2,
|
||||
// (qreal)2,
|
||||
(qreal)1,
|
||||
Qt::SolidLine,
|
||||
Qt::SquareCap,
|
||||
Qt::BevelJoin)
|
||||
|
@ -71,7 +71,6 @@ private:
|
||||
void setYAxisWidgetFromPlotCurve();
|
||||
void setButtonColor(const QColor &color);
|
||||
|
||||
|
||||
private slots:
|
||||
void on_lstCurves_currentRowChanged(int currentRow);
|
||||
void on_btnRemoveCurve_clicked();
|
||||
|
@ -114,13 +114,15 @@ void ScopeGadgetWidget::preparePlot(PlotType plotType)
|
||||
// Show a title
|
||||
setTitle("Scope");
|
||||
|
||||
setCanvasBackground(Utils::StyleHelper::baseColor());
|
||||
// setCanvasBackground(Utils::StyleHelper::baseColor());
|
||||
setCanvasBackground(QColor(48, 48, 48));
|
||||
|
||||
//Add grid lines
|
||||
QwtPlotGrid *grid = new QwtPlotGrid;
|
||||
grid->setMajPen(QPen(Qt::gray, 0, Qt::DashLine));
|
||||
grid->setMinPen(QPen(Qt::lightGray, 0 , Qt::DotLine));
|
||||
grid->attach(this);
|
||||
grid->setMajPen(QPen(Qt::gray, 0, Qt::DashLine));
|
||||
grid->setMinPen(QPen(Qt::lightGray, 0, Qt::DotLine));
|
||||
grid->setPen(QPen(Qt::darkGray, 1, Qt::DotLine));
|
||||
grid->attach(this);
|
||||
|
||||
// Show a legend at the bottom
|
||||
if (legend() == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user