From e3fabd178956930fc102f6a1707c2de0bea24679 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 13 Apr 2010 12:15:09 +0200 Subject: 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 (cherry picked from commit 559ac20680900ed64c9306f22540f4f4f59cb985) --- src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp b/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp index ae9dd3c4f5..adcb5ae470 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp @@ -107,7 +107,7 @@ class QWidgetDeclarativeUI : public QObject Q_PROPERTY(QDeclarativeListProperty children READ children) Q_PROPERTY(QLayoutObject *layout READ layout WRITE setLayout) Q_PROPERTY(QDeclarativeListProperty 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(QSize size READ size) -- cgit v1.2.3