[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/apps/dolphin/src/panels/information
From:       Peter Penz <peter.penz () gmx ! at>
Date:       2010-06-12 12:58:02
Message-ID: 20100612130513.48C73AC8CF () svn ! kde ! org
[Download RAW message or body]

SVN commit 1137340 by ppenz:

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>".

 M  +2 -1      informationpanelcontent.cpp  


--- trunk/KDE/kdebase/apps/dolphin/src/panels/information/informationpanelcontent.cpp \
#1137339:1137340 @@ -42,6 +42,7 @@
 #include <QPointer>
 #include <QResizeEvent>
 #include <QScrollArea>
+#include <QTextDocument>
 #include <QTextLayout>
 #include <QTextLine>
 #include <QTimer>
@@ -375,7 +376,7 @@
     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());


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic