git-svn-id: svn://db.shs.com.ru/libs@277 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -141,8 +141,10 @@ QRectF _DTSizeItem::boundingRect() const {
|
|||||||
bool _DTSizeItem::sceneEventFilter(QGraphicsItem * watched, QEvent * event) {
|
bool _DTSizeItem::sceneEventFilter(QGraphicsItem * watched, QEvent * event) {
|
||||||
QGraphicsSceneMouseEvent * me = (QGraphicsSceneMouseEvent * )event;
|
QGraphicsSceneMouseEvent * me = (QGraphicsSceneMouseEvent * )event;
|
||||||
if (watched == cur_item) {
|
if (watched == cur_item) {
|
||||||
if (event->type() == QEvent::Close)
|
if (event->type() == QEvent::Close) {
|
||||||
assignObject(0);
|
assignObject(0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (event->type() == QEvent::GraphicsSceneMouseDoubleClick) {
|
if (event->type() == QEvent::GraphicsSceneMouseDoubleClick) {
|
||||||
doubleClick();
|
doubleClick();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user