On 03/06/2017 12:01 PM, David Faure wrote:

> Can you describe what the intended effect is?

The stylesheet uses different gradients and possibly borders to create a 
different visual effect for those combo boxes.  They sit in a toolbar, 
and they're lighter than their surroundings.  I used the same effect on 
tool buttons elsewhere on the toolbar.

Pinpointing the exact differences between the local stylesheet and the 
sprawling top level master stylesheet is somewhat involved, and I 
haven't taken the time to do that.  It seems like more than QPalette 
could handle.

On the subject of QPalette, we're supposed to be replacing all the 
occurrences of local stylesheets with QPalette, correct?  I just did 
that in one of the 11 or so places left to tackle, and in the course of 
my reading I found a dozen admonitions from Qt people that stylesheets 
are the "preferred way to go" and QPalette "isn't guaranteed to work." 
Now that I think about it, I seem to remember replacing a lot of broken 
QPalette stuff with stylesheets quite intentionally.

I'll take your word for it that this is the right way to go, but I'm 
curious what all the warnings are about.

The particular example I just converted is code that's notoriously hard 
to reach, so I'm not certain my conversion worked as intended.  I need a 
MIDI file with lyrics in an unusual encoding, to trigger the dialog 
where the user helps Rosegarden decide what encoding to use.  I used to 
have a test file for this, but have no memory of what file that was.  I 
need to try my palette conversion on a more accessible patch of code to 
see if I am making any progress.

-- 
D. Michael McIntyre

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to