Merge pull request #4526 from aws-lumberyard-dev/scripting/rte_issues
Script Canvas: Fixed alignment of variable manager header
This commit is contained in:
+6
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user