aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/pathchooser.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2012-03-27 15:02:03 +0200
committerDaniel Teske <daniel.teske@nokia.com>2012-03-27 15:07:11 +0200
commitf1f567bf2da04e7fcc28bf4a14767cd8cc40750a (patch)
treebcecce26d1348b52c0688a88ba6818c6724ee1b7 /src/libs/utils/pathchooser.h
parent37a5b8dec14daea7f246b69f261dd22253111ce9 (diff)
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>
Diffstat (limited to 'src/libs/utils/pathchooser.h')
-rw-r--r--src/libs/utils/pathchooser.h3
1 files changed, 2 insertions, 1 deletions
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;