diff options
Diffstat (limited to 'src/views/draganddrophelper.h')
| -rw-r--r-- | src/views/draganddrophelper.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/views/draganddrophelper.h b/src/views/draganddrophelper.h index e47f83ca8..0c7eadc6c 100644 --- a/src/views/draganddrophelper.h +++ b/src/views/draganddrophelper.h @@ -54,6 +54,16 @@ public: * @return True if destUrl is contained in the urls parameter. */ static bool urlListMatchesUrl(const QList<QUrl>& urls, const QUrl& destUrl); + + /** + * clear the internal cache. + */ + static void clearUrlListMatchesUrlCache(); +private: + /** + * Stores the results of the expensive checks made in urlListMatchesUrl. + */ + static QHash<QUrl, bool> m_urlListMatchesUrlCache; }; #endif |
