This repository has been archived on 2020-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
2015-03-22 19:41:59 +01:00
|
|
|
#include "mainwindow.h"
|
2015-04-04 20:06:49 +02:00
|
|
|
#include <QPushButton>
|
2015-03-22 19:41:59 +01:00
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
|
|
: QMainWindow(parent)
|
|
|
|
{
|
2015-04-04 20:06:49 +02:00
|
|
|
editor = new GuidedEditor(this);
|
2015-03-22 19:41:59 +01:00
|
|
|
this->setCentralWidget(editor);
|
2015-04-04 20:06:49 +02:00
|
|
|
dockWidget = new QDockWidget(this);
|
|
|
|
this->addDockWidget(Qt::LeftDockWidgetArea, dockWidget);
|
|
|
|
|
|
|
|
// dockwidget
|
|
|
|
QVBoxLayout* dockLayout = new QVBoxLayout(dockWidget);
|
|
|
|
dockWidget->setLayout(dockLayout);
|
|
|
|
QPushButton* button = new QPushButton(dockWidget);
|
|
|
|
button->setText("add");
|
|
|
|
dockLayout->addWidget(button);
|
|
|
|
this->connect(button, &QPushButton::pressed,editor, &GuidedEditor::addElement);
|
|
|
|
|
2015-03-22 19:41:59 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|