projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5fbbfa
)
Qt can call XInitThreads() if we set the AA_X11InitThreads attribute
author
Mohammed Sameer
<msameer@foolab.org>
Tue, 11 Sep 2012 20:26:43 +0000
(23:26 +0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Tue, 11 Sep 2012 20:26:43 +0000
(23:26 +0300)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
5cb7d81
..
62d6ba6
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-4,7
+4,6
@@
#include <QDeclarativeEngine>
#include <QtDeclarative>
#include <QGLWidget>
-#include <X11/Xlib.h>
#include "imports/plugin.h"
@@
-13,8
+12,7
@@
#include "quillitem.h"
Q_DECL_EXPORT int main(int argc, char *argv[]) {
- XInitThreads();
-
+ QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication app(argc, argv);
QDeclarativeView view;