diff options
| author | Peter Penz <[email protected]> | 2010-08-02 06:39:36 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-08-02 06:39:36 +0000 |
| commit | 959642ace563d59d5fada0961fd4c79c55fccff6 (patch) | |
| tree | 05d812cb4881a113e9d74c6e641470574a3cd6b0 /src/views/tooltips/filemetadatatooltip.h | |
| parent | 7ad7aefbf1ef0efc044b6af8f65327e386632ff9 (diff) | |
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
Diffstat (limited to 'src/views/tooltips/filemetadatatooltip.h')
| -rw-r--r-- | src/views/tooltips/filemetadatatooltip.h | 14 |
1 files changed, 13 insertions, 1 deletions
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); |
