2012-01-05 18:39:17 +00:00
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
|
|
BaseInput::BaseInput(QWidget* form, QString label):
|
|
|
|
QObject(form)
|
|
|
|
{
|
|
|
|
_label = new QLabel(label);
|
|
|
|
}
|
2012-01-05 19:41:10 +00:00
|
|
|
|
2012-01-08 10:31:01 +00:00
|
|
|
void BaseInput::updatePreview()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-01-05 19:41:10 +00:00
|
|
|
void BaseInput::applyValue()
|
|
|
|
{
|
2012-01-08 10:31:01 +00:00
|
|
|
updatePreview();
|
2012-01-05 19:41:10 +00:00
|
|
|
emit(valueChanged());
|
|
|
|
}
|
2012-01-08 10:31:01 +00:00
|
|
|
|
|
|
|
void BaseInput::revert()
|
|
|
|
{
|
|
|
|
updatePreview();
|
|
|
|
}
|