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

Reply via email to