diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-04 01:01:52 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-13 13:52:35 -0700 |
commit | 630862971fc314439dfa6d274474eb18e8f96711 (patch) | |
tree | 67eb3d7cbed81b4152a017a39f81d260f9cb02a9 /profile-widget/diveeventitem.h | |
parent | e811c7306d210af17a6571e61f23496ce91fa4bc (diff) | |
download | subsurface-630862971fc314439dfa6d274474eb18e8f96711.tar.gz |
Dive pictures: remove close-button optimization
One close-button object was used for all dive pictures. This seems
like a brittle premature optimization and the pixmap is shared
anyway. Make the button a subobject of the dive picture object.
Change the object-hierarchy to be based on QGraphicsItem instead
of QObject. The QObject here is only used as a kludge to support
signals and properties (the latter are necessary for animations).
Remove a comment, which does not seem to be relevant after this
change.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/diveeventitem.h')
-rw-r--r-- | profile-widget/diveeventitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/diveeventitem.h b/profile-widget/diveeventitem.h index f56a92898..867b89f31 100644 --- a/profile-widget/diveeventitem.h +++ b/profile-widget/diveeventitem.h @@ -11,7 +11,7 @@ struct event; class DiveEventItem : public DivePixmapItem { Q_OBJECT public: - DiveEventItem(QObject *parent = 0); + DiveEventItem(QGraphicsItem *parent = 0); virtual ~DiveEventItem(); void setEvent(struct event *ev, struct gasmix *lastgasmix); struct event *getEvent(); |