From 8c047a91eb07c899df6bbadf7469cbc78bfc48c3 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 7 Nov 2009 10:56:06 +0000 Subject: [PATCH] don't fade the label if the width is exactly the text width svn path=/trunk/KDE/kdelibs/; revision=1046037 --- widgets/label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/label.cpp b/widgets/label.cpp index 885c59748..c1bc26592 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -255,7 +255,7 @@ void Label::paint(QPainter *painter, QLabel *native = nativeWidget(); QFontMetrics fm = native->font(); - if (native->wordWrap() || native->text().isEmpty() || size().width() > fm.width(native->text())) { + if (native->wordWrap() || native->text().isEmpty() || size().width() >= fm.width(native->text())) { QGraphicsProxyWidget::paint(painter, option, widget); } else { const int gradientLength = 25;