Commit 1600f55f authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann
Browse files

QmlDesigner.NodeInstances: Disable text cursor

Change-Id: Ib27752624d658096903dc3b2660f2ee199d7869e
Reviewed-by: default avatarThomas Hartmann <>
parent 74d0ba65
......@@ -35,6 +35,9 @@
#include <QQuickView>
#include <cmath>
#include <private/qquicktextinput_p.h>
#include <private/qquicktextedit_p.h>
#include <QHash>
#include <QDebug>
......@@ -259,8 +262,24 @@ QuickItemNodeInstance::Pointer QuickItemNodeInstance::create(QObject *object)
return instance;
static void disableTextCursor(QQuickItem *item)
foreach (QQuickItem *childItem, item->childItems())
QQuickTextInput *textInput = qobject_cast<QQuickTextInput*>(item);
if (textInput)
QQuickTextEdit *textEdit = qobject_cast<QQuickTextEdit*>(item);
if (textEdit)
void QuickItemNodeInstance::initialize(const ObjectNodeInstance::Pointer &objectNodeInstance)
if (instanceId() == 0) {
DesignerSupport::setRootItem(nodeInstanceServer()->quickView(), quickItem());
} else {
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