From cad1a84529d8a6756c5ca37c1f9fcd691f8c817a Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Date: Mon, 26 Aug 2013 18:01:04 +0200
Subject: [PATCH] Make it possible to render editable combo box with StyleItem

Not needed by controls right now but I would like to see if we can
create an editable combo box for creator as a temporary solution.

Change-Id: If818e9d51e074d7631708bf8fba8162ae0276713
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
---
 src/controls/Private/qquickstyleitem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/controls/Private/qquickstyleitem.cpp b/src/controls/Private/qquickstyleitem.cpp
index e1c9ee184..02b7a5e36 100644
--- a/src/controls/Private/qquickstyleitem.cpp
+++ b/src/controls/Private/qquickstyleitem.cpp
@@ -486,7 +486,7 @@ void QQuickStyleItem::initStyleOption()
         if (font)
             opt->fontMetrics = QFontMetrics(*font);
         opt->currentText = text();
-        opt->editable = false;
+        opt->editable = m_properties["editable"].toBool();
 #ifdef Q_OS_OSX
         if (m_properties["popup"].canConvert<QObject *>() && style() == "mac") {
             QObject *popup = m_properties["popup"].value<QObject *>();
-- 
GitLab