QmlDesigner: Hide target buttons for centered anchoring

I never ever needed that feature and the functionality is
missing/incomplete.
Setting all anchor combinations for the left/right/top/bottom
anchors should be enough.

Change-Id: I2c1a165ff7ef0ecc666640aeba7e86166c90aa25
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2016-07-01 16:46:35 +02:00
parent 88dfa84fc6
commit ca5ce834ef
2 changed files with 4 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ RowLayout {
signal centerButtonClicked
signal oppositeEdgeButtonClicked
property alias buttonRow: buttonRow
IconLabel {
id: icon

View File

@@ -152,6 +152,7 @@ Section {
anchorBackend.horizontalTarget = currentText
}
verticalAnchor: false
buttonRow.visible: false
}
AnchorRow {
@@ -164,6 +165,7 @@ Section {
anchorBackend.verticalTarget = currentText
}
verticalAnchor: true
buttonRow.visible: false
}
}