From 88fe28636e775ab9dfbb7caa769d63045dc4d7ca Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 18 Aug 2014 11:47:18 -0500 Subject: TankBar: make outline zero-width In some circumstances Qt will draw a really thick border around rectangles. This explicitly makes the border of the tank bar thin. Signed-off-by: Dirk Hohndel --- qt-ui/profile/tankitem.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/profile/tankitem.cpp b/qt-ui/profile/tankitem.cpp index 399306d2c..a5ec5050c 100644 --- a/qt-ui/profile/tankitem.cpp +++ b/qt-ui/profile/tankitem.cpp @@ -4,6 +4,7 @@ #include "profile.h" #include #include +#include TankItem::TankItem(QObject *parent) : QGraphicsRectItem(), @@ -50,6 +51,7 @@ void TankItem::createBar(qreal x, qreal w, struct gasmix *gas) rect->setBrush(trimix); else rect->setBrush(nitrox); + rect->setPen(QPen(QBrush(), 0.0)); // get rid of the thick line around the rectangle rects.push_back(rect); DiveTextItem *label = new DiveTextItem(rect); label->setText(gasname(gas)); -- cgit v1.2.3-70-g09d2