0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Fix some GCC warnings.

This commit is contained in:
Mateusz Skowroński
2017-11-05 00:32:25 +01:00
parent 27427e90aa
commit 05f6eb9284
3 changed files with 8 additions and 3 deletions

View File

@@ -43,7 +43,12 @@ void LimeReport::PropertyDelegate::paint(QPainter *painter, const QStyleOptionVi
{
if (!index.isValid()) return;
#if QT_VERSION >= 0x050000
QStyleOptionViewItem opt = option;
#else
QStyleOptionViewItemV4 opt = option;
#endif
QStyle *style = opt.widget ? opt.widget->style() : QApplication::style();
LimeReport::ObjectPropItem *node = static_cast<LimeReport::ObjectPropItem*>(index.internalPointer());