forked from qt-creator/qt-creator
QmlDesigner: Add Ids to icons for Squish tests
Task-number: QDS-12204 Change-Id: Ib63409e9092db4446756ec9dec6092947d5f0697 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -46,6 +46,8 @@ Rectangle {
|
||||
spacing: StudioTheme.Values.sectionRowSpacing
|
||||
|
||||
IconButton {
|
||||
id: addColumnLeftButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.addcolumnleft_medium
|
||||
tooltip: qsTr("Add property left")
|
||||
enabled: root.model.selectedColumn > -1
|
||||
@@ -53,6 +55,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: addColumnRightButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.addcolumnright_medium
|
||||
tooltip: qsTr("Add property right")
|
||||
enabled: root.model.selectedColumn > -1
|
||||
@@ -60,6 +64,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: deleteColumnButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.deletecolumn_medium
|
||||
tooltip: qsTr("Delete selected property")
|
||||
enabled: root.model.selectedColumn > -1
|
||||
@@ -72,6 +78,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: addRowBelowButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.addrowbelow_medium
|
||||
tooltip: qsTr("Insert row below")
|
||||
enabled: root.model.selectedRow > -1
|
||||
@@ -79,6 +87,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: addRowAboveButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.addrowabove_medium
|
||||
tooltip: qsTr("Insert row above")
|
||||
enabled: root.model.selectedRow > -1
|
||||
@@ -86,6 +96,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: deleteSelectedRowButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.deleterow_medium
|
||||
tooltip: qsTr("Delete selected row")
|
||||
enabled: root.model.selectedRow > -1
|
||||
@@ -101,6 +113,8 @@ Rectangle {
|
||||
Layout.rightMargin: StudioTheme.Values.toolbarHorizontalMargin
|
||||
|
||||
IconButton {
|
||||
id: saveCollectionButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.save_medium
|
||||
tooltip: qsTr("Save changes")
|
||||
enabled: root.model.collectionName !== ""
|
||||
@@ -108,6 +122,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: exportCollectionButton
|
||||
|
||||
buttonIcon: StudioTheme.Constants.export_medium
|
||||
tooltip: qsTr("Export model")
|
||||
enabled: root.model.collectionName !== ""
|
||||
|
@@ -395,16 +395,22 @@ Rectangle {
|
||||
}
|
||||
|
||||
CellContextMenuItem {
|
||||
id: addRowAboveCellMenuItem
|
||||
|
||||
itemText: qsTr("Add row above")
|
||||
itemIcon: StudioTheme.Constants.addrowabove_medium
|
||||
onTriggered: root.model.insertRow(cellContextMenu.rowIndex)
|
||||
}
|
||||
CellContextMenuItem {
|
||||
id: addRowBelowCellMenuItem
|
||||
|
||||
itemText: qsTr("Add row below")
|
||||
itemIcon: StudioTheme.Constants.addrowbelow_medium
|
||||
onTriggered: root.model.insertRow(cellContextMenu.rowIndex + 1)
|
||||
}
|
||||
CellContextMenuItem {
|
||||
id: deleteRowCellMenuItem
|
||||
|
||||
itemText: qsTr("Delete row")
|
||||
itemIcon: StudioTheme.Constants.deleterow_medium
|
||||
onTriggered: root.model.removeRows(cellContextMenu.rowIndex, 1)
|
||||
|
@@ -132,6 +132,8 @@ Item {
|
||||
}
|
||||
|
||||
HelperWidgets.AbstractButton {
|
||||
id: importCollectionButton
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: StudioTheme.Values.toolbarHorizontalMargin
|
||||
|
Reference in New Issue
Block a user