diff options
| author | Peter Penz <[email protected]> | 2008-12-12 06:55:26 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-12 06:55:26 +0000 |
| commit | 85aec92f819eae5a6189bd3ec25cff44dce3ae19 (patch) | |
| tree | 3e03212e14973b71a6590fde819082a15a064c66 /src/kformattedballoontipdelegate.cpp | |
| parent | abce76721daaf6b785048a1fb9abd622236edd74 (diff) | |
SVN_SILENT: removed trailing spaces
svn path=/trunk/KDE/kdebase/apps/; revision=895978
Diffstat (limited to 'src/kformattedballoontipdelegate.cpp')
| -rw-r--r-- | src/kformattedballoontipdelegate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kformattedballoontipdelegate.cpp b/src/kformattedballoontipdelegate.cpp index 99fd4dfc1..140c90ef4 100644 --- a/src/kformattedballoontipdelegate.cpp +++ b/src/kformattedballoontipdelegate.cpp @@ -37,11 +37,11 @@ QSize KFormattedBalloonTipDelegate::sizeHint(const KStyleOptionToolTip *option, QTextDocument doc; doc.setHtml(item->text()); const QIcon icon = item->icon(); - + const QSize iconSize = icon.isNull() ? QSize(0, 0) : icon.actualSize(option->decorationSize); const QSize docSize = doc.size().toSize(); QSize contentSize = iconSize + docSize; - + // assure that the content height is large enough for the icon and the document contentSize.setHeight(iconSize.height() > doc.size().height() ? iconSize.height() : doc.size().height()); return contentSize + QSize(Border * 3, Border * 2); @@ -59,7 +59,7 @@ void KFormattedBalloonTipDelegate::paint(QPainter *painter, const QColor toColor = option->palette.brush(QPalette::ToolTipBase).color(); const QColor fromColor = KColorScheme::shade(toColor, KColorScheme::LightShade, 0.2); - + QLinearGradient gradient(option->rect.topLeft(), option->rect.bottomLeft()); gradient.setColorAt(0.0, fromColor); gradient.setColorAt(1.0, toColor); @@ -84,7 +84,7 @@ void KFormattedBalloonTipDelegate::paint(QPainter *painter, bitmap.fill(Qt::transparent); QPainter p(&bitmap); doc.drawContents(&p); - + const QRect docRect(QPoint(x, y), doc.size().toSize()); painter->drawPixmap(docRect, bitmap); } |
