From ca5ce834efc75d691c72d9b03600787da18da1e9 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 1 Jul 2016 16:46:35 +0200 Subject: [PATCH] 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 --- .../qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml | 2 ++ .../propertyEditorQmlSources/QtQuick/LayoutSection.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml index f869c56c0cb..f1f5c5bc668 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnchorRow.qml @@ -56,6 +56,8 @@ RowLayout { signal centerButtonClicked signal oppositeEdgeButtonClicked + property alias buttonRow: buttonRow + IconLabel { id: icon diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml index 5601124ed61..6ae989f67e4 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml @@ -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 } }