[Differential] [Commented On] D4827: possibility to use a fallback chain as prefix
Marco Martin
noreply at phabricator.kde.org
Mon Feb 27 17:05:32 UTC 2017
mart added a comment.
In https://phabricator.kde.org/D4827#90608, @davidedmundson wrote:
> Either:
>
> a QML client could just do
> prefix: frame.hasElementPrefix("toolbutton-pressed") ? "toolbutton-pressed" : "pressed"
>
>
>
> or this doesn't work
>
> It's the same thing
>
> both are just using for m_frameSvg->hasElementPrefix()
ah, yes, of course.
(since the irc discussion you quoted was about falling back between files, i tought that was the topic, while here is about falling back between prefixes)
anyways yes, that qml chunk does the same thing, tough it would not work when you change the theme from one that has the prefix to one that hasn't, as it's querying a method so can't be binded. (and is uglier qml, that being the part that breaks more easily, i think is better to have uglier c++ in order to have prettier qml)
REPOSITORY
R242 Plasma Framework (Library)
REVISION DETAIL
https://phabricator.kde.org/D4827
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: mart, #plasma
Cc: davidedmundson, broulik, plasma-devel, #frameworks, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170227/c3dc6ede/attachment.html>
More information about the Kde-frameworks-devel
mailing list