diff options
| author | Peter Penz <[email protected]> | 2010-06-12 13:05:13 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-06-12 13:05:13 +0000 |
| commit | 30a4fb0cf80ca5bab3082edb544bf87c9169a4f0 (patch) | |
| tree | 6cefdef66f9d8660d6dd862527d9723169e218bb /src/panels | |
| parent | d7b275ee2e36fd46fa2ec2b23a74f876a5dcd988 (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')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 3 |
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()); |
