Qt: Autosize rows in library view
Vicki Pfau vi@endrift.com
Sun, 29 Jan 2017 22:50:59 -0800
2 files changed,
1 insertions(+),
3 deletions(-)
M
src/platform/qt/LibraryView.cpp
→
src/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.ui
→
src/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>