27 lines
619 B
C++
27 lines
619 B
C++
#include "mainwindow.h"
|
|
#include <QPushButton>
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
: QMainWindow(parent)
|
|
{
|
|
editor = new GuidedEditorView(this);
|
|
this->setCentralWidget(editor);
|
|
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, &GuidedEditorView::addElement);
|
|
|
|
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
|
|
}
|