Commit 19b74b51 authored by Till Theato's avatar Till Theato

- Use gradient background for luma in curve widget

- Make curve widget use more space

svn path=/trunk/kdenlive/; revision=4765
parent 4e56ce77
......@@ -145,10 +145,7 @@ void EffectStackEdit::meetDependency(const QString& name, QString type, QString
KisCurveWidget *curve = (KisCurveWidget*)m_valueItems[name];
if (curve) {
int color = value.toInt();
if (color < 3)
curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)color)));
else
curve->setPixmap(QPixmap());
curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)color)));
}
}
}
......
......@@ -81,7 +81,8 @@ KisCurveWidget::KisCurveWidget(QWidget *parent, Qt::WFlags f)
setAutoFillBackground(false);
setAttribute(Qt::WA_OpaquePaintEvent);
setMinimumSize(150, 150);
setMaximumSize(350, 350);
setMaximumSize(1000, 1000);
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
d->setCurveModified();
......@@ -95,6 +96,11 @@ KisCurveWidget::~KisCurveWidget()
delete d;
}
QSize KisCurveWidget::sizeHint() const
{
return QSize(500, 500);
}
void KisCurveWidget::setupInOutControls(QSpinBox *in, QSpinBox *out, int min, int max)
{
d->m_intIn = in;
......
......@@ -82,6 +82,8 @@ public:
*/
void setPixmap(const QPixmap & pix);
virtual QSize sizeHint() const;
signals:
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment