summaryrefslogtreecommitdiff
path: root/gui/apicalldelegate.cpp
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2011-08-28 17:11:02 -0400
committerZack Rusin <zack@kde.org>2011-08-28 17:12:19 -0400
commited40bc699e44f810d27c7e50d396f7749c8cc9c2 (patch)
treef4207586381c3a7120f95c6846f4075c9301ff8e /gui/apicalldelegate.cpp
parent36a0fd36456a7ae909cc04e20781b489c4ddc37b (diff)
Reduce the size of ApiTraceCall, ApiTraceEvent and ApiTraceFrame
This gets down the memory usage down quite a bit.
Diffstat (limited to 'gui/apicalldelegate.cpp')
-rw-r--r--gui/apicalldelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/apicalldelegate.cpp b/gui/apicalldelegate.cpp
index dc9dc94a..11ed3a5c 100644
--- a/gui/apicalldelegate.cpp
+++ b/gui/apicalldelegate.cpp
@@ -33,7 +33,7 @@ void ApiCallDelegate::paint(QPainter *painter,
//QStyledItemDelegate::paint(painter, option, index);
QStyle *style = QApplication::style();
style->drawControl(QStyle::CE_ItemViewItem, &option, painter, 0);
- if (!event->state().isEmpty()) {
+ if (event->hasState()) {
QPixmap px = m_stateEmblem.pixmap(option.rect.height(),
option.rect.height());
painter->drawPixmap(option.rect.topLeft(), px);