diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-05-02 10:09:33 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-05-22 15:34:27 +0200 |
commit | 3f508a7bd4405c797ff11cb9e81c3d3222cb43c8 (patch) | |
tree | 86d9d61f6837c82091ac0e0fd6b98fd528ac5dd4 /examples/opengl/textures | |
parent | eeacd90bdb71cebcdfb8d285254d7e42ddc4ff79 (diff) |
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 <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/opengl/textures')
0 files changed, 0 insertions, 0 deletions