summaryrefslogtreecommitdiffstats
path: root/filestreewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r--filestreewidget.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/filestreewidget.cpp b/filestreewidget.cpp
new file mode 100644
index 0000000..5b1211d
--- /dev/null
+++ b/filestreewidget.cpp
@@ -0,0 +1,18 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#include "filestreewidget.h"
+#include "smmodelsingleton.h"
+#include "filestreemodel.h"
+
+FilesTreeWidget::FilesTreeWidget(QWidget *parent) : QWidget(parent){
+ mView = new FilesTreeView;
+ mModel = static_cast<FilesTreeModel*>(SmModelSingleton::instance()->model("FilesModel"));
+ mView->setModel(mModel);
+}
+
+FilesTreeView::FilesTreeView(QWidget *parent) : QTreeView(parent) {}