Gui: [skip ci] fix readability-identifier-length, whitespace/comma
This commit is contained in:
@@ -43,18 +43,18 @@ void ExpressionBindingPy::init_type()
|
||||
behaviors().set_tp_new(PyMake);
|
||||
behaviors().readyType();
|
||||
|
||||
add_varargs_method("bind",&ExpressionBindingPy::bind,"Bind with an expression");
|
||||
add_varargs_method("isBound",&ExpressionBindingPy::isBound,"Check if already bound with an expression");
|
||||
add_varargs_method("apply",&ExpressionBindingPy::apply,"apply");
|
||||
add_varargs_method("hasExpression",&ExpressionBindingPy::hasExpression,"hasExpression");
|
||||
add_varargs_method("autoApply",&ExpressionBindingPy::autoApply,"autoApply");
|
||||
add_varargs_method("setAutoApply",&ExpressionBindingPy::setAutoApply,"setAutoApply");
|
||||
add_varargs_method("bind", &ExpressionBindingPy::bind, "Bind with an expression");
|
||||
add_varargs_method("isBound", &ExpressionBindingPy::isBound, "Check if already bound with an expression");
|
||||
add_varargs_method("apply", &ExpressionBindingPy::apply, "apply");
|
||||
add_varargs_method("hasExpression", &ExpressionBindingPy::hasExpression, "hasExpression");
|
||||
add_varargs_method("autoApply", &ExpressionBindingPy::autoApply, "autoApply");
|
||||
add_varargs_method("setAutoApply", &ExpressionBindingPy::setAutoApply, "setAutoApply");
|
||||
}
|
||||
|
||||
PyObject *ExpressionBindingPy::PyMake(struct _typeobject *, PyObject * args, PyObject *)
|
||||
{
|
||||
PyObject* pyObj;
|
||||
if (!PyArg_ParseTuple(args,"O", &pyObj))
|
||||
if (!PyArg_ParseTuple(args, "O", &pyObj))
|
||||
return nullptr;
|
||||
|
||||
ExpressionBinding* expr = nullptr;
|
||||
@@ -64,18 +64,18 @@ PyObject *ExpressionBindingPy::PyMake(struct _typeobject *, PyObject * args, PyO
|
||||
QWidget* obj = dynamic_cast<QWidget*>(wrap.toQObject(Py::Object(pyObj)));
|
||||
if (obj) {
|
||||
do {
|
||||
QuantitySpinBox* sb = qobject_cast<QuantitySpinBox*>(obj);
|
||||
if (sb) {
|
||||
expr = sb;
|
||||
QuantitySpinBox* qsb = qobject_cast<QuantitySpinBox*>(obj);
|
||||
if (qsb) {
|
||||
expr = qsb;
|
||||
break;
|
||||
}
|
||||
InputField* le = qobject_cast<InputField*>(obj);
|
||||
if (le) {
|
||||
expr = le;
|
||||
InputField* inp = qobject_cast<InputField*>(obj);
|
||||
if (inp) {
|
||||
expr = inp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
while(false);
|
||||
while (false);
|
||||
}
|
||||
|
||||
if (!expr) {
|
||||
|
||||
Reference in New Issue
Block a user