diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-18 11:47:18 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-18 11:47:18 -0500 |
commit | 88fe28636e775ab9dfbb7caa769d63045dc4d7ca (patch) | |
tree | 50d1e7a52b53ba3733093d6b715576a38f9eb45e /qt-ui/profile/tankitem.cpp | |
parent | b1cd536e1c5c810168aadf8b5535385a5b538dea (diff) | |
download | subsurface-88fe28636e775ab9dfbb7caa769d63045dc4d7ca.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/tankitem.cpp')
-rw-r--r-- | qt-ui/profile/tankitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <QGradient> #include <QDebug> +#include <QPen> 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)); |