/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
Q_OBJECT
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
-public :
- ColumnHandleItem(qreal width, QGraphicsItem *parent = nullptr);
+public:
+ ColumnHandleItem(qreal width, QGraphicsItem* parent = nullptr);
inline int type() const override { return ChatScene::ColumnHandleType; }
inline qreal width() const { return _width; }
void setXPos(qreal xpos);
void setXLimits(qreal min, qreal max);
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
+ void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
public slots:
- void sceneRectChanged(const QRectF &);
+ void sceneRectChanged(const QRectF&);
void setOpacity(qreal opacity);
protected:
- void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
- void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override;
- void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;
- void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
- void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
+ void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override;
+ void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override;
+ void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override;
+ void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
+ void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override;
signals:
void positionChanged(qreal x);
qreal _offset;
qreal _minXPos, _maxXPos;
qreal _opacity;
- QPropertyAnimation *_animation;
+ QPropertyAnimation* _animation;
};
-
#endif