Fix two warnings + some documentation in comment
This commit is contained in:
parent
68a1a8e7c9
commit
49f009bdf9
2 changed files with 8 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ void PgLabItemDelegate::initStyleOption(QStyleOptionViewItem *option,
|
|||
Oid oid = InvalidOid;
|
||||
value = index.data(Qt::UserRole); // get OID
|
||||
if (value.isValid())
|
||||
oid = value.toInt(); //getType(index.column());
|
||||
oid = value.toUInt(); //getType(index.column());
|
||||
|
||||
value = index.data(Qt::DisplayRole);
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ void PgLabItemDelegate::initStyleOption(QStyleOptionViewItem *option,
|
|||
// option->backgroundBrush = qvariant_cast<QBrush>(index.data(Qt::BackgroundRole));
|
||||
|
||||
// disable style animations for checkboxes etc. within itemviews (QTBUG-30146)
|
||||
option->styleObject = 0;
|
||||
option->styleObject = nullptr;
|
||||
}
|
||||
|
||||
void PgLabItemDelegate::paint(QPainter *painter,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue