summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-30 21:19:07 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-30 21:19:07 -0400
commit8bef2bc921cc9a6e55f48b45d52823bdc9d2c352 (patch)
treefe7b025c6f4f68628af4d4874f5b6341661dcfd0
parent31eef8417194a61b24d7c813fd5398119c6485ee (diff)
Inline the conditional
-rw-r--r--sigmodr/widgets/mapeditor/TileItem.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/sigmodr/widgets/mapeditor/TileItem.cpp b/sigmodr/widgets/mapeditor/TileItem.cpp
index 9d16498d..13a51f13 100644
--- a/sigmodr/widgets/mapeditor/TileItem.cpp
+++ b/sigmodr/widgets/mapeditor/TileItem.cpp
@@ -70,12 +70,7 @@ void TileItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
painter->drawPath(path);
}
else
- {
- if (m_mask)
- painter->drawPixmap(0, 0, m_masked);
- else
- painter->drawPixmap(0, 0, m_pixmap);
- }
+ painter->drawPixmap(0, 0, m_mask ? m_masked : m_pixmap);
painter->setBrush(KStatefulBrush(KColorScheme::Selection, KColorScheme::HoverColor).brush(QPalette::Active));
painter->setOpacity(.25);
MapItem::paint(painter, option, widget);