aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorAli Kianian <ali.kianian@qt.io>2024-04-04 10:12:10 +0300
committerAli Kianian <ali.kianian@qt.io>2024-04-04 08:28:26 +0000
commit22a5e4948ba9468fd0ff2ded5017634a271ec650 (patch)
treeda2ab8980e3c63c56a1ac8ffcf3ab2812d5bf196 /share/qtcreator
parent1376139ec61fd86ba41f4056bf409350b95bea3d (diff)
QmlDesigner: Deselect the model by editing a cell or clicking out
Fixes: QDS-11760 Change-Id: I6a63b2f9589c69859beff79ad04502974c5d18af Reviewed-by: Shrief Gabr <shrief.gabr@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml12
1 files changed, 10 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml b/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
index 3bb48ef3a6..e3f1a58959 100644
--- a/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
+++ b/share/qtcreator/qmldesigner/collectionEditorQmlSource/CollectionDetailsView.qml
@@ -26,6 +26,11 @@ Rectangle {
toolbar.closeDialogs()
}
+ MouseArea {
+ anchors.fill: parent
+ onClicked: tableView.model.deselectAll()
+ }
+
Column {
id: topRow
readonly property real maxAvailableHeight: root.height
@@ -100,7 +105,8 @@ Rectangle {
id: topHeaderMouseArea
anchors.fill: parent
- anchors.margins: 5
+ anchors.leftMargin: StudioTheme.Values.borderHover
+ anchors.rightMargin: StudioTheme.Values.borderHover
acceptedButtons: Qt.LeftButton | Qt.RightButton
hoverEnabled: true
onClicked: (mouse) => {
@@ -188,7 +194,8 @@ Rectangle {
MouseArea {
anchors.fill: parent
- anchors.margins: 5
+ anchors.topMargin: StudioTheme.Values.borderHover
+ anchors.bottomMargin: StudioTheme.Values.borderHover
acceptedButtons: Qt.LeftButton
onClicked: tableView.model.selectRow(index)
}
@@ -366,6 +373,7 @@ Rectangle {
top: itemCell.top
left: itemCell.left
}
+ Component.onCompleted: tableView.model.deselectAll()
}
}