From 0e318bfcf5244dde62e8afa46bd90d68bdaa0534 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Thu, 2 Sep 2010 13:29:29 +0200 Subject: [PATCH] Use raster graphics on X11 by default This will be the default in Qt with 4.8. It is faster and less prone to graphics issues than the X11 engine so we should use it in Creator by default. task-number: QTCREATORBUG-2238 --- src/app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index afc08fc4569..3bf684c8906 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -183,6 +183,9 @@ int main(int argc, char **argv) setrlimit(RLIMIT_NOFILE, &rl); #endif +#ifdef Q_WS_X11 + SharedTools::QtSingleApplication::setGraphicsSystem("raster"); +#endif SharedTools::QtSingleApplication app((QLatin1String(appNameC)), argc, argv); const int threadCount = QThreadPool::globalInstance()->maxThreadCount();