Bug 369836 - QML warning in org.kde.desktopcontainment/contents/ui/AppletHandle.qml:54:16: QML Translate: LayoutDirection attached property only works with Items
Summary: QML warning in org.kde.desktopcontainment/contents/ui/AppletHandle.qml:54:16:...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (other bugs)
Version First Reported In: master
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-03 20:39 UTC by Elias Probst
Modified: 2016-10-04 08:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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