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
KStyleOptionToolTip updatedStyleOption = *option;
updatedStyleOption.decorationSize = QSize(PREVIEW_WIDTH, PREVIEW_HEIGHT);
return KFormattedBalloonTipDelegate::paint(painter, &updatedStyleOption, item);
-}
\ No newline at end of file
+}