┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorWeng Xuetian <[email protected]>2013-01-27 14:13:04 -0500
committerWeng Xuetian <[email protected]>2013-01-27 14:13:04 -0500
commitef248162d028fd96e974da9fb7a8fb5b3336a8d6 (patch)
tree95cbd08c517e8ec032bebe4927844df31b9b083e /src/panels
parent1bd91417dbb7752795ca763d221a7e39c99985aa (diff)
parent2045a64ec61adcd57fcf6b9313f2b004df713d71 (diff)
Merge branch 'KDE/4.10'
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/information/informationpanelcontent.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp
index 9b0dd0092..0c4c62fc7 100644
--- a/src/panels/information/informationpanelcontent.cpp
+++ b/src/panels/information/informationpanelcontent.cpp
@@ -105,7 +105,6 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) :
QFont font = m_nameLabel->font();
font.setBold(true);
m_nameLabel->setFont(font);
- m_nameLabel->setTextFormat(Qt::PlainText);
m_nameLabel->setAlignment(Qt::AlignHCenter);
m_nameLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
@@ -164,7 +163,7 @@ void InformationPanelContent::showItem(const KFileItem& item)
const KUrl itemUrl = item.url();
const bool isSearchUrl = itemUrl.protocol().contains("search") && item.nepomukUri().isEmpty();
if (!applyPlace(itemUrl)) {
- setNameLabelText(item.text());
+ setNameLabelText(Qt::escape(item.text()));
if (isSearchUrl) {
// in the case of a search-URL the URL is not readable for humans
// (at least not useful to show in the Information Panel)
@@ -362,7 +361,7 @@ bool InformationPanelContent::applyPlace(const KUrl& url)
for (int i = 0; i < count; ++i) {
const PlacesItem* item = m_placesItemModel->placesItem(i);
if (item->url().equals(url, KUrl::CompareWithoutTrailingSlash)) {
- setNameLabelText(item->text());
+ setNameLabelText(Qt::escape(item->text()));
m_preview->setPixmap(KIcon(item->icon()).pixmap(128, 128));
return true;
}