┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/informationpanelcontent.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-06-12 13:05:13 +0000
committerPeter Penz <[email protected]>2010-06-12 13:05:13 +0000
commit30a4fb0cf80ca5bab3082edb544bf87c9169a4f0 (patch)
tree6cefdef66f9d8660d6dd862527d9723169e218bb /src/panels/information/informationpanelcontent.cpp
parentd7b275ee2e36fd46fa2ec2b23a74f876a5dcd988 (diff)
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 "<html>9 items selected</html>".
svn path=/trunk/KDE/kdebase/apps/; revision=1137340
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
-rw-r--r--src/panels/information/informationpanelcontent.cpp3
1 files changed, 2 insertions, 1 deletions
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 <QPointer>
#include <QResizeEvent>
#include <QScrollArea>
+#include <QTextDocument>
#include <QTextLayout>
#include <QTextLine>
#include <QTimer>
@@ -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());