support for creating GUI via QtCreator added
[toast/confclerk.git] / src / gui / mainwindow.cpp
index e0f20d49847b5b2c56d6bd3558f32250b582dc03..bf48d91a4a338669eb91dedb1626cf816d08c858 100644 (file)
@@ -1,6 +1,7 @@
 #include "mainwindow.h"
 
 #include <QTreeView>
+#include <QDirModel>
 
 #include <eventmodel.h>
 
@@ -12,8 +13,8 @@ MainWindow::MainWindow(QWidget *parent)
     db.setDatabaseName("fosdem-test.sqlite");
     db.open();
 
-    QTreeView * view = new QTreeView(parent);
-    this->setCentralWidget(view);
-
-    view->setModel(new EventModel());
+    setupUi(this);
+    //TODO Palo: continue
+    //treeView->setModel(new QDirModel);
+    treeView->setModel(new EventModel());
 }