mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-09 23:39:58 +01:00
Backport fix made in commit 5073, 5077, 5079 in branch 0.6
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.60@5085 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -35,7 +35,7 @@ QRectF QetGraphicsHandlerItem::boundingRect() const
|
||||
{
|
||||
qreal rect_size = m_size * m_previous_zoom_factor;
|
||||
QRectF rect(0-rect_size/2, 0-rect_size/2, rect_size, rect_size);
|
||||
rect.adjust(-2, -2, 2, 2);
|
||||
rect.adjust(-0.1, -0.1, 0.1, 0.1);
|
||||
return rect;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
class QetGraphicsHandlerItem : public QGraphicsItem
|
||||
{
|
||||
public:
|
||||
QetGraphicsHandlerItem(qreal size = 15);
|
||||
QetGraphicsHandlerItem(qreal size = 10);
|
||||
virtual QRectF boundingRect() const;
|
||||
|
||||
enum { Type = UserType + 1200};
|
||||
@@ -47,7 +47,7 @@ class QetGraphicsHandlerItem : public QGraphicsItem
|
||||
QColor m_color;
|
||||
|
||||
public:
|
||||
static QVector<QetGraphicsHandlerItem *> handlerForPoint(const QVector<QPointF> &points, int size = 15);
|
||||
static QVector<QetGraphicsHandlerItem *> handlerForPoint(const QVector<QPointF> &points, int size = 10);
|
||||
};
|
||||
|
||||
#endif // QETGRAPHICSHANDLERITEM_H
|
||||
|
||||
Reference in New Issue
Block a user