all repos — mgba @ f5a7c53b6e1e29113e742a71b93e4faf8c6b6d71

mGBA Game Boy Advance Emulator

Qt: Autosize rows in library view
Vicki Pfau vi@endrift.com
Sun, 29 Jan 2017 22:50:59 -0800
commit

f5a7c53b6e1e29113e742a71b93e4faf8c6b6d71

parent

1c3162da53e941f28514d767bd6c0cff7743e83a

2 files changed, 1 insertions(+), 3 deletions(-)

jump to
M src/platform/qt/LibraryView.cppsrc/platform/qt/LibraryView.cpp

@@ -23,6 +23,7 @@ connect(&m_model, SIGNAL(doneLoading()), this, SLOT(resizeColumns()));

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(); }
M src/platform/qt/LibraryView.uisrc/platform/qt/LibraryView.ui

@@ -37,9 +37,6 @@ </attribute>

<attribute name="verticalHeaderVisible"> <bool>false</bool> </attribute> - <attribute name="verticalHeaderDefaultSectionSize"> - <number>20</number> - </attribute> <attribute name="verticalHeaderMinimumSectionSize"> <number>0</number> </attribute>