On dimanche 15 janvier 2017 00:44:01 CET D. Michael McIntyre wrote:
> > OK the most important part is here (/usr/share) but I really wonder what's
> > in your /usr/share/xsessions/plasma (for my curiosity, can you do a
> > `find` there, to show me?)
> 
> There is no /usr/share/xsessions/plasma.

OK then you can remove that from your XDG_DATA_DIRS :-)
(if you didn't set it yourself, I really wonder what puts that in there)

> It's probable that nothing ever ran update-mime-database on /usr/local
> until I did just now.

OK. Then that was the problem. Missing invocation on make install.
Fixed in r14916, using a cmake file from extra-cmake-modules.
 
> > How about not using a stylesheet? I hate stylesheets anyway, they are
> > slow,
> > inflexible, limited....
> > A palette and a widget style can do everything a stylesheet does, and more
> > (though with much more tricky code, in some cases).
> 
> If you can show me a better way, my friend, I despise the stylesheet
> with a burning passion.  I knew what I wanted Rosegarden to look like,
> but I didn't know how to get there, and the thing is just an absolute
> nightmare of glue on top of duct tape on top of baling wire on top of
> chewing gum on top of old truck tires.

LOL.

As a first step, I just realized something: you could try setting the 
stylesheet only on the mainwindow(s) (rather than on qApp), and creating the 
file dialogs without a parent so that the stylesheet doesn't propagate to them.
Of course every other dialog (those implemented in rosegarden) should still 
have a parent.
This is just a try, because it's actually an even worse use of stylesheets 
(every window has to parse the whole stylesheet; for performance reasons it is 
usually advised to set the stylesheet on qApp instead like rosegarden does).
But I think making the filedialogs parent-less is needed in any case (if we 
replace the stylesheet with setPalette calls, we also won't want the filedialog 
to inherit the palette).

Although with setPalette we have another solution.... saving the system 
palette in main() before making any changes, and then applying it to file 
dialogs, hmm, assuming it will propagate from QFileDialog to the actual KDE 
file dialog. Worth testing. I have another project for today, but maybe next 
weekend. Feel free to experiment meanwhile and tell me what you find ;)

I did several commercial projects writing widget styles, I like doing that, 
maybe I'll give it a go in rosegarden using the stylesheet as specification ;)

Cheers,

-- 
David Faure, [email protected], http://www.davidfaure.fr
Working on KDE Frameworks 5


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to