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()));
|
connect(m_ui.listing, SIGNAL(activated(const QModelIndex&)), this, SIGNAL(accepted()));
|
||||||
m_ui.listing->horizontalHeader()->setSectionsMovable(true);
|
m_ui.listing->horizontalHeader()->setSectionsMovable(true);
|
||||||
m_ui.listing->setModel(&m_model);
|
m_ui.listing->setModel(&m_model);
|
||||||
|
m_ui.listing->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||||
resizeColumns();
|
resizeColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,6 @@
|
||||||
<attribute name="verticalHeaderVisible">
|
<attribute name="verticalHeaderVisible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="verticalHeaderDefaultSectionSize">
|
|
||||||
<number>20</number>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="verticalHeaderMinimumSectionSize">
|
<attribute name="verticalHeaderMinimumSectionSize">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
|
Loading…
Reference in New Issue