Commit 5f7969d0 authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

QML Observer: Go into context dbl click only if using selection tool

parent f464de1c
......@@ -107,6 +107,8 @@ QDeclarativeDesignView::QDeclarativeDesignView(QWidget *parent) :
connect(data->subcomponentEditorTool, SIGNAL(contextPathChanged(QStringList)), qmlDesignDebugServer(), SLOT(contextPathUpdated(QStringList)));
data->createToolbar();
data->_q_changeToSingleSelectTool();
}
QDeclarativeDesignView::~QDeclarativeDesignView()
......@@ -277,6 +279,13 @@ void QDeclarativeDesignView::mouseDoubleClickEvent(QMouseEvent *event)
QDeclarativeView::mouseDoubleClickEvent(event);
return;
}
if (data->currentToolMode != Constants::SelectionToolMode
&& data->currentToolMode != Constants::MarqueeSelectionToolMode)
{
return;
}
QGraphicsItem *itemToEnter = 0;
QList<QGraphicsItem*> itemList = items(event->pos());
data->filterForSelection(itemList);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment