diff options
| author | Peter Penz <[email protected]> | 2010-03-27 13:08:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-03-27 13:08:46 +0000 |
| commit | 47e80ef6b9ce27b6acb252ceb412fc3260b85c53 (patch) | |
| tree | ef9c339bc4715f17f56f7e03a5eeffc1de75993f /src/tooltips/tooltipmanager.h | |
| parent | dd743f9d98244ced35f80aeb6349630156f796be (diff) | |
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
Diffstat (limited to 'src/tooltips/tooltipmanager.h')
| -rw-r--r-- | src/tooltips/tooltipmanager.h | 11 |
1 files changed, 5 insertions, 6 deletions
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; |
