On Tuesday 14 September 2004 11:05 pm, Matthias Neeracher wrote:
> It turns out that the problems with notes not displaying on MacOS X was
> also caused by a static initializer conflict, this time in colours.cpp.
> Basically:
>
> - On most platforms, static initializers in the qt shared libraries get
> executed before static initializers in the main application.
> - On Mac OS X, it works the other way around, and the C++ standard does
> not really make promises either way.
> - If you execute the QColor::QColor(QColor &) copy constructor to copy
> stuff like Qt::black, the global Qt colors get initialized dynamically.
> - If this happens BEFORE the Qt static initializers run, you have a bad
> situation, because the initializers will then
>    de-initialize the colors again.
> - My patch replaces references to Qt::whatever with the hardcoded color
> values. This is not all that pretty, but the probability of Qt::red
> being changed to a different RGB value are pretty low :-)

Interesting.  Surely that isn't really the correct way to fix this, but I 
guess sometimes there's ideologically correct, and then there's getting it 
done today.

So what does that get you on OS-X now?

-- 
Michael McIntyre  ----   Silvan <[EMAIL PROTECTED]>
Linux fanatic, and certified Geek;  registered Linux user #243621
http://www.geocities.com/Paris/Rue/5407/
http://rosegarden.sourceforge.net/tutorial/


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to