Changeset 9bbb44e


Ignore:
Timestamp:
01/07/10 17:07:29 (12 years ago)
Author:
korrco <korrco@…>
Branches:
master, qt5
Children:
5034a83
Parents:
d0d0a66
Message:

support for creating GUI via QtCreator? added

Location:
src/gui
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/gui/gui.pro

    rd0d0a66 r9bbb44e  
    1616# (which means they need to be added to the test module as well,
    1717# but I am sure you can live with that for the time being).
     18FORMS += mainwindow.ui
    1819SOURCES += mainwindow.cpp
    1920HEADERS += mainwindow.h
  • src/gui/mainwindow.cpp

    rd0d0a66 r9bbb44e  
    22
    33#include <QTreeView>
     4#include <QDirModel>
    45
    56#include <eventmodel.h>
     
    1314    db.open();
    1415
    15     QTreeView * view = new QTreeView(parent);
    16     this->setCentralWidget(view);
    17 
    18     view->setModel(new EventModel());
     16    setupUi(this);
     17    //TODO Palo: continue
     18    //treeView->setModel(new QDirModel);
     19    treeView->setModel(new EventModel());
    1920}
  • src/gui/mainwindow.h

    rd0d0a66 r9bbb44e  
    44#include <QtGui/QMainWindow>
    55
    6 class MainWindow : public QMainWindow
     6#include <ui_mainwindow.h>
     7
     8class MainWindow : public QMainWindow, private Ui::MainWindow
    79{
    810    Q_OBJECT
Note: See TracChangeset for help on using the changeset viewer.