aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-02-27 14:48:02 +0100
committerCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2020-03-04 18:12:06 +0100
commit4f1739e062623d3ab8aebe9540e945464734a75b (patch)
treef73de78d2fdaae7b02aef583a74a677ebf569a6a /tools
parent435bc2744cd108efc1511bf17117bd4f0de15b43 (diff)
Accept EnumMeta as a valid Signal type
Including a check for Python EnumMeta types to not consider them as a normal PySequence allows the decision to use the default PyObject wrapper case. Using the 'object' type is currently the workaround, so this allow the users to use the Enum class instead of declaring the signal with 'object'. class A(Enum): a = 1 b = 1 # Workaround # signal = Signal(object) # With this patch signal = Signal(A) A test case was added. Fixes: PYSIDE-239 Change-Id: Ib593dba5a988eceb8b1bfae097768e9ec02be6d5 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions