Merge pull request #4526 from aws-lumberyard-dev/scripting/rte_issues

Script Canvas: Fixed alignment of variable manager header
monroegm-disable-blank-issue-2
Luis Sempé 4 years ago committed by GitHub
commit 38ccc6a8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -411,10 +411,7 @@ namespace ScriptCanvasEditor
case Qt::TextAlignmentRole:
{
if (index.column() == ColumnIndex::Type)
{
return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
}
return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
}
break;
@ -880,6 +877,11 @@ namespace ScriptCanvasEditor
return tr(m_columnNames[section]);
}
if (role == Qt::TextAlignmentRole)
{
return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
}
return QAbstractItemModel::headerData(section, orientation, role);
}

Loading…
Cancel
Save