#include "qui/SubanalysisWindow.hpp"
-#include <QTextEdit>
-#include <QPushButton>
-
#include <QVBoxLayout>
#include <QHBoxLayout>
SubanalysisWindow::SubanalysisWindow(QWidget *parent)
: QWidget(parent),
- text(0),
+ table(0),
ok(0),
cancel(0)
{
+ //model.setStringList(string_list);
+
QHBoxLayout *buttonLayout = new QHBoxLayout();
QVBoxLayout *verticalLayout = new QVBoxLayout();
ok = new QPushButton(tr("&OK"), this);
cancel = new QPushButton(tr("Cancel"), this);
- text = new QTextEdit(this);
+ table = new QTableView(this);
+ table->setModel(&model);
buttonLayout->addWidget(ok);
buttonLayout->addWidget(cancel);
- verticalLayout->addWidget(text);
+ verticalLayout->addWidget(table);
verticalLayout->addLayout(buttonLayout);
setLayout(verticalLayout);
}