Bugzilla – Attachment 53777 Details for
Bug 40298
EDITING: Crash when moving cells, QX11PixmapData::createCompatiblePixmapData
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
qt4 patch
x11-init-threads.diff (text/plain), 1.91 KB, created by
Luboš Luňák
on 2011-11-22 09:25:16 UTC
(
hide
)
Description:
qt4 patch
Filename:
MIME Type:
Creator:
Luboš Luňák
Created:
2011-11-22 09:25:16 UTC
Size:
1.91 KB
patch
obsolete
>--- src/corelib/global/qnamespace.qdoc.sav 2011-08-23 14:02:27.000000000 +0200 >+++ src/corelib/global/qnamespace.qdoc 2011-11-22 13:06:00.879288001 +0100 >@@ -167,6 +167,10 @@ > attribute is true. This attribute must be set after QApplication is > constructed. This is only supported in Symbian^3 and later Symbian releases. > >+ \value AA_X11InitThreads Calls XInitThreads() as part of the QApplication >+ construction in order to make Xlib calls thread-safe. >+ >+ > \omitvalue AA_AttributeCount > */ > >--- src/corelib/global/qnamespace.h.sav 2011-08-23 14:02:27.000000000 +0200 >+++ src/corelib/global/qnamespace.h 2011-11-22 13:07:35.925288002 +0100 >@@ -544,6 +544,7 @@ public: > AA_MacDontSwapCtrlAndMeta = 7, > AA_S60DontConstructApplicationPanes = 8, > AA_S60DisablePartialScreenInputMode = 9, >+ AA_X11InitThreads = 10, > > // Add new attributes before this line > AA_AttributeCount >--- src/gui/kernel/qapplication_x11.cpp.sav 2011-08-23 14:02:27.000000000 +0200 >+++ src/gui/kernel/qapplication_x11.cpp 2011-11-22 13:06:00.881288001 +0100 >@@ -1739,6 +1739,9 @@ void qt_init(QApplicationPrivate *priv, > } else { > // Qt controls everything (default) > >+ if (QApplication::testAttribute(Qt::AA_X11InitThreads)) >+ XInitThreads(); >+ > // Set application name and class > char *app_class = 0; > if (argv && argv[0]) { >--- src/gui/image/qpixmap.cpp.sav 2011-08-23 14:02:27.000000000 +0200 >+++ src/gui/image/qpixmap.cpp 2011-11-22 13:06:39.723288001 +0100 >@@ -99,7 +99,7 @@ static bool qt_pixmap_thread_test() > return false; > } > #ifndef Q_WS_WIN >- if (qApp->thread() != QThread::currentThread()) { >+ if (!QApplication::testAttribute(Qt::AA_X11InitThreads) && qApp->thread() != QThread::currentThread()) { > qWarning("QPixmap: It is not safe to use pixmaps outside the GUI thread"); > return false; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 40298
:
50464
|
50465
| 53777 |
54150
|
54194