From 959642ace563d59d5fada0961fd4c79c55fccff6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 2 Aug 2010 06:39:36 +0000 Subject: Remove the workaround to show the tooltip temporary on a hidden position, to have a valid layout. Based on Maciej Mrozowski's patch this is now done by postponing the showing of the tooltip until the meta-data and the preview has been received. CCBUG: 245491 svn path=/trunk/KDE/kdebase/apps/; revision=1158057 --- src/views/tooltips/filemetadatatooltip.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/views/tooltips/filemetadatatooltip.h') diff --git a/src/views/tooltips/filemetadatatooltip.h b/src/views/tooltips/filemetadatatooltip.h index d5356cd23..6fb888bf4 100644 --- a/src/views/tooltips/filemetadatatooltip.h +++ b/src/views/tooltips/filemetadatatooltip.h @@ -40,14 +40,26 @@ public: virtual ~FileMetaDataToolTip(); void setPreview(const QPixmap& pixmap); - const QPixmap* preview() const; + QPixmap preview() const; void setName(const QString& name); QString name() const; + /** + * Sets the items for which the meta data should be shown. + * The signal metaDataRequestFinished() will be emitted, + * as soon as the meta data for the items has been received. + */ void setItems(const KFileItemList& items); KFileItemList items() const; +signals: + /** + * Is emitted after the meta data has been received for the items + * set by FileMetaDataToolTip::setItems(). + */ + void metaDataRequestFinished(); + protected: virtual void paintEvent(QPaintEvent* event); -- cgit v1.3.1