Commit 62cb16b7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated enum

parent 78b94a9f
Pipeline #184560 passed with stage
in 11 minutes and 12 seconds
......@@ -58,7 +58,11 @@ private:
setPixmap(QPixmap());
} else {
auto color = CurveParamWidget<CurveWidget_t>::modeToColorsRGB(m_mode);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
setPixmap(QPixmap::fromImage(ColorTools::rgbCurveLine(s, color, palette().background().color().rgb())).transformed(t));
#else
setPixmap(QPixmap::fromImage(ColorTools::rgbCurveLine(s, color, palette().window().color().rgb())).transformed(t));
#endif
}
}
......
......@@ -76,8 +76,11 @@ QVariant RenderPresetTreeModel::data(const QModelIndex &index, int role) const
return scheme.foreground(KColorScheme::InactiveText).color();
}
}
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
if (role == Qt::BackgroundColorRole) {
#else
if (role == Qt::BackgroundRole) {
#endif
if (!preset->error().isEmpty()) {
return scheme.background(KColorScheme::NegativeBackground).color();
}
......
Supports Markdown
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