2012-01-05 18:39:17 +00:00
|
|
|
#include "inputcolor.h"
|
|
|
|
|
|
|
|
#include <QLabel>
|
2012-01-05 19:41:10 +00:00
|
|
|
#include <QPushButton>
|
2012-01-05 18:39:17 +00:00
|
|
|
|
2012-01-05 19:41:10 +00:00
|
|
|
InputColor::InputColor(QWidget* form, QString label, Color* value):
|
2012-01-05 18:39:17 +00:00
|
|
|
BaseInput(form, label),
|
2012-01-05 19:41:10 +00:00
|
|
|
_value(value)
|
2012-01-05 18:39:17 +00:00
|
|
|
{
|
2012-01-05 19:41:10 +00:00
|
|
|
_preview = new QWidget(form);
|
|
|
|
_control = new QPushButton("Edit", form);
|
2012-01-05 18:39:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void InputColor::applyValue()
|
|
|
|
{
|
2012-01-05 19:41:10 +00:00
|
|
|
BaseInput::applyValue();
|
2012-01-05 18:39:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void InputColor::revert()
|
|
|
|
{
|
|
|
|
}
|