Commit 49b5df41 authored by Sven Brauch's avatar Sven Brauch
Browse files

Use Software scene graph backend for welcome page

BUG:386527
Differential Revision: https://phabricator.kde.org/D8872
parent 37a11f9c
......@@ -44,6 +44,8 @@ target_link_libraries(kdevelop
KF5::Declarative
KF5::IconThemes
KF5::Crash
Qt5::Quick
)
IF(APPLE)
target_link_libraries(kdevelop "-framework CoreFoundation")
......
......@@ -49,6 +49,8 @@
#include <QDBusInterface>
#include <QDBusReply>
#include <QQuickWindow>
#include <shell/core.h>
#include <shell/mainwindow.h>
#include <shell/projectcontroller.h>
......@@ -304,6 +306,13 @@ int main( int argc, char *argv[] )
QElapsedTimer timer;
timer.start();
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
// If possible, use the Software backend for QQuickWidget (currently used in the
// welcome page plugin). This means we don't need OpenGL at all, avoiding issues
// like https://bugs.kde.org/show_bug.cgi?id=386527.
QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software);
#endif
// TODO: Maybe generalize, add KDEVELOP_STANDALONE build option
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
qputenv("KDE_FORK_SLAVES", "1"); // KIO slaves will be forked off instead of being started via DBus
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment