Commit 3b4b43b4 authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix some deprecation warnings

parent 42b10c96
Pipeline #73491 canceled with stage
......@@ -972,7 +972,8 @@ void RemapView::wheelEvent(QWheelEvent *event)
}
int change = event->angleDelta().y() > 0 ? -1 : 1;
int pos = qBound(0, m_position + change, m_duration - 1);
if (event->y() < m_bottomView) {
if (event->position().y() < m_bottomView) {
emit seekToPos(pos + m_inFrame, -1);
} else {
// Wheel on zoom bar, scroll
......
......@@ -232,7 +232,7 @@ bool StatusBarMessageLabel::slotMessageTimeout()
}
}
QColor bgColor = KStatefulBrush(KColorScheme::Window, KColorScheme::NegativeBackground).brush(m_container).color();
QColor bgColor = KStatefulBrush(KColorScheme::Window, KColorScheme::NegativeBackground).brush(m_container->palette()).color();
const char *iconName = nullptr;
m_container->setColor(m_container->palette().window().color());
switch (m_currentMessage.type) {
......
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