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-04-04 20:06:49 +02:00
|
|
|
#include "guidededitorelement.h"
|
2015-03-22 19:41:59 +01:00
|
|
|
#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");
|
2015-03-22 22:32:18 +01:00
|
|
|
this->setStyleSheet("QWidget {border: 2px dashed red}");
|
2015-03-22 19:41:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
EditorElement::~EditorElement()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|