QmlDesigner: Fix PropertyEditor with latest qt.git

It seems the runtime got new checks, since loading the Property Editor
failed with
 'Invalid property assignment: "font" is a read-only property"'

Reviewed-by: Thomas Hartmann
This commit is contained in:
Kai Koehne
2010-04-13 12:15:09 +02:00
parent e7a9619c2f
commit 559ac20680

View File

@@ -107,7 +107,7 @@ class QWidgetDeclarativeUI : public QObject
Q_PROPERTY(QDeclarativeListProperty<QObject> children READ children) Q_PROPERTY(QDeclarativeListProperty<QObject> children READ children)
Q_PROPERTY(QLayoutObject *layout READ layout WRITE setLayout) Q_PROPERTY(QLayoutObject *layout READ layout WRITE setLayout)
Q_PROPERTY(QDeclarativeListProperty<Action> actions READ actions) Q_PROPERTY(QDeclarativeListProperty<Action> actions READ actions)
Q_PROPERTY(QFont font READ font CONSTANT) Q_PROPERTY(QFont font READ font WRITE setFont)
Q_PROPERTY(QPoint pos READ pos) Q_PROPERTY(QPoint pos READ pos)
Q_PROPERTY(QSize size READ size) Q_PROPERTY(QSize size READ size)