Commit 87ec1a00 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Get rid of deprecated background()

parent efaa1c52
Pipeline #7010 passed with stage
in 14 minutes and 22 seconds
......@@ -249,7 +249,7 @@ void ColorWheel::mouseReleaseEvent(QMouseEvent *event)
void ColorWheel::resizeEvent(QResizeEvent *event)
{
m_image = QImage(event->size(), QImage::Format_ARGB32_Premultiplied);
m_image.fill(palette().background().color().rgb());
m_image.fill(palette().window().color().rgb());
drawWheel();
drawSlider();
......
......@@ -54,7 +54,7 @@ template <typename Curve_t> void AbstractCurveWidget<Curve_t>::paintBackground(Q
/*
* Background
*/
p->fillRect(rect().translated(-offsetX, -offsetY), palette().background());
p->fillRect(rect().translated(-offsetX, -offsetY), palette().window());
if (!m_pixmap.isNull()) {
if (m_pixmapIsDirty || !m_pixmapCache) {
m_pixmapCache = std::make_shared<QPixmap>(m_wWidth + 1, m_wHeight + 1);
......
......@@ -301,7 +301,7 @@ template <typename CurveWidget_t> void CurveParamWidget<CurveWidget_t>::slotShow
m_edit->setPixmap(QPixmap());
} else {
auto color = modeToColorsRGB(m_mode);
m_edit->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(m_edit->size(), color, 1, palette().background().color().rgb())));
m_edit->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(m_edit->size(), color, 1, palette().window().color().rgb())));
}
} else {
m_edit->setPixmap(QPixmap());
......
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