|
|
@ -172,31 +172,38 @@ Page { |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
TapHandler { |
|
|
|
// NOTE(Nico): We want to prevent the touch areas from overlapping. For some reason we need to add 1px of padding for that... |
|
|
|
margin: -Nheko.paddingSmall |
|
|
|
Item { |
|
|
|
acceptedButtons: Qt.RightButton |
|
|
|
anchors.fill: parent |
|
|
|
onSingleTapped: { |
|
|
|
anchors.margins: 1 |
|
|
|
if (!TimelineManager.isInvite) |
|
|
|
|
|
|
|
roomContextMenu.show(roomId, tags); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TapHandler { |
|
|
|
|
|
|
|
acceptedButtons: Qt.RightButton |
|
|
|
|
|
|
|
onSingleTapped: { |
|
|
|
|
|
|
|
if (!TimelineManager.isInvite) |
|
|
|
|
|
|
|
roomContextMenu.show(roomId, tags); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
gesturePolicy: TapHandler.ReleaseWithinBounds |
|
|
|
|
|
|
|
acceptedDevices: PointerDevice.Mouse | PointerDevice.Stylus | DeviceType.TouchPad |
|
|
|
} |
|
|
|
} |
|
|
|
gesturePolicy: TapHandler.ReleaseWithinBounds |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TapHandler { |
|
|
|
TapHandler { |
|
|
|
margin: -Nheko.paddingSmall |
|
|
|
margin: -Nheko.paddingSmall |
|
|
|
onSingleTapped: Rooms.setCurrentRoom(roomId) |
|
|
|
onSingleTapped: Rooms.setCurrentRoom(roomId) |
|
|
|
onLongPressed: { |
|
|
|
onLongPressed: { |
|
|
|
if (!isInvite) |
|
|
|
if (!isInvite) |
|
|
|
roomContextMenu.show(roomId, tags); |
|
|
|
roomContextMenu.show(roomId, tags); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HoverHandler { |
|
|
|
HoverHandler { |
|
|
|
id: hovered |
|
|
|
id: hovered |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
acceptedDevices: PointerDevice.Mouse | PointerDevice.Stylus | DeviceType.TouchPad |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
margin: -Nheko.paddingSmall |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
RowLayout { |
|
|
|