mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive list: don't pass dive_site via uintptr_t through QML
Now that struct dive_site * is a proper Q_METATYPE it is not necessary anymore to pass dive-sites as opaque uintptr_t types. Simply pass a QVariants or directly via dive_site *. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
c980216dc0
commit
a0cc02dfe8
3 changed files with 5 additions and 21 deletions
|
@ -129,7 +129,7 @@ QString DiveObjectHelper::gps_decimal() const
|
|||
|
||||
QVariant DiveObjectHelper::dive_site() const
|
||||
{
|
||||
return QVariant::fromValue((uintptr_t)m_dive->dive_site);
|
||||
return QVariant::fromValue(m_dive->dive_site);
|
||||
}
|
||||
|
||||
QString DiveObjectHelper::duration() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue