Skip to content
Snippets Groups Projects
Commit f1f567bf authored by Tobias Hunger's avatar Tobias Hunger Committed by Daniel Teske
Browse files

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: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 37a5b8de
No related branches found
No related tags found
No related merge requests found
...@@ -55,12 +55,13 @@ class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget ...@@ -55,12 +55,13 @@ class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
Q_OBJECT Q_OBJECT
Q_ENUMS(Kind) Q_ENUMS(Kind)
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true) 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(QString promptDialogTitle READ promptDialogTitle WRITE setPromptDialogTitle DESIGNABLE true)
Q_PROPERTY(Kind expectedKind READ expectedKind WRITE setExpectedKind DESIGNABLE true) Q_PROPERTY(Kind expectedKind READ expectedKind WRITE setExpectedKind DESIGNABLE true)
Q_PROPERTY(QString baseDirectory READ baseDirectory WRITE setBaseDirectory DESIGNABLE true) Q_PROPERTY(QString baseDirectory READ baseDirectory WRITE setBaseDirectory DESIGNABLE true)
Q_PROPERTY(QStringList commandVersionArguments READ commandVersionArguments WRITE setCommandVersionArguments) Q_PROPERTY(QStringList commandVersionArguments READ commandVersionArguments WRITE setCommandVersionArguments)
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly DESIGNABLE true) 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: public:
static const char * const browseButtonLabel; static const char * const browseButtonLabel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment