Qt: Autosize rows in library view

This commit is contained in:
Vicki Pfau 2017-01-29 22:50:59 -08:00
parent 1c3162da53
commit f5a7c53b6e
2 changed files with 1 additions and 3 deletions

View File

@ -23,6 +23,7 @@ LibraryView::LibraryView(QWidget* parent)
connect(m_ui.listing, SIGNAL(activated(const QModelIndex&)), this, SIGNAL(accepted()));
m_ui.listing->horizontalHeader()->setSectionsMovable(true);
m_ui.listing->setModel(&m_model);
m_ui.listing->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
resizeColumns();
}

View File

@ -37,9 +37,6 @@
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderDefaultSectionSize">
<number>20</number>
</attribute>
<attribute name="verticalHeaderMinimumSectionSize">
<number>0</number>
</attribute>