┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-12-12 06:55:26 +0000
committerPeter Penz <[email protected]>2008-12-12 06:55:26 +0000
commit85aec92f819eae5a6189bd3ec25cff44dce3ae19 (patch)
tree3e03212e14973b71a6590fde819082a15a064c66 /src/infosidebarpage.cpp
parentabce76721daaf6b785048a1fb9abd622236edd74 (diff)
SVN_SILENT: removed trailing spaces
svn path=/trunk/KDE/kdebase/apps/; revision=895978
Diffstat (limited to 'src/infosidebarpage.cpp')
-rw-r--r--src/infosidebarpage.cpp12
1 files changed, 6 insertions, 6 deletions
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);