mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-10 16:19:59 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user