From 85aec92f819eae5a6189bd3ec25cff44dce3ae19 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 12 Dec 2008 06:55:26 +0000 Subject: SVN_SILENT: removed trailing spaces svn path=/trunk/KDE/kdebase/apps/; revision=895978 --- src/infosidebarpage.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/infosidebarpage.cpp') diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index 64d5d44c2..fc34bac7d 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -144,7 +144,7 @@ void InfoSidebarPage::requestDelayedItemInfo(const KFileItem& item) m_urlCandidate = item.url(); m_fileItem = item; m_infoTimer->start(); - } + } } } @@ -488,26 +488,26 @@ void InfoSidebarPage::setNameLabelText(const QString& text) { QTextOption textOption; textOption.setWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere); - + QTextLayout textLayout(text); textLayout.setFont(m_nameLabel->font()); textLayout.setTextOption(textOption); - + QString wrappedText; wrappedText.reserve(text.length()); - + // wrap the text to fit into the width of m_nameLabel textLayout.beginLayout(); QTextLine line = textLayout.createLine(); while (line.isValid()) { line.setLineWidth(m_nameLabel->width()); wrappedText += text.mid(line.textStart(), line.textLength()); - + line = textLayout.createLine(); if (line.isValid()) { wrappedText += QChar::LineSeparator; } - } + } textLayout.endLayout(); m_nameLabel->setText(wrappedText); -- cgit v1.3