projects
/
profile
/
ivi
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab1f98
)
Fixes crash in PaintedItem example when using threaded rendering.
author
Yoann Lopes
<yoann.lopes@nokia.com>
Wed, 11 May 2011 13:55:01 +0000
(15:55 +0200)
committer
Yoann Lopes
<yoann.lopes@nokia.com>
Wed, 11 May 2011 13:55:01 +0000
(15:55 +0200)
examples/declarative/painteditem/main.cpp
patch
|
blob
|
history
diff --git
a/examples/declarative/painteditem/main.cpp
b/examples/declarative/painteditem/main.cpp
index
10bd430
..
8502860
100644
(file)
--- a/
examples/declarative/painteditem/main.cpp
+++ b/
examples/declarative/painteditem/main.cpp
@@
-67,6
+67,10
@@
public:
int main(int argc, char ** argv)
{
+#ifdef Q_WS_X11
+ QApplication::setAttribute(Qt::AA_X11InitThreads);
+#endif
+
QApplication app(argc, argv);
qmlRegisterType<MyPaintItem>("MyModule", 1, 0, "MyPaintItem");