diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-07-07 12:18:45 +0200 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-08-12 16:15:38 +0200 |
| commit | 0042bb2706697e5f15ee914f84e37964f0001381 (patch) | |
| tree | d7628aee8d8716984e3a12d84bc8961551c4dc9c /examples/scriptableapplication/pythonutils.cpp | |
| parent | 0c75c823b0c8e48f03fa0bb166b195bfa7d5f2e9 (diff) | |
Add fallback case for QSettings.value
This includes a case where the passed type is not
a Python type, so we fallback to a QVariant type
as Qt/C++ does.
A 'TypeError' is raised if the Python type used
is not considered.
Added a couple of tests too.
Fixes: PYSIDE-1619
Change-Id: I5f2e277bb6ccbf9c3a1b23e79717c11ff7635ce5
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 07b93a82afc22760f87a68fa9926dd316c4a0815)
Diffstat (limited to 'examples/scriptableapplication/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions
