summaryrefslogtreecommitdiffstats
path: root/sigtools
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-25 02:26:10 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-25 02:26:10 -0400
commit001fdfa40e9f1a6e8ad18a9e8d054aabcbec17f0 (patch)
tree5f3f0d2142c020dcf43c2b6a03db2ca7510819d5 /sigtools
parentf68f7434b47502f2853638e8041a15ef62035879 (diff)
downloadsigen-001fdfa40e9f1a6e8ad18a9e8d054aabcbec17f0.tar.gz
sigen-001fdfa40e9f1a6e8ad18a9e8d054aabcbec17f0.tar.xz
sigen-001fdfa40e9f1a6e8ad18a9e8d054aabcbec17f0.zip
Simplify icon drawing
Diffstat (limited to 'sigtools')
-rw-r--r--sigtools/PluginModel.cpp3
1 files changed, 1 insertions, 2 deletions
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;