diff options
author | Arno <am@disconnect.de> | 2010-06-23 21:48:11 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-06-23 21:48:11 +0200 |
commit | 32243b83a02e479e772d7d6fd94ddc35fd7d6880 (patch) | |
tree | 0d5b87479816765fded1c5b1f59da9c7e137b2be /filestreewidget.cpp | |
parent | e8f4f398c60060d4edd09065000d977cf38a9bcc (diff) | |
download | SheMov-32243b83a02e479e772d7d6fd94ddc35fd7d6880.tar.gz SheMov-32243b83a02e479e772d7d6fd94ddc35fd7d6880.tar.bz2 SheMov-32243b83a02e479e772d7d6fd94ddc35fd7d6880.zip |
Start making FilesView work
Introduced filestreewidget, just like seriestreewidget. The connection
is still missing, though.
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r-- | filestreewidget.cpp | 18 |
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) {} |