From 934fa4151f48fd12549fe0772cfbc995c6e63034 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 27 Feb 2018 23:28:31 +0100 Subject: [PATCH] qtui: Avoid bogus tr() context warning lupdate in Qt versions prior to 5.6.1 has issues parsing brace- initialization in constructors, and complains about "tr() cannot be called without context". Work around this by explicitly giving the class name as suggested in QTBUG-34128. --- src/qtui/coreconfigwizard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/coreconfigwizard.cpp b/src/qtui/coreconfigwizard.cpp index 4324c45f..a9453fac 100644 --- a/src/qtui/coreconfigwizard.cpp +++ b/src/qtui/coreconfigwizard.cpp @@ -158,7 +158,7 @@ CoreConfigWizard::CoreConfigWizard(CoreConnection *connection, const QVariantLis setModal(true); - setWindowTitle(tr("Core Configuration Wizard")); + setWindowTitle(CoreConfigWizard::tr("Core Configuration Wizard")); setPixmap(QWizard::LogoPixmap, QIcon::fromTheme("quassel", QIcon(":/icons/quassel.png")).pixmap(48)); connect(connection, SIGNAL(coreSetupSuccess()), SLOT(coreSetupSuccess())); -- 2.20.1