forked from qt-creator/qt-creator
QmlDesigner.Instances: disabling the cursor after completing
The cursor should be disabled after component complete. Change-Id: I3ee089b23f43b42a478aaacc4073cbdfd0da2323 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -278,8 +278,6 @@ static void disableTextCursor(QQuickItem *item)
|
||||
|
||||
void QuickItemNodeInstance::initialize(const ObjectNodeInstance::Pointer &objectNodeInstance)
|
||||
{
|
||||
disableTextCursor(quickItem());
|
||||
|
||||
if (instanceId() == 0) {
|
||||
DesignerSupport::setRootItem(nodeInstanceServer()->quickView(), quickItem());
|
||||
} else {
|
||||
@@ -465,6 +463,8 @@ void QuickItemNodeInstance::doComponentComplete()
|
||||
{
|
||||
doComponentCompleteRecursive(quickItem());
|
||||
|
||||
disableTextCursor(quickItem());
|
||||
|
||||
quickItem()->update();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user