summaryrefslogtreecommitdiffstats
path: root/filestreewidget.cpp
blob: 5b1211dd5b8cc70d53be853e5cabe0e37adca1dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) {}