diff options
| author | Peter Penz <[email protected]> | 2008-03-23 17:40:14 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-23 17:40:14 +0000 |
| commit | 4b51a27aaabc104cb051376364f7aaa93e9fc68a (patch) | |
| tree | d405be6e6fb01b697ec4f37cbdfc3de20bd21048 /src | |
| parent | 12497384219113327e4b243a15b9042a1830a0c8 (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.cpp | 8 |
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); |
