From 572a5722b06b313a25f2ae8a7f8099a16fadf2e4 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 19 May 2007 14:42:11 +0000 Subject: performance optimization: don't retrieve the meta information immediately when changing the item selection, wait 300 ms until no selection change has been done svn path=/trunk/KDE/kdebase/apps/; revision=666342 --- src/infosidebarpage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index 9fcf449be..c9b15bdac 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -107,6 +107,8 @@ private slots: void showPreview(const KFileItem& item, const QPixmap& pixmap); private: + enum { TimerDelay = 300 }; + /** * Checks whether the an URL is repesented by a bookmark. If yes, * then the bookmark icon and name are shown instead of a preview. @@ -133,7 +135,6 @@ private: bool showMetaInfo(const QString& key) const; private: - bool m_multipleSelection; bool m_pendingPreview; QTimer* m_timer; KUrl m_shownUrl; -- cgit v1.3