Mercurial > octave
changeset 28569:1dcc77fe082d
avoid deprecated Qt qVariantFromValue function
* Object.cc: Use QVariant::fromValue instead of qVariantFromValue.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 13 Jul 2020 15:49:23 -0400 |
parents | 22f2438fbce6 |
children | 5322aed1304c |
files | libgui/graphics/Object.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/Object.cc Mon Jul 13 15:46:13 2020 -0400 +++ b/libgui/graphics/Object.cc Mon Jul 13 15:49:23 2020 -0400 @@ -70,7 +70,7 @@ if (m_qobject) { m_qobject->setProperty ("QtHandles::Object", - qVariantFromValue<void*> (this)); + QVariant::fromValue<void*> (this)); connect (m_qobject, SIGNAL (destroyed (QObject*)), SLOT (objectDestroyed (QObject*))); }