From ec9b47395355d4b44c9d92ef1733fd206bb208bb Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Tue, 20 Aug 2013 14:14:09 +0200 Subject: Don't break translations for word wrapping. Change-Id: I93446f7786145f3e82d3e03d3344b19ac7425b0b Reviewed-by: Kai Koehne --- src/sdk/installerbasecommons.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdk/installerbasecommons.cpp b/src/sdk/installerbasecommons.cpp index f544dd296..19b76ce7c 100644 --- a/src/sdk/installerbasecommons.cpp +++ b/src/sdk/installerbasecommons.cpp @@ -372,6 +372,7 @@ TargetDirectoryPageImpl::TargetDirectoryPageImpl(PackageManagerCore *core) m_warningLabel = new QLabel(this); m_warningLabel->setPalette(palette); + m_warningLabel->setWordWrap(true); insertWidget(m_warningLabel, QLatin1String("MessageLabel"), 2); } @@ -412,7 +413,7 @@ QString TargetDirectoryPageImpl::targetDirWarning() const // check if there are not allowed characters in the target path if (dir.contains(QRegExp(ambiguousChars))) { - return TargetDirectoryPageImpl::tr("The installation path must not contain %1, \n" + return TargetDirectoryPageImpl::tr("The installation path must not contain %1, " "please specify a valid folder.").arg(ambiguousChars); } -- cgit v1.2.3