forked from qt-creator/qt-creator
Do update the bounging rect for a empty item list too
This commit is contained in:
@@ -123,8 +123,7 @@ void SelectionTool::mouseMoveEvent(const QList<QGraphicsItem*> &/*itemList*/,
|
||||
void SelectionTool::hoverMoveEvent(const QList<QGraphicsItem*> &itemList,
|
||||
QGraphicsSceneMouseEvent * /*event*/)
|
||||
{
|
||||
if (itemList.isEmpty())
|
||||
return;
|
||||
if (!itemList.isEmpty()) {
|
||||
|
||||
ResizeHandleItem* resizeHandle = ResizeHandleItem::fromGraphicsItem(itemList.first());
|
||||
if (resizeHandle) {
|
||||
@@ -134,7 +133,7 @@ void SelectionTool::hoverMoveEvent(const QList<QGraphicsItem*> &itemList,
|
||||
|
||||
if (topSelectedItemIsMovable(itemList))
|
||||
view()->changeToMoveTool();
|
||||
|
||||
}
|
||||
|
||||
FormEditorItem *topSelectableItem = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user