28 lines
625 B
C++
28 lines
625 B
C++
|
#include "mainwindow.h"
|
||
|
#include "../QtGuidedEditor/qgewidget.h"
|
||
|
#include "flowlayout.h"
|
||
|
|
||
|
MainWindow::MainWindow(QWidget *parent)
|
||
|
: QMainWindow(parent)
|
||
|
{
|
||
|
list = new QList<EditorElement*>();
|
||
|
editor = new QWidget(this);
|
||
|
centralLayout = new FlowLayout(editor);
|
||
|
editor->setLayout(centralLayout);
|
||
|
centralLayout->addWidget(new EditorElement(this));
|
||
|
centralLayout->addWidget(new EditorElement(this));
|
||
|
this->setCentralWidget(editor);
|
||
|
QString style = QString(
|
||
|
"QWidget {border: 2px dashed black;"
|
||
|
"border-radius: 5px;"
|
||
|
"background: gray }"
|
||
|
);
|
||
|
editor->setStyleSheet(style);
|
||
|
|
||
|
}
|
||
|
|
||
|
MainWindow::~MainWindow()
|
||
|
{
|
||
|
|
||
|
}
|