uic: Rename raise() to raise_() for Python

Fixes: QTBUG-80791
Change-Id: Ia6339b8c683147456cdffa7f2d45972e8eacd92c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Cristián Maureira-Fredes 2019-12-13 16:03:50 +01:00
parent 9a77beaea3
commit b31aef2900

View File

@ -824,8 +824,8 @@ void WriteInitialization::acceptWidget(DomWidget *node)
qPrintable(m_option.messagePrefix()),
name.toLatin1().data());
} else {
m_output << m_indent << varName << language::derefPointer << "raise()"
<< language::eol;
m_output << m_indent << varName << language::derefPointer
<< (language::language() != Language::Python ? "raise()" : "raise_()") << language::eol;
}
}
}