Commit bac26d5d authored by Gustavo Carneiro's avatar Gustavo Carneiro
Browse files

Remove code for pre Qt5.11 versions, since minimum is now Qt5.12

parent 5ef0925e
......@@ -97,26 +97,9 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char *argv[])
needToDeleteQApplication = true;
#if defined(Q_OS_LINUX) && (QT_VERSION < QT_VERSION_CHECK(5, 11, 2))
// Workaround for
// See also
// The Qt glib event loop doesn't let timers deliver events if there are a
// lot of other events.
const QByteArray qtUseGLibOld = qgetenv("QT_NO_GLIB");
qputenv("QT_NO_GLIB", "1");
auto app = new QApplication(argc, argv);
app->setStyle(new MenuStyle());
#if defined(Q_OS_LINUX) && (QT_VERSION < QT_VERSION_CHECK(5, 11, 2))
if (qtUseGLibOld.isNull()) {
} else {
qputenv("QT_NO_GLIB", qtUseGLibOld);
#if defined(Q_OS_MACOS)
// this ensures that Ctrl and Meta are not swapped, so CTRL-C and friends
// will work correctly in the terminal
Supports Markdown
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