From: Laurent Montel Date: Mon, 18 Aug 2008 21:50:41 +0000 (+0000) Subject: Pedantic X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/46314e0ed7e5d2b585e742368e7e3d8395577485 Pedantic svn path=/trunk/KDE/kdebase/apps/; revision=849031 --- 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 +}