X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsmallruler.cpp;h=89d876d8cc7cbdc3305254d9f2448c31e5faf29a;hb=b4a0ec0fffc1cbbf21d2ea9fc418885e3b34bce8;hp=dce24f469c1299294d45ef41d24718abd556e7cb;hpb=05f4fad9a19434399f43ff76e06d1e1a5f74c0f6;p=kdenlive diff --git a/src/smallruler.cpp b/src/smallruler.cpp index dce24f46..89d876d8 100644 --- a/src/smallruler.cpp +++ b/src/smallruler.cpp @@ -233,4 +233,11 @@ void SmallRuler::paintEvent(QPaintEvent *e) p.drawPolygon(pa); } +void SmallRuler::updatePalette() +{ + KSharedConfigPtr config = KSharedConfig::openConfig(KdenliveSettings::colortheme()); + m_zoneBrush = KStatefulBrush(KColorScheme::View, KColorScheme::PositiveBackground, config); + updatePixmap(); +} + #include "smallruler.moc"