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:
parent
b2efa83e17
commit
7a41f2d9bf
|
@ -3,10 +3,10 @@
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include "ui_MainWindow.h"
|
#include "ui_MainWindow.h"
|
||||||
#include "FileInfoWindow.h"
|
#include "FileInfoWindow.h"
|
||||||
|
#include <QFileSystemModel>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
|
|
||||||
struct Material;
|
struct Material;
|
||||||
|
|
||||||
class MainWindow : public QMainWindow
|
class MainWindow : public QMainWindow
|
||||||
|
@ -26,15 +26,19 @@ private:
|
||||||
int m_curSeverity;
|
int m_curSeverity;
|
||||||
|
|
||||||
FileInfoWindow* m_infoWindow;
|
FileInfoWindow* m_infoWindow;
|
||||||
|
QFileSystemModel* fmodel;
|
||||||
|
QStringList filters;
|
||||||
|
|
||||||
// functions
|
// functions
|
||||||
private:
|
private:
|
||||||
void setupWidgets();
|
void setupWidgets();
|
||||||
void getAssetLibrary();
|
void getAssetLibrary();
|
||||||
|
void setAsset(QString path);
|
||||||
void searchMeshFiles(QString path);
|
void searchMeshFiles(QString path);
|
||||||
void openFile();
|
void openFile();
|
||||||
void takeScreenShot();
|
void takeScreenShot();
|
||||||
void aboutTool();
|
void aboutTool();
|
||||||
|
void setAsset(QString);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
|
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
|
||||||
|
|
Loading…
Reference in New Issue