mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
fixed clickability of "drawer" elements
- added Qt.PointingHandCursor to SelectContainer drawer - fixed some warnings
This commit is contained in:
@@ -11,8 +11,6 @@ Drawer {
|
|||||||
signal containerSelected(int c_index)
|
signal containerSelected(int c_index)
|
||||||
property int selectedIndex: -1
|
property int selectedIndex: -1
|
||||||
|
|
||||||
z: -3
|
|
||||||
|
|
||||||
y: 0
|
y: 0
|
||||||
x: 0
|
x: 0
|
||||||
edge: Qt.RightEdge
|
edge: Qt.RightEdge
|
||||||
@@ -117,6 +115,7 @@ Drawer {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
tb.currentIndex = index
|
tb.currentIndex = index
|
||||||
tb_other.currentIndex = -1
|
tb_other.currentIndex = -1
|
||||||
@@ -181,6 +180,7 @@ Drawer {
|
|||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
tb_other.currentIndex = index
|
tb_other.currentIndex = index
|
||||||
tb.currentIndex = -1
|
tb.currentIndex = -1
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ PageBase {
|
|||||||
pageLoader.focus = true
|
pageLoader.focus = true
|
||||||
}
|
}
|
||||||
|
|
||||||
onContainerSelected: {
|
onContainerSelected: function(c_index) {
|
||||||
var containerProto = ContainerProps.defaultProtocol(c_index)
|
var containerProto = ContainerProps.defaultProtocol(c_index)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -285,7 +285,6 @@ Window {
|
|||||||
Drawer {
|
Drawer {
|
||||||
id: drawer_log
|
id: drawer_log
|
||||||
|
|
||||||
z: -3
|
|
||||||
y: 0
|
y: 0
|
||||||
x: 0
|
x: 0
|
||||||
edge: Qt.BottomEdge
|
edge: Qt.BottomEdge
|
||||||
|
|||||||
Reference in New Issue
Block a user