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