OSDN Git Service

Changed creation of QFileSystemModel. Object will now be created when the user first...
[lamexp/LameXP.git] / src / Model_FileSystem.h
index 8e7412a..df15e16 100644 (file)
@@ -33,9 +33,10 @@ public:
        ~QFileSystemModelEx();
 
        virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
-       virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
+       //virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
        virtual void fetchMore(const QModelIndex &parent);
        virtual QModelIndex index(const QString &path, int column = 0) const;
+       virtual void flushCache(void);
 
 private:
        QFileIconProviderEx *m_myIconProvider;
@@ -50,4 +51,5 @@ private:
        static bool hasSubfolders(const QString &path);
        static bool hasSubfoldersCached(const QString &path);
        static void removeFromCache(const QString &path);
+       static void removeAllFromCache(void);
 };