From 47e80ef6b9ce27b6acb252ceb412fc3260b85c53 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 27 Mar 2010 13:08:46 +0000 Subject: Don't recreate and destroy the tooltip widget on each show/hide operation, just use set the widget visible/invisible and update the content instead svn path=/trunk/KDE/kdebase/apps/; revision=1107992 --- src/tooltips/tooltipmanager.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/tooltips/tooltipmanager.h') diff --git a/src/tooltips/tooltipmanager.h b/src/tooltips/tooltipmanager.h index e1f9770c3..9de602269 100644 --- a/src/tooltips/tooltipmanager.h +++ b/src/tooltips/tooltipmanager.h @@ -27,6 +27,7 @@ class DolphinModel; class DolphinSortFilterProxyModel; +class FileMetaDataToolTip; class QAbstractItemView; class QModelIndex; class QTimer; @@ -69,12 +70,7 @@ private slots: private: void showToolTip(const QPixmap& pixmap); - /** - * Creates widget that represents the tip content having - * an icon and the meta data information. - */ - QWidget* createTipContent(const QPixmap& pixmap) const; - +private: QAbstractItemView* m_view; DolphinModel* m_dolphinModel; DolphinSortFilterProxyModel* m_proxyModel; @@ -82,6 +78,9 @@ private: QTimer* m_timer; QTimer* m_previewTimer; QTimer* m_waitOnPreviewTimer; + + FileMetaDataToolTip* m_fileMetaDataToolTip; + KFileItem m_item; QRect m_itemRect; bool m_generatingPreview; -- cgit v1.3