Skip to content
Snippets Groups Projects
Commit 0a5a5b9c authored by aleksandr.ledyaev's avatar aleksandr.ledyaev
Browse files

[*] DapVPNOrdersGridView.qml

parent 16f2e0ec
No related branches found
No related tags found
1 merge request!11Cellframe clone
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment