27 lines
499 B
C++
27 lines
499 B
C++
|
#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()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|