From f1f567bf2da04e7fcc28bf4a14767cd8cc40750a Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Tue, 27 Mar 2012 15:02:03 +0200
Subject: [PATCH] Do not mark up unknown types as designable

Do not mark up properties using types that are not known to designer as
designable.

Change-Id: I45b702dc0e441998f6afa7989f8c12a3b068899e
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
---
 src/libs/utils/pathchooser.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libs/utils/pathchooser.h b/src/libs/utils/pathchooser.h
index 517fb4644f3..6ba2a317040 100644
--- a/src/libs/utils/pathchooser.h
+++ b/src/libs/utils/pathchooser.h
@@ -55,12 +55,13 @@ class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
     Q_OBJECT
     Q_ENUMS(Kind)
     Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
-    Q_PROPERTY(Utils::FileName fileName READ fileName WRITE setFileName DESIGNABLE true)
     Q_PROPERTY(QString promptDialogTitle READ promptDialogTitle WRITE setPromptDialogTitle DESIGNABLE true)
     Q_PROPERTY(Kind expectedKind READ expectedKind WRITE setExpectedKind DESIGNABLE true)
     Q_PROPERTY(QString baseDirectory READ baseDirectory WRITE setBaseDirectory DESIGNABLE true)
     Q_PROPERTY(QStringList commandVersionArguments READ commandVersionArguments WRITE setCommandVersionArguments)
     Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true)
+    // Designer does not know this type, so force designable to false:
+    Q_PROPERTY(Utils::FileName fileName READ fileName WRITE setFileName DESIGNABLE false)
 
 public:
     static const char * const browseButtonLabel;
-- 
GitLab