source: src/gui/mainwindow.cpp @ 9bbb44e

qt5
Last change on this file since 9bbb44e was 9bbb44e, checked in by korrco <korrco@…>, 12 years ago

support for creating GUI via QtCreator? added

  • Property mode set to 100644
File size: 445 bytes
Line 
1#include "mainwindow.h"
2
3#include <QTreeView>
4#include <QDirModel>
5
6#include <eventmodel.h>
7
8MainWindow::MainWindow(QWidget *parent)
9    : QMainWindow(parent)
10{
11    // open database connection
12    QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
13    db.setDatabaseName("fosdem-test.sqlite");
14    db.open();
15
16    setupUi(this);
17    //TODO Palo: continue
18    //treeView->setModel(new QDirModel);
19    treeView->setModel(new EventModel());
20}
Note: See TracBrowser for help on using the repository browser.