Make header visible and set column widths

This commit is contained in:
Tony Mountifield 2013-04-16 12:22:56 +01:00
parent fa71326c16
commit 19921f4326
2 changed files with 3 additions and 1 deletions

View file

@ -1475,6 +1475,8 @@ void HarmonyView::setElement(Element* e)
hb.userName->setText(harmony->hUserName());
// need to set header row
hb.degreeTab->setColumnWidth(0,hb.degreeTab->width()/3);
hb.degreeTab->setColumnWidth(1,hb.degreeTab->width()/3);
hb.degreeTab->setRowCount(harmony->numberOfDegrees());
for (int i = 0, n = harmony->numberOfDegrees(); i < n; ++i) {
const HDegree& d = harmony->degree(i);

View file

@ -396,7 +396,7 @@
<number>3</number>
</property>
<attribute name="horizontalHeaderVisible">
<bool>false</bool>
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderCascadingSectionResizes">
<bool>false</bool>