From: Peter Penz Date: Sat, 12 Jun 2010 13:05:13 +0000 (+0000) Subject: Don't do a pre-process wrapping of the Information Panel headline, if it is a rich... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/30a4fb0cf80ca5bab3082edb544bf87c9169a4f0 Don't do a pre-process wrapping of the Information Panel headline, if it is a rich text. This fixes the issue, that selecting multiple files leads to an output like "9 items selected". svn path=/trunk/KDE/kdebase/apps/; revision=1137340 --- diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 8d8c21549..5254eb2eb 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include @@ -375,7 +376,7 @@ void InformationPanelContent::setNameLabelText(const QString& text) QTextOption textOption; textOption.setWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere); - const QString processedText = KStringHandler::preProcessWrap(text); + const QString processedText = Qt::mightBeRichText(text) ? text : KStringHandler::preProcessWrap(text); QTextLayout textLayout(processedText); textLayout.setFont(m_nameLabel->font());