mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-12 04:26:43 +00:00
Fixed #57: Added support for QModelIndex::internalPointer
This commit is contained in:
parent
fd886bfd51
commit
0fc5218bbe
@ -691,7 +691,13 @@ DOS_API DosQModelIndex *DOS_CALL dos_qmodelindex_sibling(const DosQModelIndex *v
|
|||||||
/// \brief Calls the QModelIndex::operator=(const QModelIndex&) function
|
/// \brief Calls the QModelIndex::operator=(const QModelIndex&) function
|
||||||
/// \param l The left side QModelIndex
|
/// \param l The left side QModelIndex
|
||||||
/// \param r The right side QModelIndex
|
/// \param r The right side QModelIndex
|
||||||
DOS_API void DOS_CALL dos_qmodelindex_assign (DosQModelIndex *l, const DosQModelIndex *r);
|
DOS_API void DOS_CALL dos_qmodelindex_assign(DosQModelIndex *l, const DosQModelIndex *r);
|
||||||
|
|
||||||
|
/// \brief Calls the QModelIndex::internalPointer function
|
||||||
|
/// \param vptr The QModelIndex
|
||||||
|
/// \return The internal pointer
|
||||||
|
DOS_API void* DOS_CALL dos_qmodelindex_internalPointer(DosQModelIndex *vptr);
|
||||||
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
|
@ -524,6 +524,12 @@ void dos_qmodelindex_assign(::DosQModelIndex *l, const ::DosQModelIndex *r)
|
|||||||
*li = *ri;
|
*li = *ri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void *dos_qmodelindex_internalPointer(DosQModelIndex *vptr)
|
||||||
|
{
|
||||||
|
auto index = static_cast<const QModelIndex *>(vptr);
|
||||||
|
return index->internalPointer();
|
||||||
|
}
|
||||||
|
|
||||||
::DosQHashIntQByteArray *dos_qhash_int_qbytearray_create()
|
::DosQHashIntQByteArray *dos_qhash_int_qbytearray_create()
|
||||||
{
|
{
|
||||||
return new QHash<int, QByteArray>();
|
return new QHash<int, QByteArray>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user