diff options
| author | Peter Penz <[email protected]> | 2009-06-20 18:35:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-06-20 18:35:08 +0000 |
| commit | 6862c3a617792bd04e3396b6afdb5df2199a67b2 (patch) | |
| tree | c4ab178d7dfbdb86b3ab3c7604b1d4f59f1ac187 /src/tooltips/tooltipmanager.h | |
| parent | 7cd07bfa563b700b29ee5dc6c49375439ba6da80 (diff) | |
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
Diffstat (limited to 'src/tooltips/tooltipmanager.h')
| -rw-r--r-- | src/tooltips/tooltipmanager.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
