┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-23 17:40:14 +0000
committerPeter Penz <[email protected]>2008-03-23 17:40:14 +0000
commit4b51a27aaabc104cb051376364f7aaa93e9fc68a (patch)
treed405be6e6fb01b697ec4f37cbdfc3de20bd21048 /src
parent12497384219113327e4b243a15b9042a1830a0c8 (diff)
The background for the image previews is already filled, so there is no need adding a border with the background color again (this also fixes a one-pixel-issue that shaded the right/bottom border in a wrong way).
svn path=/trunk/KDE/kdebase/apps/; revision=789234
Diffstat (limited to 'src')
-rw-r--r--src/iconmanager.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp
index a69029caf..cfdf13a7c 100644
--- a/src/iconmanager.cpp
+++ b/src/iconmanager.cpp
@@ -315,14 +315,6 @@ bool IconManager::applyImageFrame(QPixmap& icon)
painter.begin(&framedIcon);
painter.drawPixmap(frame, frame, icon);
- // draw a white frame around the icon
- painter.setPen(Qt::NoPen);
- painter.setBrush(palette.brush(QPalette::Normal, QPalette::Base));
- painter.drawRect(0, 0, width, frame);
- painter.drawRect(0, height - frame, width, frame);
- painter.drawRect(0, frame, frame, height - doubleFrame);
- painter.drawRect(width - frame, frame, frame, height - doubleFrame);
-
// add a border
painter.setPen(palette.color(QPalette::Text));
painter.setBrush(Qt::NoBrush);