From 0a5a5b9ce625efbecffa9f3d0e10716294a4b8a9 Mon Sep 17 00:00:00 2001 From: "aleksandr.ledyaev" <aleksandr.ledyaev@demlabs.net> Date: Thu, 29 Oct 2020 03:54:36 +0300 Subject: [PATCH] [*] DapVPNOrdersGridView.qml --- .../screen/desktop/VPNService/DapVPNOrdersGridView.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CellFrameDashboardGUI/screen/desktop/VPNService/DapVPNOrdersGridView.qml b/CellFrameDashboardGUI/screen/desktop/VPNService/DapVPNOrdersGridView.qml index b49a604..e177e71 100644 --- a/CellFrameDashboardGUI/screen/desktop/VPNService/DapVPNOrdersGridView.qml +++ b/CellFrameDashboardGUI/screen/desktop/VPNService/DapVPNOrdersGridView.qml @@ -15,6 +15,7 @@ GridView { clip: true currentIndex: -1 + focus: true delegate: Item { id: cell @@ -22,6 +23,12 @@ GridView { width: control.cellWidth height: control.cellHeight + GridView.onRemove: { + if (GridView.isCurrentItem) { + control.currentIndex = -1; + } + } + Rectangle { id: contentFrame @@ -34,13 +41,14 @@ GridView { border.width: pt border.color: "#E2E1E6" radius: 8 * pt + focus: true Rectangle { id: headerFrame width: parent.width height: 30 * pt - color: control.currentIndex == index ? "#D51F5D" : "#3E3853" + color: cell.GridView.isCurrentItem ? "#D51F5D" : "#3E3853" radius: 8 * pt Rectangle { -- GitLab