/* 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(SmModelSingleton::instance()->model("FilesModel")); mView->setModel(mModel); } FilesTreeView::FilesTreeView(QWidget *parent) : QTreeView(parent) {}