1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Enable border-less areas

This commit is contained in:
Martin Tůma 2019-02-16 09:57:47 +01:00
parent 54d0eea43e
commit d5367ccf34
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ void AreaItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
Q_UNUSED(option); Q_UNUSED(option);
Q_UNUSED(widget); Q_UNUSED(widget);
painter->setPen(_pen); painter->setPen(_width ? _pen : QPen(Qt::NoPen));
painter->drawPath(_painterPath); painter->drawPath(_painterPath);
painter->fillPath(_painterPath, _brush); painter->fillPath(_painterPath, _brush);

View File

@ -130,7 +130,7 @@ QWidget *OptionsDialog::createAppearancePage()
// Areas // Areas
_areaWidth = new QSpinBox(); _areaWidth = new QSpinBox();
_areaWidth->setValue(_options->areaWidth); _areaWidth->setValue(_options->areaWidth);
_areaWidth->setMinimum(1); //_areaWidth->setMinimum(1);
_areaStyle = new StyleComboBox(); _areaStyle = new StyleComboBox();
_areaStyle->setValue(_options->areaStyle); _areaStyle->setValue(_options->areaStyle);
_areaOpacity = new PercentSlider(); _areaOpacity = new PercentSlider();