mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 08:39:07 +03:00
Fix some GCC warnings.
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user