Import 2017-06-07 23:51:09: master c132a382

Author Committer Branch Timestamp Parent
lassoan lassoan master 2015-06-16 01:04:53 master 37a36891
Changeset

BUG: Fixed DataProbe startup error

On Slicer built using VS2012 the following line fails:

qSize = qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)

Traceback (most recent call last):
File "<console>", line 1, in <module>
ValueError: Could not find matching overload for given arguments:
(7, 7)
The following slots are available:
QSizePolicy() -> QSizePolicy
QSizePolicy(QSizePolicy other) -> QSizePolicy
QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type) -> QSizePolicy
QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) -> QSizePolicy

This functionally equivalent few lines are more verbose but they work well:

qSize = qt.QSizePolicy()
qSize.setHorizontalPolicy(qt.QSizePolicy.Expanding)
qSize.setVerticalPolicy(qt.QSizePolicy.Expanding)

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24308 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Scripted/DataProbe/DataProbe.py Diff File