QMessageBox::warning(0,tr("Invalid state name"),newName.isEmpty()?tr("The empty string as a name is reserved for the base state."):tr("Name already used in another state"));
QMessageBox::warning(0,tr("Invalid state name"),
newName.isEmpty()?
tr("The empty string as a name is reserved for the base state."):