Minor code refactoring

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5417 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-06-29 07:55:48 +00:00
parent a6e7004a0e
commit 3ff5b00953
3 changed files with 15 additions and 21 deletions

View File

@@ -19,6 +19,7 @@
#define QETGRAPHICSHANDLERITEM_H
#include <QGraphicsItem>
#include <QPen>
/**
* @brief The QetGraphicsHandlerItem class
@@ -42,9 +43,11 @@ class QetGraphicsHandlerItem : public QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
private:
qreal m_size,
m_previous_zoom_factor = 1;
QRectF m_handler_rect,
m_br;
qreal m_size;
QColor m_color;
QPen m_pen;
public:
static QVector<QetGraphicsHandlerItem *> handlerForPoint(const QVector<QPointF> &points, int size = 10);