Getting closer to a subanalysis mode
[mussa.git] / qui / SubanalysisWindow.cpp
index bf32cd6e80aceb1a4cabdc8be846337d5d877e30..c6d0d13b71033438d405c4d02898a8df5ea22644 100644 (file)
@@ -1,27 +1,27 @@
 #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);
 }