src/widgets/patterneditor.cpp

branch
experimental
changeset 1363
b725b7fb63a5
equal deleted inserted replaced
1353:48374309f3d1 1363:b725b7fb63a5
1 #include "patterneditor.h"
2 #include "patternviewer.h"
3 #include "ui_patterneditor.h"
4
5 PatternEditor::PatternEditor(Pattern& pattern, QWidget* parent) :
6 QMainWindow {parent},
7 ui {*new Ui_PatternEditor},
8 viewer {new PatternViewer {this}},
9 pattern {pattern}
10 {
11 ui.setupUi(this);
12 ui.patternFrame->layout()->addWidget(this->viewer);
13 }
14
15 PatternEditor::~PatternEditor()
16 {
17 delete &this->ui;
18 }

mercurial