aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scriptableapplication/pythonutils.h
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2025-05-02 10:09:33 +0200
committerFriedemann Kleint <[email protected]>2025-05-22 15:34:27 +0200
commit3f508a7bd4405c797ff11cb9e81c3d3222cb43c8 (patch)
tree86d9d61f6837c82091ac0e0fd6b98fd528ac5dd4 /examples/scriptableapplication/pythonutils.h
parenteeacd90bdb71cebcdfb8d285254d7e42ddc4ff79 (diff)
Move some qvariant helper code into libpysideHEADdev
Iron out some issues in the code: - The old code created a fast list from the list passed in but then did not use the fast API (PySequence_Fast_GET_ITEM(), etc) since it does not work with the limited API. Remove it. - For empty lists, an empty QStringList was returned since the helper isStringList() returned true. Change it to return an empty QVariantList. - Add a new function pyListToVariantList() which converts each item using the QVariant converter for use by QGenericItemModel Change-Id: If0b5cdf4055f8d586df56a8c98bc042f4bab6427 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'examples/scriptableapplication/pythonutils.h')
0 files changed, 0 insertions, 0 deletions