+ if (event->type() == ApiTraceEvent::Call) {
+ ApiTraceCall *call = static_cast<ApiTraceCall*>(event);
+ if (call->hasError()) {
+ QPixmap px = m_errorEmblem.pixmap(textSize.height(),
+ textSize.height());
+ painter->drawPixmap(offset, px);
+ offset += QPoint(textSize.height() + 5, 0);
+ }
+ if (call->edited()) {
+ QPixmap px = m_editEmblem.pixmap(textSize.height(),
+ textSize.height());
+ painter->drawPixmap(offset, px);
+ offset += QPoint(textSize.height() + 5, 0);
+ }
+ }
+
+ painter->drawStaticText(offset, text);