summaryrefslogtreecommitdiffstats
path: root/gui/OneSixModEditDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/OneSixModEditDialog.cpp')
-rw-r--r--gui/OneSixModEditDialog.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/gui/OneSixModEditDialog.cpp b/gui/OneSixModEditDialog.cpp
index ab6ad5f0..f778127f 100644
--- a/gui/OneSixModEditDialog.cpp
+++ b/gui/OneSixModEditDialog.cpp
@@ -22,6 +22,8 @@
#include <QDebug>
#include <QEvent>
#include <QKeyEvent>
+#include "logic/OneSixVersion.h"
+#include <logic/EnabledItemFilter.h>
OneSixModEditDialog::OneSixModEditDialog(OneSixInstance * inst, QWidget *parent):
m_inst(inst),
@@ -29,9 +31,15 @@ OneSixModEditDialog::OneSixModEditDialog(OneSixInstance * inst, QWidget *parent)
ui(new Ui::OneSixModEditDialog)
{
ui->setupUi(this);
- //TODO: libraries!
+ //libraries!
{
- // yeah... here be the real dragons.
+ m_version = m_inst->getFullVersion();
+
+ auto filter = new EnabledItemFilter(this);
+ filter->setActive(true);
+ filter->setSourceModel(m_version.data());
+ ui->libraryTreeView->setModel(filter);
+ ui->libraryTreeView->installEventFilter( this );
}
// Loader mods
{