Getting closer to a subanalysis mode
[mussa.git] / qui / SubanalysisWindow.cpp
1 #include "qui/SubanalysisWindow.hpp"
2
3 #include <QVBoxLayout>
4 #include <QHBoxLayout>
5
6 SubanalysisWindow::SubanalysisWindow(QWidget *parent)
7   : QWidget(parent),
8     table(0),
9     ok(0),
10     cancel(0)
11 {
12   //model.setStringList(string_list);
13
14   QHBoxLayout *buttonLayout = new QHBoxLayout();
15   QVBoxLayout *verticalLayout = new QVBoxLayout();
16
17   ok = new QPushButton(tr("&OK"), this);
18   cancel = new QPushButton(tr("Cancel"), this);
19   table = new QTableView(this);
20   table->setModel(&model);
21
22   buttonLayout->addWidget(ok);
23   buttonLayout->addWidget(cancel);
24   verticalLayout->addWidget(table);
25   verticalLayout->addLayout(buttonLayout);
26   setLayout(verticalLayout);
27 }