mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-28 04:41:40 -08:00
support both Qt5 and Qt6
This commit is contained in:
parent
07f5fd05a0
commit
4440c06e70
6 changed files with 21 additions and 11 deletions
|
|
@ -127,7 +127,11 @@ cl_object qset2(cl_object l_obj, cl_object l_args) {
|
|||
var = toInt(l_val);
|
||||
}
|
||||
else {
|
||||
#if QT_VERSION < 0x060000
|
||||
var = toQVariant(l_val, mp.type());
|
||||
#else
|
||||
var = toQVariant(l_val, mp.typeId());
|
||||
#endif
|
||||
}
|
||||
if (!mp.write(qobject, var)) {
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue