-
Dmitry Kazakov authored
There is a bug in Qt/X11 which prevents the QPainter::drawText() call be used in any non-gui thread, even when QFontDatabase::supportsThreadedFontRendering() returns true. It seems like some function in the font rendering routine eats the X11 replies which are awaited by the GUI thread, effectively making the GUI thread to hang up. The hangup happens in xcb_wait_for_reply(). This dirty workaround makes the text brush be initialized in the GUI thread, saved to a global singleton and then fetched by the threaded code in the paintop. Yes, that is weird, but this is the best thing we can do right now :( BUG:330492
85908c51