mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-12 02:54:15 +01:00
OP-1580 Fixed some visuals
This commit is contained in:
parent
da541b356b
commit
84332047d2
@ -64,10 +64,11 @@ ScopeGadgetWidget::ScopeGadgetWidget(QWidget *parent) : QwtPlot(parent),
|
|||||||
m_plotLegend(NULL)
|
m_plotLegend(NULL)
|
||||||
{
|
{
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
//plotLayout()->setCanvasMargin(20, QwtPlot::yRight);
|
|
||||||
QwtPlotCanvas * plotCanvas = dynamic_cast<QwtPlotCanvas *>(canvas());
|
QwtPlotCanvas * plotCanvas = dynamic_cast<QwtPlotCanvas *>(canvas());
|
||||||
if (plotCanvas) {
|
if (plotCanvas) {
|
||||||
plotCanvas->setFrameStyle(QFrame::NoFrame);
|
plotCanvas->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
|
||||||
|
plotCanvas->setBorderRadius(8);
|
||||||
}
|
}
|
||||||
|
|
||||||
axisWidget(QwtPlot::yLeft)->setMargin(2);
|
axisWidget(QwtPlot::yLeft)->setMargin(2);
|
||||||
@ -250,9 +251,7 @@ void ScopeGadgetWidget::preparePlot(PlotType plotType)
|
|||||||
|
|
||||||
// Add grid lines
|
// Add grid lines
|
||||||
QwtPlotGrid *grid = new QwtPlotGrid;
|
QwtPlotGrid *grid = new QwtPlotGrid;
|
||||||
grid->setMajorPen(QPen(Qt::gray, 0, Qt::DashLine));
|
grid->setPen(Qt::darkGray, 1, Qt::DotLine);
|
||||||
grid->setMinorPen(QPen(Qt::lightGray, 0, Qt::DotLine));
|
|
||||||
grid->setPen(QPen(Qt::darkGray, 1, Qt::DotLine));
|
|
||||||
grid->attach(this);
|
grid->attach(this);
|
||||||
|
|
||||||
// Only start the timer if we are already connected
|
// Only start the timer if we are already connected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user