Make header visible and set column widths
This commit is contained in:
parent
fa71326c16
commit
19921f4326
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -396,7 +396,7 @@
|
|||
<number>3</number>
|
||||
</property>
|
||||
<attribute name="horizontalHeaderVisible">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</attribute>
|
||||
<attribute name="horizontalHeaderCascadingSectionResizes">
|
||||
<bool>false</bool>
|
||||
|
|
Loading…
Reference in a new issue