diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-25 02:26:10 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-25 02:26:10 -0400 |
| commit | 001fdfa40e9f1a6e8ad18a9e8d054aabcbec17f0 (patch) | |
| tree | 5f3f0d2142c020dcf43c2b6a03db2ca7510819d5 | |
| parent | f68f7434b47502f2853638e8041a15ef62035879 (diff) | |
Simplify icon drawing
| -rw-r--r-- | sigtools/PluginModel.cpp | 3 |
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; |
