Slicer: 2145-support-for-installing-extension-from-file 80e14437

Author Committer Branch Timestamp Parent
johan.andruejol johan.andruejol 2145-support-for-installing-extension-from-file 2013-06-03 15:45:21 2145-support-for-installing-extension-from-file 495bc7cc
Affected Issues 0001694: there should be a central place to set dimensionality
Changeset

BUG: Ensure backward compatibility in qMRMLNodeComboBox

Here is a quick summary of what happened:

What changed in r22052:
Rename the Q_Property from currentNodeId to currentNodeID
Rename QString currentNodeId() to QString currentNodeID()
Rename setCurrentNode(const QString nodeID)
to setCurrentNodeID(const QString nodeID)

What changed in r22059:
Add QString currentNodeId() as a deprecated function
(not invokable though)

What is broken after r22052 and r22059 ?:
In C++, the function setCurrentNode(const QString nodeID) is missing.
In Python:
The function currentNodeId() is missing (not wrapped due to a missing
Q_INVOKABLE).
Trickier, any code using the property currentNodeId = ... will break too.

What this commit intend to fix:
Add Q_INVOKABLE to currentNodeId() method for python wrapping.
Return the old property as deprecated.

Also adding warning in the deprecated function to warn other developers.

See Issue 0001694

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

mod - Libs/MRML/Widgets/qMRMLNodeComboBox.cxx Diff File
mod - Libs/MRML/Widgets/qMRMLNodeComboBox.h Diff File