diff --git a/bitmonero.pro.user b/bitmonero.pro.user index a3d58da4..7b75f718 100644 --- a/bitmonero.pro.user +++ b/bitmonero.pro.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml index 725b35be..66836247 100644 --- a/components/AddressBookTable.qml +++ b/components/AddressBookTable.qml @@ -26,10 +26,8 @@ ListView { height: 64 width: listView.width color: index % 2 ? "#F8F8F8" : "#FFFFFF" - function collapseDropdown() { - z = 1 - dropdown.expanded = false - } + z: listView.count - index + function collapseDropdown() { dropdown.expanded = false } Text { id: descriptionText @@ -115,10 +113,8 @@ ListView { if(expanded) { listView.previousItem = delegate listView.currentIndex = index - listView.currentItem.z = 2 } } - onCollapsed: delegate.z = 0 onOptionClicked: { if(option === 0) clipboard.setText(address) diff --git a/components/DashboardTable.qml b/components/DashboardTable.qml index 1e99cef5..a0d644c0 100644 --- a/components/DashboardTable.qml +++ b/components/DashboardTable.qml @@ -26,10 +26,8 @@ ListView { height: 90 width: listView.width color: index % 2 ? "#F8F8F8" : "#FFFFFF" - function collapseDropdown() { - z = 1 - dropdown.expanded = false - } + z: listView.count - index + function collapseDropdown() { dropdown.expanded = false } Row { id: row1 @@ -211,10 +209,8 @@ ListView { if(expanded) { listView.previousItem = delegate listView.currentIndex = index - listView.currentItem.z = 2 } } - onCollapsed: delegate.z = 0 onOptionClicked: { if(option === 0) clipboard.setText(address) diff --git a/components/HistoryTable.qml b/components/HistoryTable.qml index ec40841c..ca844b90 100644 --- a/components/HistoryTable.qml +++ b/components/HistoryTable.qml @@ -26,10 +26,8 @@ ListView { height: 114 width: listView.width color: index % 2 ? "#F8F8F8" : "#FFFFFF" - function collapseDropdown() { - z = 1 - dropdown.expanded = false - } + z: listView.count - index + function collapseDropdown() { dropdown.expanded = false } Row { id: row1 @@ -241,10 +239,8 @@ ListView { if(expanded) { listView.previousItem = delegate listView.currentIndex = index - listView.currentItem.z = 2 } } - onCollapsed: delegate.z = 0 onOptionClicked: { if(option === 0) clipboard.setText(address) diff --git a/components/TableDropdown.qml b/components/TableDropdown.qml index f494fe81..c51beb9f 100644 --- a/components/TableDropdown.qml +++ b/components/TableDropdown.qml @@ -89,13 +89,14 @@ Item { Timer { id: timer interval: 50 - repeat: false + repeat: true running: false onTriggered: { if(((tipItem.visible && !tipItem.containsMouse) || !tipItem.visible) && !mouseArea.containsMouse) { tipItem.visible = false dropdown.expanded = false currentIndex = -1 + timer.stop() } } } @@ -119,9 +120,9 @@ Item { } } + onExited: timer.start() preventStealing: true z: 1 - onExited: timer.start() Item { id: dropArea @@ -185,26 +186,8 @@ Item { pos.y -= tipItem.height - 30 tipItem.y = pos.y + appWindow.y tipItem.visible = true - } else { - tipItem.visible = false } } - -// MouseArea { -// id: delegateArea -// hoverEnabled: true -// anchors.fill: parent -// propagateComposedEvents: true -// onEntered: { - -// } -// onExited: tipItem.visible = false -// onClicked: { -// dropdown.optionClicked(index) -// tipItem.visible = false -// dropdown.expanded = false -// } -// } } } }