┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectiontoggle.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-05-07 17:41:43 +0000
committerPeter Penz <[email protected]>2009-05-07 17:41:43 +0000
commit29699998ead6fc541dc9eaf81de27a261180f372 (patch)
treeaa579368a90104a3534fd473b2bdd0dae0278d68 /src/selectiontoggle.cpp
parent6a0a4708c242642ef4e6b9d831792d336b9545a9 (diff)
Don't draw an alpha blended circle around the toggle selection. It looks less cluttered without it...
svn path=/trunk/KDE/kdebase/apps/; revision=964947
Diffstat (limited to 'src/selectiontoggle.cpp')
-rw-r--r--src/selectiontoggle.cpp16
1 files changed, 0 insertions, 16 deletions
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) {