QFileSystemModelEx::~QFileSystemModelEx()
{
+ removeAllFromCache();
LAMEXP_DELETE(m_myIconProvider);
}
return QModelIndex();
}
+void QFileSystemModelEx::flushCache(void)
+{
+ removeAllFromCache();
+}
+
/* ------------------------ */
/* STATIC FUNCTIONS BELOW */
/* ------------------------ */
s_hasSubfolderCache.remove(path);
}
+void QFileSystemModelEx::removeAllFromCache(void)
+{
+ QMutexLocker lock(&s_hasSubfolderMutex);
+ s_hasSubfolderCache.clear();
+}
+
bool QFileSystemModelEx::hasSubfolders(const QString &path)
{
if(!FindFirstFileExInitialized)