OSDN Git Service

QmlDesigner.propertyEditor: show emtpy instead of empty string
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 28 Apr 2010 11:45:49 +0000 (13:45 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 28 Apr 2010 12:07:13 +0000 (14:07 +0200)
share/qtcreator/qmldesigner/propertyeditor/Qt/Switches.qml

index db16766..f6550e9 100644 (file)
@@ -20,7 +20,7 @@ QFrame {
             id: standardMode;
             toolTip: "special properties";
             //iconFromFile: "images/rect-icon.png";
-            text: backendValues === undefined ? "empty" : backendValues.className.value
+            text: backendValues === undefined || backendValues.className === undefined || backendValues.className == "empty" ? "empty" : backendValues.className.value
             onClicked: {
                 extendedMode.checked = false;
                 layoutMode.checked = false;