uic/Python: Set form object name correctly
Add missing "not" for the isEmpty() check. Fixes: PYSIDE-1210 Change-Id: I3798d483df9d077300ff69dc5d3a8d08812f534e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
This commit is contained in:
parent
2767367795
commit
6baed76654
@ -1174,7 +1174,7 @@ void WriteInitialization::writeProperties(const QString &varName,
|
||||
m_output << m_indent << "if (" << varName << "->objectName().isEmpty())\n";
|
||||
break;
|
||||
case Language::Python:
|
||||
m_output << m_indent << "if " << varName << ".objectName():\n";
|
||||
m_output << m_indent << "if not " << varName << ".objectName():\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ from gammaview import GammaView
|
||||
|
||||
class Ui_Config(object):
|
||||
def setupUi(self, Config):
|
||||
if Config.objectName():
|
||||
if not Config.objectName():
|
||||
Config.setObjectName(u"Config")
|
||||
Config.resize(600, 650)
|
||||
Config.setSizeGripEnabled(True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user