forked from qt-creator/qt-creator
QmlDesigner.propertyEditor: fixes for ListView
This commit is contained in:
@@ -9,6 +9,7 @@ QWidget {
|
|||||||
rightMargin: 0
|
rightMargin: 0
|
||||||
spacing: 0
|
spacing: 0
|
||||||
FlickableGroupBox {
|
FlickableGroupBox {
|
||||||
|
finished: finishedNotify;
|
||||||
}
|
}
|
||||||
GroupBox {
|
GroupBox {
|
||||||
finished: finishedNotify;
|
finished: finishedNotify;
|
||||||
@@ -16,7 +17,8 @@ QWidget {
|
|||||||
layout: VerticalLayout {
|
layout: VerticalLayout {
|
||||||
IntEditor {
|
IntEditor {
|
||||||
backendValue: backendValues.cacheBuffer
|
backendValue: backendValues.cacheBuffer
|
||||||
caption: qsTr("Cache Buffer")
|
caption: qsTr("Cache")
|
||||||
|
toolTip: qsTr("Cache Buffer")
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
step: 1;
|
step: 1;
|
||||||
minimumValue: 0;
|
minimumValue: 0;
|
||||||
@@ -64,24 +66,24 @@ QWidget {
|
|||||||
minimumValue: 0;
|
minimumValue: 0;
|
||||||
maximumValue: 1000;
|
maximumValue: 1000;
|
||||||
}
|
}
|
||||||
// Qt namespace enums not supported by the rewriter
|
// Qt namespace enums not supported by the rewriter
|
||||||
// QWidget {
|
// QWidget {
|
||||||
// layout: HorizontalLayout {
|
// layout: HorizontalLayout {
|
||||||
// Label {
|
// Label {
|
||||||
// text: qsTr("Layout Direction")
|
// text: qsTr("Layout Direction")
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// ComboBox {
|
// ComboBox {
|
||||||
// baseStateFlag: isBaseState
|
// baseStateFlag: isBaseState
|
||||||
// items : { ["LeftToRight", "TopToBottom"] }
|
// items : { ["LeftToRight", "TopToBottom"] }
|
||||||
// currentText: backendValues.layoutDirection.value;
|
// currentText: backendValues.layoutDirection.value;
|
||||||
// onItemsChanged: {
|
// onItemsChanged: {
|
||||||
// currentText = backendValues.layoutDirection.value;
|
// currentText = backendValues.layoutDirection.value;
|
||||||
// }
|
// }
|
||||||
// backendValue: backendValues.layoutDirection
|
// backendValue: backendValues.layoutDirection
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// } //QWidget
|
// } //QWidget
|
||||||
|
|
||||||
QWidget {
|
QWidget {
|
||||||
layout: HorizontalLayout {
|
layout: HorizontalLayout {
|
||||||
@@ -128,98 +130,101 @@ QWidget {
|
|||||||
minimumValue: 0;
|
minimumValue: 0;
|
||||||
maximumValue: 1000;
|
maximumValue: 1000;
|
||||||
}
|
}
|
||||||
GroupBox {
|
}
|
||||||
finished: finishedNotify;
|
}
|
||||||
caption: qsTr("List View Highlight")
|
GroupBox {
|
||||||
layout: VerticalLayout {
|
finished: finishedNotify;
|
||||||
QWidget {
|
caption: qsTr("List View Highlight")
|
||||||
layout: HorizontalLayout {
|
layout: VerticalLayout {
|
||||||
Label {
|
QWidget {
|
||||||
text: qsTr("Righlight Range")
|
layout: HorizontalLayout {
|
||||||
}
|
Label {
|
||||||
|
text: qsTr("Range")
|
||||||
|
toolTip: qsTr("Highlight Range")
|
||||||
|
}
|
||||||
|
|
||||||
ComboBox {
|
ComboBox {
|
||||||
baseStateFlag: isBaseState
|
baseStateFlag: isBaseState
|
||||||
items : { ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"] }
|
items : { ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"] }
|
||||||
currentText: backendValues.highlightRangeMode.value;
|
currentText: backendValues.highlightRangeMode.value;
|
||||||
onItemsChanged: {
|
onItemsChanged: {
|
||||||
currentText = backendValues.highlightRangeMode.value;
|
currentText = backendValues.highlightRangeMode.value;
|
||||||
}
|
|
||||||
backendValue: backendValues.highlightRangeMode
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} //QWidget
|
backendValue: backendValues.highlightRangeMode
|
||||||
IntEditor {
|
|
||||||
backendValue: backendValues.highlightMoveDuration
|
|
||||||
caption: qsTr("Move Duration")
|
|
||||||
toolTip: qsTr("This property holds the move animation duration of the highlight delegate.")
|
|
||||||
baseStateFlag: isBaseState;
|
|
||||||
step: 1;
|
|
||||||
minimumValue: 0;
|
|
||||||
maximumValue: 1000;
|
|
||||||
}
|
}
|
||||||
IntEditor {
|
}
|
||||||
backendValue: backendValues.highlightMoveSpeed
|
} //QWidget
|
||||||
caption: qsTr("Move Speed")
|
IntEditor {
|
||||||
toolTip: qsTr("This property holds the move animation speed of the highlight delegate.")
|
backendValue: backendValues.highlightMoveDuration
|
||||||
baseStateFlag: isBaseState;
|
caption: qsTr("Move Duration")
|
||||||
step: 1;
|
toolTip: qsTr("This property holds the move animation duration of the highlight delegate.")
|
||||||
minimumValue: 0;
|
baseStateFlag: isBaseState;
|
||||||
maximumValue: 1000;
|
step: 1;
|
||||||
}
|
minimumValue: 0;
|
||||||
IntEditor {
|
maximumValue: 1000;
|
||||||
backendValue: backendValues.highlightResizeDuration
|
}
|
||||||
caption: qsTr("Resize Duration")
|
IntEditor {
|
||||||
toolTip: qsTr("This property holds the resize animation duration of the highlight delegate.")
|
backendValue: backendValues.highlightMoveSpeed
|
||||||
baseStateFlag: isBaseState;
|
caption: qsTr("Move Speed")
|
||||||
step: 1;
|
toolTip: qsTr("This property holds the move animation speed of the highlight delegate.")
|
||||||
minimumValue: 0;
|
baseStateFlag: isBaseState;
|
||||||
maximumValue: 1000;
|
step: 1;
|
||||||
}
|
minimumValue: 0;
|
||||||
IntEditor {
|
maximumValue: 1000;
|
||||||
backendValue: backendValues.highlightResizeSpeed
|
}
|
||||||
caption: qsTr("Resize Speed")
|
IntEditor {
|
||||||
toolTip: qsTr("This property holds the resize animation speed of the highlight delegate.")
|
backendValue: backendValues.highlightResizeDuration
|
||||||
baseStateFlag: isBaseState;
|
caption: qsTr("Resize Duration")
|
||||||
step: 1;
|
toolTip: qsTr("This property holds the resize animation duration of the highlight delegate.")
|
||||||
minimumValue: 0;
|
baseStateFlag: isBaseState;
|
||||||
maximumValue: 1000;
|
step: 1;
|
||||||
}
|
minimumValue: 0;
|
||||||
IntEditor {
|
maximumValue: 1000;
|
||||||
backendValue: backendValues.preferredHighlightBegin
|
}
|
||||||
caption: qsTr("Preferred Begin")
|
IntEditor {
|
||||||
toolTip: qsTr("Preferred Highlight Begin - must be smaller than Preferred Highlight End")
|
backendValue: backendValues.highlightResizeSpeed
|
||||||
baseStateFlag: isBaseState;
|
caption: qsTr("Resize Speed")
|
||||||
step: 1;
|
toolTip: qsTr("This property holds the resize animation speed of the highlight delegate.")
|
||||||
minimumValue: 0;
|
baseStateFlag: isBaseState;
|
||||||
maximumValue: 1000;
|
step: 1;
|
||||||
}
|
minimumValue: 0;
|
||||||
IntEditor {
|
maximumValue: 1000;
|
||||||
backendValue: backendValues.preferredHighlightEnd
|
}
|
||||||
caption: qsTr("Preferred End")
|
IntEditor {
|
||||||
toolTip: qsTr("Preferred Highlight End - must be larger than Preferred Highlight End")
|
backendValue: backendValues.preferredHighlightBegin
|
||||||
baseStateFlag: isBaseState;
|
caption: qsTr("Preferred Begin")
|
||||||
step: 1;
|
toolTip: qsTr("Preferred Highlight Begin - must be smaller than Preferred Highlight End")
|
||||||
minimumValue: 0;
|
baseStateFlag: isBaseState;
|
||||||
maximumValue: 1000;
|
step: 1;
|
||||||
}
|
minimumValue: 0;
|
||||||
QWidget { // 1
|
maximumValue: 1000;
|
||||||
layout: HorizontalLayout {
|
}
|
||||||
|
IntEditor {
|
||||||
|
backendValue: backendValues.preferredHighlightEnd
|
||||||
|
caption: qsTr("Preferred End")
|
||||||
|
toolTip: qsTr("Preferred Highlight End - must be larger than Preferred Highlight End")
|
||||||
|
baseStateFlag: isBaseState;
|
||||||
|
step: 1;
|
||||||
|
minimumValue: 0;
|
||||||
|
maximumValue: 1000;
|
||||||
|
}
|
||||||
|
QWidget { // 1
|
||||||
|
layout: HorizontalLayout {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Follows Current")
|
text: qsTr("Follows Current")
|
||||||
}
|
}
|
||||||
CheckBox {
|
CheckBox {
|
||||||
backendValue: backendValues.highlightFollowsCurrentItem
|
backendValue: backendValues.highlightFollowsCurrentItem
|
||||||
toolTip: qsTr("This property sets whether the highlight is managed by the view.")
|
toolTip: qsTr("This property sets whether the highlight is managed by the view.")
|
||||||
baseStateFlag: isBaseState;
|
baseStateFlag: isBaseState;
|
||||||
checkable: True
|
checkable: True
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QScrollArea {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user