From ab9fed96187724680f19e706168b8f22d7b46609 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 20 Nov 2008 19:57:56 +0000 Subject: fixed wrapping of the name label (QLabel only supports wrapping on words) CCBUG: 168505 svn path=/trunk/KDE/kdebase/apps/; revision=886979 --- src/infosidebarpage.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index ff7e1d0d7..4ff637fd5 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -164,6 +164,14 @@ private: * Returns true, if \a url is equal to the shown URL m_shownUrl. */ bool isEqualToShownUrl(const KUrl& url) const; + + /** + * Sets the text for the label \a m_nameLabel and assures that the + * text is split in a way that it can be wrapped within the + * label width (QLabel::setWordWrap() does not work if the + * text represents one extremely long word). + */ + void setNameLabelText(const QString& text); void init(); -- cgit v1.3.1