Added QFileSystemModel for the fileListView or aka treeView

Added QString filters to be used with QFileSystemModel
Added setAsset method as part of getAssetLibrary for reusability
This commit is contained in:
Maxim Stewart 2017-05-30 07:34:06 -05:00
parent b2efa83e17
commit 7a41f2d9bf
1 changed files with 5 additions and 1 deletions

View File

@ -3,10 +3,10 @@
#include <QWidget>
#include "ui_MainWindow.h"
#include "FileInfoWindow.h"
#include <QFileSystemModel>
#include <QByteArray>
#include <QLabel>
struct Material;
class MainWindow : public QMainWindow
@ -26,15 +26,19 @@ private:
int m_curSeverity;
FileInfoWindow* m_infoWindow;
QFileSystemModel* fmodel;
QStringList filters;
// functions
private:
void setupWidgets();
void getAssetLibrary();
void setAsset(QString path);
void searchMeshFiles(QString path);
void openFile();
void takeScreenShot();
void aboutTool();
void setAsset(QString);
protected:
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;