OSDN Git Service

Fix property type mismatch in Qt Quick Designer
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 6 Sep 2011 11:06:50 +0000 (13:06 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 6 Sep 2011 11:11:50 +0000 (13:11 +0200)
* GridView.keyNavigationWraps
* ListView.keyNavigationWraps

Task-number: QTCREATORBUG-5776

Change-Id: I6d18650a6be83bdeb1bb6f38749d0bae79e52e24
Merge-request: 365
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/4249
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
share/qtcreator/qmldesigner/propertyeditor/Qt/GridViewSpecifics.qml
share/qtcreator/qmldesigner/propertyeditor/Qt/ListViewSpecifics.qml

index aeedc76..eb38400 100644 (file)
@@ -89,14 +89,18 @@ QWidget {
                     }
                 } //QWidget
 
-                IntEditor {
-                    backendValue: backendValues.keyNavigationWraps
-                    caption: qsTr("Resize wraps")
-                    toolTip: qsTr("Determines whether the grid wraps key navigation.")
-                    baseStateFlag: isBaseState;
-                    step: 1;
-                    minimumValue: 0;
-                    maximumValue: 1000;
+                QWidget {
+                    layout: HorizontalLayout {
+                        Label {
+                            text: qsTr("Navigation wraps")
+                        }
+                        CheckBox {
+                            backendValue: backendValues.keyNavigationWraps
+                            toolTip: qsTr("Determines whether the grid wraps key navigation.")
+                            baseStateFlag: isBaseState;
+                            checkable: True
+                        }
+                    }
                 }
                 //                Qt namespace enums not supported by the rewriter
                 //                QWidget {
index 9ad5901..59ae5e9 100644 (file)
@@ -56,14 +56,18 @@ QWidget {
                     minimumValue: 0;
                     maximumValue: 1000;
                 }
-                IntEditor {
-                    backendValue: backendValues.keyNavigationWraps
-                    caption: qsTr("Navigation wraps")
-                    toolTip: qsTr("Determines whether the grid wraps key navigation.")
-                    baseStateFlag: isBaseState;
-                    step: 1;
-                    minimumValue: 0;
-                    maximumValue: 1000;
+                QWidget {
+                    layout: HorizontalLayout {
+                        Label {
+                            text: qsTr("Navigation wraps")
+                        }
+                        CheckBox {
+                            backendValue: backendValues.keyNavigationWraps
+                            toolTip: qsTr("Determines whether the grid wraps key navigation.")
+                            baseStateFlag: isBaseState;
+                            checkable: True
+                        }
+                    }
                 }
                 //                Qt namespace enums not supported by the rewriter
                 //                QWidget {