Bug 369836

Summary: QML warning in org.kde.desktopcontainment/contents/ui/AppletHandle.qml:54:16: QML Translate: LayoutDirection attached property only works with Items
Product: [Plasma] plasmashell Reporter: Elias Probst <mail>
Component: ContainmentAssignee: Sebastian Kügler <sebas>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Elias Probst 2016-10-03 20:39:58 UTC
I have
"Press and hold widgets to move them and reveal their handles"
enabled in the Desktop configuration → Tweaks.

When doing a press & hold on a widget for the 1st time after it's been placed on the desktop containment, the following QML warning is logged:

file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/AppletHandle.qml:54:16: QML Translate: LayoutDirection attached property only works with Items

This message won't be shown on any further attempts when revealing the applet handles - only the 1st time after it's been added/a plasmashell restart.
Comment 1 David Edmundson 2016-10-04 08:05:34 UTC
Git commit 3dd03afd37a337cbac9c97ba8118e198ec5de783 by David Edmundson.
Committed on 04/10/2016 at 08:05.
Pushed by davidedmundson into branch 'Plasma/5.8'.

Don't create attached LayoutMirroring on non Item

Summary:
The current code tries checking if we're in RTL on the current object,
but is accidentally reading an attached property on the Translate object
rather than the root Item. This gives a warning, and more importantly
won't work.

Test Plan:
Ran plasmsa and opened applet handle
Ran plasmashell --reverse and opened applet handle

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D2927

M  +1    -1    containments/desktop/package/contents/ui/AppletHandle.qml

http://commits.kde.org/plasma-desktop/3dd03afd37a337cbac9c97ba8118e198ec5de783