mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: turn protected into private members
Some profilewidget classes hat protected members which can be made private as there is no subclassing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fc697538fa
commit
ebb342c969
4 changed files with 8 additions and 14 deletions
|
@ -19,11 +19,11 @@ class CloseButtonItem : public DivePixmapItem {
|
|||
Q_OBJECT
|
||||
public:
|
||||
CloseButtonItem(QGraphicsItem *parent = 0);
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
|
||||
public slots:
|
||||
void hide();
|
||||
void show();
|
||||
private:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
|
||||
};
|
||||
|
||||
class DivePictureItem : public DivePixmapItem {
|
||||
|
@ -37,11 +37,10 @@ public slots:
|
|||
void settingsChanged();
|
||||
void removePicture();
|
||||
void setFileUrl(const QString& s);
|
||||
protected:
|
||||
private:
|
||||
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
|
||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
private:
|
||||
QString fileUrl;
|
||||
QGraphicsRectItem *canvas;
|
||||
QGraphicsRectItem *shadow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue