Commit 6939ed0c authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Handle method rename in Qt5.



Change-Id: I2c6dc06ad3b9c8b8261075a4dafecc099d4b64cf
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent f05c2753
......@@ -72,7 +72,11 @@ void SearchResultTreeItemDelegate::paint(QPainter *painter, const QStyleOptionVi
if (checkable) {
QVariant checkStateData = index.data(Qt::CheckStateRole);
checkState = static_cast<Qt::CheckState>(checkStateData.toInt());
#if QT_VERSION >= 0x050000
checkRect = doCheck(opt, opt.rect, checkStateData);
#else // Qt4
checkRect = check(opt, opt.rect, checkStateData);
#endif
}
// icon
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment