mirror of https://github.com/mgba-emu/mgba.git
Qt: Autosize rows in library view
This commit is contained in:
parent
1c3162da53
commit
f5a7c53b6e
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue