mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove DivePixmapItem
After porting the picture-items to qt-quick, all that was left of DivePixmapItem was an empty hull. Remove it. The only problem was that the DiveEventItem is not derived from QObject anymore, so we have to explicitly add the translation functions with the Q_DECLARE_TR_FUNCTIONS macro. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ebf9ce6d86
commit
eb081f4564
6 changed files with 5 additions and 32 deletions
|
|
@ -18,7 +18,7 @@ static int depthAtTime(const plot_info &pi, duration_t time);
|
|||
|
||||
DiveEventItem::DiveEventItem(const struct dive *d, int idx, const struct event &ev, struct gasmix lastgasmix,
|
||||
const plot_info &pi, DiveCartesianAxis *hAxis, DiveCartesianAxis *vAxis,
|
||||
int speed, const DivePixmaps &pixmaps, QGraphicsItem *parent) : DivePixmapItem(parent),
|
||||
int speed, const DivePixmaps &pixmaps, QGraphicsItem *parent) : QGraphicsPixmapItem(parent),
|
||||
text(setupToolTipString(d, ev, lastgasmix)),
|
||||
pixmap(setupPixmap(d, ev, lastgasmix, pixmaps)),
|
||||
vAxis(vAxis),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue