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.
NetworkPacketComposer/mainwindow.cpp

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()
{
}