[plasma/xdg-desktop-portal-kde] src: Use Application singleton to access properties
David Redondo <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 714a81e1568b06b3d8cab842e1f6d24eb7d2995c by David Redondo.
Committed on 29/07/2026 at 10:06.
Pushed by davidre into branch 'master'.
Use Application singleton to access properties
Helps the language server and qmllint
M +1 -1 src/AppChooserDialog.qml
M +1 -1 src/region-select/RegionSelectOverlay.qml
https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/714a81e1568b06b3d8cab842e1f6d24eb7d2995c
diff --git a/src/AppChooserDialog.qml b/src/AppChooserDialog.qml
index c2bddc80..ca19a5eb 100644
--- a/src/AppChooserDialog.qml
+++ b/src/AppChooserDialog.qml
@@ -138,7 +138,7 @@ PortalDialog {
}
QQC2.ToolTip.text: text
QQC2.ToolTip.visible: Kirigami.Settings.tabletMode ? pressed : hovered
- QQC2.ToolTip.delay: Kirigami.Settings.tabletMode ? Qt.styleHints.mousePressAndHoldInterval : Kirigami.Units.toolTipDelay
+ QQC2.ToolTip.delay: Kirigami.Settings.tabletMode ? Application.styleHints.mousePressAndHoldInterval : Kirigami.Units.toolTipDelay
}
}
}
diff --git a/src/region-select/RegionSelectOverlay.qml b/src/region-select/RegionSelectOverlay.qml
index 62f16690..2cfca1b0 100644
--- a/src/region-select/RegionSelectOverlay.qml
+++ b/src/region-select/RegionSelectOverlay.qml
@@ -10,7 +10,7 @@ MouseArea {
id: root
anchors.fill: parent
- LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
+ LayoutMirroring.enabled: Application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
focus: true