From: Peter Penz Date: Sun, 23 Mar 2008 17:40:14 +0000 (+0000) Subject: The background for the image previews is already filled, so there is no need adding... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4b51a27aaabc104cb051376364f7aaa93e9fc68a?ds=inline 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 --- 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);