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/editorelement.cpp

27 lines
499 B
C++
Raw Normal View History

#include "editorelement.h"
#include <QBoxLayout>
EditorElement::EditorElement(QWidget *parent) : QWidget(parent)
{
this->layout = new QBoxLayout(QBoxLayout::TopToBottom, this);
this->setLayout(layout);
label = new QLabel(this);
hint = new QLabel(this);
edit = new QLineEdit(this);
layout->addWidget(label);
layout->addWidget(hint);
layout->addWidget(edit);
label->setText("test");
hint->setText("another test");
edit->setText("content test");
}
EditorElement::~EditorElement()
{
}