aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/divetooltipitem.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-04-25 17:53:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-25 12:33:20 -0700
commit159dc15f99ce2235b194da627a3a4edaf2bb5ea8 (patch)
tree70d6a70de63d1fb2f6cbddbad003ade720ac5dd9 /profile-widget/divetooltipitem.h
parentbd6b714be102b272725d61f8675c2cff322479e7 (diff)
downloadsubsurface-159dc15f99ce2235b194da627a3a4edaf2bb5ea8.tar.gz
cleanup: make a few ToolTipItem member functions private
They were not used outside the class. Moreover, mark ToolTipItem::persistPos() as const. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divetooltipitem.h')
-rw-r--r--profile-widget/divetooltipitem.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/profile-widget/divetooltipitem.h b/profile-widget/divetooltipitem.h
index b9a3e4bff..9a1cdb8bf 100644
--- a/profile-widget/divetooltipitem.h
+++ b/profile-widget/divetooltipitem.h
@@ -20,7 +20,6 @@ class QGraphicsPixmapItem;
*/
class ToolTipItem : public QObject, public RoundRectItem {
Q_OBJECT
- void updateTitlePosition();
Q_PROPERTY(QRectF rect READ rect WRITE setRect)
public:
@@ -32,12 +31,7 @@ public:
explicit ToolTipItem(QGraphicsItem *parent = 0);
~ToolTipItem();
- void collapse();
- void expand();
- void clear();
void refresh(const dive *d, const QPointF &pos, bool inPlanner);
- bool isExpanded() const;
- void persistPos();
void readPos();
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
@@ -63,6 +57,12 @@ private:
QList<QGraphicsItem*> oldSelection;
void addToolTip(const QString &toolTip, const QPixmap &pixmap);
+ void collapse();
+ void expand();
+ void clear();
+ bool isExpanded() const;
+ void persistPos() const;
+ void updateTitlePosition();
};
#endif // DIVETOOLTIPITEM_H