X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/b8fa103e8a7e9942f472f6e5c931a0db31263568..a0d3cf4aa8ffa76ed22a67efa4ea156eb2ef9f68:/src/selectiontoggle.cpp diff --git a/src/selectiontoggle.cpp b/src/selectiontoggle.cpp index 8a77da0d3..6608b5821 100644 --- a/src/selectiontoggle.cpp +++ b/src/selectiontoggle.cpp @@ -159,22 +159,6 @@ void SelectionToggle::paintEvent(QPaintEvent* event) { QPainter painter(this); painter.setClipRect(event->rect()); - painter.setRenderHint(QPainter::Antialiasing); - - // draw an alpha blended circle as background - const QPalette& palette = parentWidget()->palette(); - - const QBrush& backgroundBrush = palette.brush(QPalette::Normal, QPalette::Window); - QColor background = backgroundBrush.color(); - background.setAlpha(m_fadingValue / 2); - painter.setBrush(background); - - const QBrush& foregroundBrush = palette.brush(QPalette::Normal, QPalette::WindowText); - QColor foreground = foregroundBrush.color(); - foreground.setAlpha(m_fadingValue / 4); - painter.setPen(foreground); - - painter.drawEllipse(0, 0, width(), height()); // draw the icon overlay if (m_isHovered) {