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"
|
|
|
|
#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(
|
2015-03-22 22:32:18 +01:00
|
|
|
"QWidget {"
|
2015-03-22 19:41:59 +01:00
|
|
|
"border-radius: 5px;"
|
2015-03-22 22:32:18 +01:00
|
|
|
"background: white }"
|
|
|
|
"QLabel {border: 2px dashed black; background: gray; "
|
|
|
|
"border-radius: 5px;}"
|
|
|
|
"QLineEdit {border: 2px dashed black;background: dark-gray;"
|
|
|
|
"border-radius: 5px;}"
|
2015-03-22 19:41:59 +01:00
|
|
|
);
|
|
|
|
editor->setStyleSheet(style);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|