Commit cf0f35aa authored by Nate Graham's avatar Nate Graham 🔩

[applets/Weather] Activate Apply button when clicking on a table item

BUG: 414442
FIXED-IN: 5.17.4
parent a136c829
......@@ -136,6 +136,12 @@ ColumnLayout {
QtControls.TableView {
id: locationListView
function tableItemActivated() {
if (locationListView.row !== -1 && locationListView.rowCount) {
source = locationListModel.valueForListIndex(locationListView.row);
}
}
Layout.minimumWidth: implicitWidth
Layout.minimumHeight: implicitHeight
Layout.fillWidth: true
......@@ -144,10 +150,10 @@ ColumnLayout {
headerVisible: false
model: locationListModel
onActivated: {
if (row !== -1 && rowCount) {
source = locationListModel.valueForListIndex(row);
}
onActivated: tableItemActivated();
onClicked: {
locationListView.forceActiveFocus;
tableItemActivated();
}
QtControls.TableViewColumn {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment