Changeset View
Changeset View
Standalone View
Standalone View
src/views/draganddrophelper.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 35 | public: | |||
---|---|---|---|---|---|
49 | static KIO::DropJob* dropUrls(const QUrl& destUrl, | 49 | static KIO::DropJob* dropUrls(const QUrl& destUrl, | ||
50 | QDropEvent* event, | 50 | QDropEvent* event, | ||
51 | QWidget *window); | 51 | QWidget *window); | ||
52 | 52 | | |||
53 | /** | 53 | /** | ||
54 | * @return True if destUrl is contained in the urls parameter. | 54 | * @return True if destUrl is contained in the urls parameter. | ||
55 | */ | 55 | */ | ||
56 | static bool urlListMatchesUrl(const QList<QUrl>& urls, const QUrl& destUrl); | 56 | static bool urlListMatchesUrl(const QList<QUrl>& urls, const QUrl& destUrl); | ||
57 | | ||||
58 | /** | ||||
59 | * clear the internal cache. | ||||
60 | */ | ||||
61 | static void clearCacheUrlListMatchesUrl(); | ||||
elvisangelaccio: Please call it `clearUrlListMatchesUrlCache()`, to make it slightly more descriptive. | |||||
62 | private: | ||||
63 | /** | ||||
64 | * Stores the results of the expensive checks made in urlListMatchesUrl. | ||||
65 | */ | ||||
66 | static QHash<QUrl, bool> m_cacheUrlListMatchesUrl; | ||||
57 | }; | 67 | }; | ||
58 | 68 | | |||
59 | #endif | 69 | #endif |
Please call it clearUrlListMatchesUrlCache(), to make it slightly more descriptive.