Michaël Lemaire
adaa18c01f
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@295 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
25 lines
402 B
C++
25 lines
402 B
C++
#include "baseinput.h"
|
|
|
|
BaseInput::BaseInput(QWidget* form, QString label):
|
|
QObject(form)
|
|
{
|
|
_label = new QLabel(label);
|
|
|
|
_label->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
|
_label->setWordWrap(true);
|
|
}
|
|
|
|
void BaseInput::updatePreview()
|
|
{
|
|
}
|
|
|
|
void BaseInput::applyValue()
|
|
{
|
|
updatePreview();
|
|
emit(valueChanged());
|
|
}
|
|
|
|
void BaseInput::revert()
|
|
{
|
|
updatePreview();
|
|
}
|