X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fapicalldelegate.cpp;h=11ed3a5ca03d5c59c96b8c7bc05c67e2e5583bf8;hb=ed40bc699e44f810d27c7e50d396f7749c8cc9c2;hp=dc9dc94a45248a50caf0a9941085a20d6367418a;hpb=36a0fd36456a7ae909cc04e20781b489c4ddc37b;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);