forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Daniel Teske
parent
37a5b8dec1
commit
f1f567bf2d
@@ -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;
|
||||
|
Reference in New Issue
Block a user