|
|
|
@ -33,8 +33,8 @@ namespace NLQT
|
|
|
|
|
|
|
|
|
|
CColorEditWidget::CColorEditWidget(QWidget *parent)
|
|
|
|
|
: QWidget(parent),
|
|
|
|
|
_Wrapper(NULL),
|
|
|
|
|
_emit(true)
|
|
|
|
|
_Wrapper(NULL),
|
|
|
|
|
_emit(true)
|
|
|
|
|
{
|
|
|
|
|
_ui.setupUi(this);
|
|
|
|
|
|
|
|
|
@ -87,8 +87,8 @@ void CColorEditWidget::setRed(int r)
|
|
|
|
|
{
|
|
|
|
|
if (_emit)
|
|
|
|
|
Q_EMIT colorChanged(NLMISC::CRGBA(r, _ui.gSpinBox->value(),
|
|
|
|
|
_ui.bSpinBox->value(),
|
|
|
|
|
_ui.aSpinBox->value()));
|
|
|
|
|
_ui.bSpinBox->value(),
|
|
|
|
|
_ui.aSpinBox->value()));
|
|
|
|
|
|
|
|
|
|
_ui.graphicsWidget->repaint();
|
|
|
|
|
if (_Wrapper == NULL)
|
|
|
|
@ -108,9 +108,9 @@ void CColorEditWidget::setGreen(int g)
|
|
|
|
|
{
|
|
|
|
|
if (_emit)
|
|
|
|
|
Q_EMIT colorChanged(NLMISC::CRGBA(_ui.rSpinBox->value(),
|
|
|
|
|
g,
|
|
|
|
|
_ui.bSpinBox->value(),
|
|
|
|
|
_ui.aSpinBox->value()));
|
|
|
|
|
g,
|
|
|
|
|
_ui.bSpinBox->value(),
|
|
|
|
|
_ui.aSpinBox->value()));
|
|
|
|
|
_ui.graphicsWidget->repaint();
|
|
|
|
|
if (_Wrapper == NULL) return;
|
|
|
|
|
|
|
|
|
@ -127,9 +127,9 @@ void CColorEditWidget::setBlue(int b)
|
|
|
|
|
{
|
|
|
|
|
if (_emit)
|
|
|
|
|
Q_EMIT colorChanged(NLMISC::CRGBA(_ui.rSpinBox->value(),
|
|
|
|
|
_ui.gSpinBox->value(),
|
|
|
|
|
b,
|
|
|
|
|
_ui.aSpinBox->value()));
|
|
|
|
|
_ui.gSpinBox->value(),
|
|
|
|
|
b,
|
|
|
|
|
_ui.aSpinBox->value()));
|
|
|
|
|
_ui.graphicsWidget->repaint();
|
|
|
|
|
if (_Wrapper == NULL) return;
|
|
|
|
|
|
|
|
|
@ -146,9 +146,9 @@ void CColorEditWidget::setAlpha(int a)
|
|
|
|
|
{
|
|
|
|
|
if (_emit)
|
|
|
|
|
Q_EMIT colorChanged(NLMISC::CRGBA(_ui.rSpinBox->value(),
|
|
|
|
|
_ui.gSpinBox->value(),
|
|
|
|
|
_ui.bSpinBox->value(),
|
|
|
|
|
a));
|
|
|
|
|
_ui.gSpinBox->value(),
|
|
|
|
|
_ui.bSpinBox->value(),
|
|
|
|
|
a));
|
|
|
|
|
_ui.graphicsWidget->repaint();
|
|
|
|
|
|
|
|
|
|
if (_Wrapper == NULL) return;
|
|
|
|
|