390890.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 0885170daf56fbb2d5558ae271bb44043a76d018 Mon Sep 17 00:00:00 2001
  2. From: Anthony Fieroni <bvbfan@abv.bg>
  3. Date: Mon, 14 Jan 2019 20:14:02 +0200
  4. Subject: [systemtray] Workaround component creation
  5. CCBUG: 390890
  6. Differential Revision: https://phabricator.kde.org/D16890
  7. Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
  8. ---
  9. applets/systemtray/package/contents/ui/main.qml | 6 ++----
  10. 1 file changed, 2 insertions(+), 4 deletions(-)
  11. diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml
  12. index 55623e5..4e56996 100644
  13. --- a/applets/systemtray/package/contents/ui/main.qml
  14. +++ b/applets/systemtray/package/contents/ui/main.qml
  15. @@ -50,7 +50,8 @@ MouseArea {
  16. property alias statusNotifierModel: statusNotifierModel
  17. - property Component plasmoidItemComponent
  18. + // workaround https://bugreports.qt.io/browse/QTBUG-71238 / https://bugreports.qt.io/browse/QTBUG-72004
  19. + property Component plasmoidItemComponent: Qt.createComponent("items/PlasmoidItem.qml")
  20. Plasmoid.onExpandedChanged: {
  21. if (!plasmoid.expanded) {
  22. @@ -102,9 +103,6 @@ MouseArea {
  23. }
  24. Containment.onAppletAdded: {
  25. - if (!plasmoidItemComponent) {
  26. - plasmoidItemComponent = Qt.createComponent("items/PlasmoidItem.qml");
  27. - }
  28. //Allow the plasmoid expander to know in what window it will be
  29. var plasmoidContainer = plasmoidItemComponent.createObject(invisibleEntriesContainer, {"x": x, "y": y, "applet": applet});
  30. --
  31. cgit v1.1