mirror of https://github.com/KLayout/klayout.git
Qt4 compatibility
This commit is contained in:
parent
4d4f4b643b
commit
0248834afb
|
|
@ -112,9 +112,9 @@ QModelIndex
|
|||
NetlistLogModel::index (int row, int column, const QModelIndex &parent) const
|
||||
{
|
||||
if (! parent.isValid ()) {
|
||||
return createIndex (row, column, quintptr (0));
|
||||
return createIndex (row, column, (void *) (0));
|
||||
} else {
|
||||
return createIndex (row, column, quintptr (& m_circuits [parent.row ()]));
|
||||
return createIndex (row, column, (void *) (& m_circuits [parent.row ()]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ NetlistLogModel::parent (const QModelIndex &child) const
|
|||
return QModelIndex ();
|
||||
} else {
|
||||
const circuit_entry *ce = (const circuit_entry *) child.internalPointer ();
|
||||
return createIndex (int (ce - & m_circuits.front ()), child.column (), quintptr (0));
|
||||
return createIndex (int (ce - & m_circuits.front ()), child.column (), (void *) (0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue