Port away from applicationWindow()

This commit is contained in:
Tobias Fella
2025-08-07 00:32:14 +02:00
parent 3465fc7d39
commit f7c74a60cd
24 changed files with 37 additions and 62 deletions

View File

@@ -90,7 +90,7 @@ Item {
fillMode: Image.PreserveAspectFit
autoTransform: true
paused: !applicationWindow().active
paused: !QQC2.ApplicationWindow.window.active
}
}

View File

@@ -3,6 +3,7 @@
// SPDX-License-Identifier: GPL-3.0-only
import QtQuick
import QtQuick.Controls as QQC2
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
@@ -136,9 +137,9 @@ a{
RoomManager.resolveResource(link, "join");
}
onHoveredLinkChanged: if (hoveredLink.length > 0 && hoveredLink !== "1") {
applicationWindow().hoverLinkIndicator.text = hoveredLink;
(QQC2.ApplicationWindow.window as Main).hoverLinkIndicator.text = hoveredLink;
} else {
applicationWindow().hoverLinkIndicator.text = "";
(QQC2.ApplicationWindow.window as Main).hoverLinkIndicator.text = "";
}
HoverHandler {