From 32243b83a02e479e772d7d6fd94ddc35fd7d6880 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 23 Jun 2010 21:48:11 +0200 Subject: Start making FilesView work Introduced filestreewidget, just like seriestreewidget. The connection is still missing, though. --- filestreewidget.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 filestreewidget.cpp (limited to 'filestreewidget.cpp') 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(SmModelSingleton::instance()->model("FilesModel")); + mView->setModel(mModel); +} + +FilesTreeView::FilesTreeView(QWidget *parent) : QTreeView(parent) {} -- cgit v1.2.3-70-g09d2