From d955444dc18b2977d8b22e87b92c85bca90a623e Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 27 Jul 2021 22:35:38 +0200 Subject: Port to explicit connect syntax Also fix a lot of warnings. --- resources/qml/QuickSwitcher.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'resources/qml/QuickSwitcher.qml') diff --git a/resources/qml/QuickSwitcher.qml b/resources/qml/QuickSwitcher.qml index 8c4f47ca..61155acf 100644 --- a/resources/qml/QuickSwitcher.qml +++ b/resources/qml/QuickSwitcher.qml @@ -71,15 +71,17 @@ Popup { } Connections { - onCompletionSelected: { + function onCompletionSelected(id) { Rooms.setCurrentRoom(id); quickSwitcher.close(); } - onCountChanged: { + + function onCountChanged() { if (completerPopup.count > 0 && (completerPopup.currentIndex < 0 || completerPopup.currentIndex >= completerPopup.count)) completerPopup.currentIndex = 0; } + target: completerPopup } -- cgit 1.5.1