diff options
| author | Laurent Montel <[email protected]> | 2008-08-18 21:50:41 +0000 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2008-08-18 21:50:41 +0000 |
| commit | 46314e0ed7e5d2b585e742368e7e3d8395577485 (patch) | |
| tree | c64b624dfa1db9e8fe3b7f8bf5ef429e5af76f67 | |
| parent | cfe28380063eedb2f9b418215acfe369ea9da5d5 (diff) | |
Pedantic
svn path=/trunk/KDE/kdebase/apps/; revision=849031
| -rw-r--r-- | src/dolphintooltip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphintooltip.cpp b/src/dolphintooltip.cpp index 67b5fd6f5..26935d6a0 100644 --- a/src/dolphintooltip.cpp +++ b/src/dolphintooltip.cpp @@ -44,7 +44,7 @@ void DolphinToolTipItem::setPreview(const KFileItem& fileItem, const QPixmap& pr painter.drawPixmap((PREVIEW_WIDTH - preview.width()) / 2, (PREVIEW_HEIGHT - preview.height()) / 2, preview); setData(Qt::DecorationRole, QIcon(paddedImage));*/ setData(Qt::DecorationRole, QIcon(preview)); -}; +} // Delegate everything to the base class, after re-setting the decorationSize // to the preview size. QSize DolphinBalloonTooltipDelegate::sizeHint(const KStyleOptionToolTip *option, const KToolTipItem *item) const @@ -58,4 +58,4 @@ void DolphinBalloonTooltipDelegate::paint(QPainter *painter, const KStyleOptionT KStyleOptionToolTip updatedStyleOption = *option; updatedStyleOption.decorationSize = QSize(PREVIEW_WIDTH, PREVIEW_HEIGHT); return KFormattedBalloonTipDelegate::paint(painter, &updatedStyleOption, item); -}
\ No newline at end of file +} |
