Add QColor(QVariant) constructors.
Reviewed by Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
cb24298e92
commit
dff79b35f2
1 changed files with 8 additions and 0 deletions
|
|
@ -848,6 +848,14 @@
|
||||||
<modify-function signature="operator=(QColor)" remove="all"/>
|
<modify-function signature="operator=(QColor)" remove="all"/>
|
||||||
<modify-function signature="operator=(Qt::GlobalColor)" remove="all"/>
|
<modify-function signature="operator=(Qt::GlobalColor)" remove="all"/>
|
||||||
<modify-function signature="QColor(const char*)" remove="all" />
|
<modify-function signature="QColor(const char*)" remove="all" />
|
||||||
|
<add-function signature="QColor(QVariant)">
|
||||||
|
<inject-code class="target" position="beginning">
|
||||||
|
if (%1.type() == QVariant::Color)
|
||||||
|
%0 = new %TYPE(%1.value<QColor>());
|
||||||
|
else
|
||||||
|
PyErr_SetString(PyExc_TypeError, "QVariant must be holding a QColor");
|
||||||
|
</inject-code>
|
||||||
|
</add-function>
|
||||||
<!-- get* methods. Inject code -->
|
<!-- get* methods. Inject code -->
|
||||||
<modify-function signature="getCmyk(int*,int*,int*,int*,int*)">
|
<modify-function signature="getCmyk(int*,int*,int*,int*,int*)">
|
||||||
<modify-argument index="0">
|
<modify-argument index="0">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue