diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-07-20 08:17:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-07-20 09:27:35 -0700 |
commit | 9f277e65ffd8c6859f0f7d095289159b7007a061 (patch) | |
tree | 38fb569c29b0c70619d7a75a2b5d0493f1649eaf /profile-widget/divetooltipitem.h | |
parent | 82f967ddb37022a69be2de3f38ac445093c0d6df (diff) | |
download | subsurface-9f277e65ffd8c6859f0f7d095289159b7007a061.tar.gz |
cleanup: remove function static variables
There were two function-static variables in ToolTipItem::refresh(),
which is a very scary proposition. Curently, there is only
one ToolTipItem, but this may change on mobile, where there
are multiple profiles at the same time.
Remove this timebomb and make the two objects subobjects.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divetooltipitem.h')
-rw-r--r-- | profile-widget/divetooltipitem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/profile-widget/divetooltipitem.h b/profile-widget/divetooltipitem.h index 9a1cdb8bf..ff6218c47 100644 --- a/profile-widget/divetooltipitem.h +++ b/profile-widget/divetooltipitem.h @@ -7,6 +7,7 @@ #include <QRectF> #include <QIcon> #include <QElapsedTimer> +#include <QPainter> #include "backend-shared/roundrectitem.h" #include "core/display.h" @@ -48,6 +49,8 @@ private: ToolTip entryToolTip; QGraphicsSimpleTextItem *title; Status status; + QPixmap tissues; + QPainter painter; QRectF rectangle; QRectF nextRectangle; DiveCartesianAxis *timeAxis; |