Commit d6dc89f5 authored by Volker Krause's avatar Volker Krause
Browse files

Remove silencing of QML warnings for Qt 5.12 compatibility

We no longer need that and can use new Qt 5.15 syntax.
parent 5d593212
Pipeline #227024 passed with stage
in 8 minutes and 23 seconds
......@@ -38,21 +38,6 @@
#include <QDBusConnectionInterface>
#include <QDir>
static QLoggingCategory::CategoryFilter oldCategoryFilter;
// Qt 5.15 introduces a new syntax for connections
// framework code can't port away due to needing Qt5.12
// this filters out the warnings
// Remove this once we depend on Qt5.15 in frameworks
void filterConnectionSyntaxWarning(QLoggingCategory *category)
{
if (qstrcmp(category->categoryName(), "qt.qml.connections") == 0) {
category->setEnabled(QtWarningMsg, false);
} else if (oldCategoryFilter) {
oldCategoryFilter(category);
}
}
int main(int argc, char *argv[])
{
#if QT_CONFIG(qml_debug)
......@@ -78,8 +63,6 @@ int main(int argc, char *argv[])
QQuickWindow::setDefaultAlphaBuffer(true);
oldCategoryFilter = QLoggingCategory::installFilter(filterConnectionSyntaxWarning);
qputenv("QT_WAYLAND_DISABLE_FIXED_POSITIONS", {});
const bool qpaVariable = qEnvironmentVariableIsSet("QT_QPA_PLATFORM");
KWorkSpace::detectPlatform(argc, argv);
......
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