From 001fdfa40e9f1a6e8ad18a9e8d054aabcbec17f0 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 25 Mar 2009 02:26:10 -0400 Subject: Simplify icon drawing --- sigtools/PluginModel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sigtools') diff --git a/sigtools/PluginModel.cpp b/sigtools/PluginModel.cpp index a1cd2483..176c6a68 100644 --- a/sigtools/PluginModel.cpp +++ b/sigtools/PluginModel.cpp @@ -136,8 +136,7 @@ void PluginModel::redraw(const int width) const m_pixmap.fill(KStatefulBrush(KColorScheme::View, KColorScheme::NormalBackground).brush(QPalette::Normal).color()); QPainter painter(&m_pixmap); - QPixmap icon = KIcon(m_info->icon()).pixmap(row1height, row1height); - painter.drawPixmap(w, h, icon); + painter.drawPixmap(w, h, KIcon(m_info->icon()).pixmap(row1height, row1height)); w += row1height; w += horizSpacing; -- cgit