1
0
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:
pip 2011-02-13 10:11:51 +00:00 committed by pip
parent 66a9d53d0a
commit e5c56e462e
3 changed files with 8 additions and 6 deletions

View File

@ -68,7 +68,8 @@ void ScopeGadget::loadConfiguration(IUAVGadgetConfiguration* config)
uavField, uavField,
scale, scale,
QPen( QBrush(QColor(color),Qt::SolidPattern), QPen( QBrush(QColor(color),Qt::SolidPattern),
(qreal)2, // (qreal)2,
(qreal)1,
Qt::SolidLine, Qt::SolidLine,
Qt::SquareCap, Qt::SquareCap,
Qt::BevelJoin) Qt::BevelJoin)

View File

@ -71,7 +71,6 @@ private:
void setYAxisWidgetFromPlotCurve(); void setYAxisWidgetFromPlotCurve();
void setButtonColor(const QColor &color); void setButtonColor(const QColor &color);
private slots: private slots:
void on_lstCurves_currentRowChanged(int currentRow); void on_lstCurves_currentRowChanged(int currentRow);
void on_btnRemoveCurve_clicked(); void on_btnRemoveCurve_clicked();

View File

@ -114,13 +114,15 @@ void ScopeGadgetWidget::preparePlot(PlotType plotType)
// Show a title // Show a title
setTitle("Scope"); setTitle("Scope");
setCanvasBackground(Utils::StyleHelper::baseColor()); // setCanvasBackground(Utils::StyleHelper::baseColor());
setCanvasBackground(QColor(48, 48, 48));
//Add grid lines //Add grid lines
QwtPlotGrid *grid = new QwtPlotGrid; QwtPlotGrid *grid = new QwtPlotGrid;
grid->setMajPen(QPen(Qt::gray, 0, Qt::DashLine)); grid->setMajPen(QPen(Qt::gray, 0, Qt::DashLine));
grid->setMinPen(QPen(Qt::lightGray, 0 , Qt::DotLine)); grid->setMinPen(QPen(Qt::lightGray, 0, Qt::DotLine));
grid->attach(this); grid->setPen(QPen(Qt::darkGray, 1, Qt::DotLine));
grid->attach(this);
// Show a legend at the bottom // Show a legend at the bottom
if (legend() == 0) { if (legend() == 0) {