X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fapicalldelegate.cpp;h=11ed3a5ca03d5c59c96b8c7bc05c67e2e5583bf8;hb=c5b741c83e804f1e438caca83565a76e254d0b94;hp=dc9dc94a45248a50caf0a9941085a20d6367418a;hpb=ae89afaf858706ca3b6d3c85157b29c3c12494dd;p=apitrace diff --git a/gui/apicalldelegate.cpp b/gui/apicalldelegate.cpp index dc9dc94..11ed3a5 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);