X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/2bd97cd745bc7f08c1443c8917fde4e5ef25e7f1..148282e2d856b47ceb191eeef4c834118c8cdffd:/src/kformattedballoontipdelegate.cpp diff --git a/src/kformattedballoontipdelegate.cpp b/src/kformattedballoontipdelegate.cpp index d221f6786..99fd4dfc1 100644 --- a/src/kformattedballoontipdelegate.cpp +++ b/src/kformattedballoontipdelegate.cpp @@ -57,11 +57,7 @@ void KFormattedBalloonTipDelegate::paint(QPainter *painter, painter->translate(.5, .5); } -#if QT_VERSION >= 0x040400 const QColor toColor = option->palette.brush(QPalette::ToolTipBase).color(); -#else - const QColor toColor = option->palette.brush(QPalette::Base).color(); -#endif const QColor fromColor = KColorScheme::shade(toColor, KColorScheme::LightShade, 0.2); QLinearGradient gradient(option->rect.topLeft(), option->rect.bottomLeft());