git-svn-id: svn://db.shs.com.ru/libs@277 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-09-12 11:27:18 +00:00
parent df972aae0e
commit bf05cf7349

View File

@@ -141,8 +141,10 @@ QRectF _DTSizeItem::boundingRect() const {
bool _DTSizeItem::sceneEventFilter(QGraphicsItem * watched, QEvent * event) {
QGraphicsSceneMouseEvent * me = (QGraphicsSceneMouseEvent * )event;
if (watched == cur_item) {
if (event->type() == QEvent::Close)
if (event->type() == QEvent::Close) {
assignObject(0);
return true;
}
if (event->type() == QEvent::GraphicsSceneMouseDoubleClick) {
doubleClick();
return true;