From 6862c3a617792bd04e3396b6afdb5df2199a67b2 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 20 Jun 2009 18:35:08 +0000 Subject: Simplify the handling of previews: Create the tooltip as early as possible even if the preview has not been finished yet. Previously an empty area has been shown instead of a default icon, but also in this case the size of the tooltip will change as soon as the preview is received -> just show the default icon as early as possible. svn path=/trunk/KDE/kdebase/apps/; revision=984441 --- src/tooltips/tooltipmanager.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/tooltips/tooltipmanager.h') diff --git a/src/tooltips/tooltipmanager.h b/src/tooltips/tooltipmanager.h index 02de5a005..e9b5cac6e 100644 --- a/src/tooltips/tooltipmanager.h +++ b/src/tooltips/tooltipmanager.h @@ -65,7 +65,7 @@ private slots: void prepareToolTip(); void startPreviewJob(); void setPreviewPix(const KFileItem& item, const QPixmap& pix); - void previewFailed(const KFileItem& item); + void previewFailed(); private: void showToolTip(const QIcon& icon, const QString& text); @@ -79,10 +79,9 @@ private: QTimer* m_waitOnPreviewTimer; KFileItem m_item; QRect m_itemRect; - bool m_preview; bool m_generatingPreview; - int m_previewPass; - QPixmap m_pix; + bool m_hasDefaultIcon; + QPixmap m_previewPixmap; }; #endif -- cgit v1.3