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 "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;
|
||||
|
|
Loading…
Reference in New Issue