Display matrices in multiple lines instead of a single line

* This makes it easier to preview without expanding the variables, and
  also clarifies the row/column distinction in a "float3x4" since it's
  immediately clear how many rows there are.
This commit is contained in:
baldurk
2018-02-19 11:54:09 +00:00
parent 2eb56e4279
commit 6cf67f9e4f
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -903,11 +903,11 @@ QString VarString(const ShaderVariable &v)
for(int i = 0; i < (int)v.rows; i++)
{
if(i > 0)
ret += lit(", ");
ret += lit("\n");
ret += lit("{") + RowString(v, i) + lit("}");
}
return lit("{ ") + ret + lit(" }");
return ret;
}
QString RowTypeString(const ShaderVariable &v)
@@ -211,6 +211,9 @@
<property name="selectionMode">
<enum>QAbstractItemView::ContiguousSelection</enum>
</property>
<property name="verticalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>