Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
87ec1a00
Commit
87ec1a00
authored
Aug 25, 2019
by
Yuri Chornoivan
Browse files
Get rid of deprecated background()
parent
efaa1c52
Pipeline
#7010
passed with stage
in 14 minutes and 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/colorwheel.cpp
View file @
87ec1a00
...
...
@@ -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
();
...
...
src/assets/view/widgets/curves/abstractcurvewidget.ipp
View file @
87ec1a00
...
...
@@ -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);
...
...
src/assets/view/widgets/curves/curveparamwidget.ipp
View file @
87ec1a00
...
...
@@ -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());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment