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

32 lines
779 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-radius: 5px;"
"background: white }"
"QLabel {border: 2px dashed black; background: gray; "
"border-radius: 5px;}"
"QLineEdit {border: 2px dashed black;background: dark-gray;"
"border-radius: 5px;}"
);
editor->setStyleSheet(style);
}
MainWindow::~MainWindow()
{
}