mirror of
https://github.com/fralx/LimeReport.git
synced 2025-01-25 23:51:03 +03:00
Selection border painting has been fixed
This commit is contained in:
parent
005e65f3e3
commit
f85b564808
@ -52,7 +52,7 @@ namespace LimeReport
|
|||||||
|
|
||||||
BaseDesignIntf::BaseDesignIntf(const QString &storageTypeName, QObject *owner, QGraphicsItem *parent) :
|
BaseDesignIntf::BaseDesignIntf(const QString &storageTypeName, QObject *owner, QGraphicsItem *parent) :
|
||||||
QObject(owner), QGraphicsItem(parent),
|
QObject(owner), QGraphicsItem(parent),
|
||||||
m_resizeHandleSize(Const::RESIZE_HANDLE_SIZE),
|
m_resizeHandleSize(Const::RESIZE_HANDLE_SIZE*2),
|
||||||
m_selectionPenSize(Const::SELECTION_PEN_SIZE),
|
m_selectionPenSize(Const::SELECTION_PEN_SIZE),
|
||||||
m_possibleResizeDirectionFlags(ResizeTop | ResizeBottom | ResizeLeft | ResizeRight),
|
m_possibleResizeDirectionFlags(ResizeTop | ResizeBottom | ResizeLeft | ResizeRight),
|
||||||
m_possibleMoveDirectionFlags(All),
|
m_possibleMoveDirectionFlags(All),
|
||||||
@ -1136,6 +1136,7 @@ void BaseDesignIntf::drawSelection(QPainter *painter, QRectF /*rect*/) const
|
|||||||
QPen pen(Qt::red,m_selectionPenSize);
|
QPen pen(Qt::red,m_selectionPenSize);
|
||||||
painter->setPen(pen);
|
painter->setPen(pen);
|
||||||
painter->setBrush(QBrush(Qt::red));
|
painter->setBrush(QBrush(Qt::red));
|
||||||
|
painter->setOpacity(1);
|
||||||
const int markerSize = Const::RESIZE_HANDLE_SIZE;
|
const int markerSize = Const::RESIZE_HANDLE_SIZE;
|
||||||
painter->drawRect(QRectF(-markerSize,-markerSize,markerSize*2,markerSize*2));
|
painter->drawRect(QRectF(-markerSize,-markerSize,markerSize*2,markerSize*2));
|
||||||
painter->drawRect(QRectF(rect().right()-markerSize,rect().bottom()-markerSize,markerSize*2,markerSize*2));
|
painter->drawRect(QRectF(rect().right()-markerSize,rect().bottom()-markerSize,markerSize*2,markerSize*2));
|
||||||
|
Loading…
Reference in New Issue
Block a user