]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanelcontent.cpp
Don't do a pre-process wrapping of the Information Panel headline, if it is a rich...
[dolphin.git] / src / panels / information / informationpanelcontent.cpp
index 8d8c21549d6a5c1e03a0715da21433e4321c58e4..5254eb2eb417286d18a3950b9d813bfb93ff2786 100644 (file)
@@ -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());