Left aligned variable manager's header and data
Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
+11
-4
@@ -37,6 +37,8 @@
|
||||
#include <AzToolsFramework/API/ToolsApplicationAPI.h>
|
||||
#include <ScriptCanvas/Variable/GraphVariable.h>
|
||||
|
||||
#pragma optimize("", off)
|
||||
|
||||
namespace ScriptCanvasEditor
|
||||
{
|
||||
|
||||
@@ -411,10 +413,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 +879,11 @@ namespace ScriptCanvasEditor
|
||||
return tr(m_columnNames[section]);
|
||||
}
|
||||
|
||||
if (role == Qt::TextAlignmentRole)
|
||||
{
|
||||
return QVariant(Qt::AlignLeft | Qt::AlignVCenter);
|
||||
}
|
||||
|
||||
return QAbstractItemModel::headerData(section, orientation, role);
|
||||
}
|
||||
|
||||
@@ -1410,3 +1414,6 @@ namespace ScriptCanvasEditor
|
||||
|
||||
#include <Editor/View/Widgets/VariablePanel/moc_GraphVariablesTableView.cpp>
|
||||
}
|
||||
|
||||
|
||||
#pragma optimize("", on)
|
||||
|
||||
Reference in New Issue
Block a user