Skip to content

Commit a96d302

Browse files
authored
Merge pull request #4029 from ehmic/musicbrainz_column_reorder
Musicbrainz column reorder
2 parents 5f1dd8d + a082da0 commit a96d302

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/library/dlgtagfetcher.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ void DlgTagFetcher::updateStack() {
299299
}
300300
}
301301

302-
results->header()->resizeSections(QHeaderView::ResizeToContents);
302+
for (int i = 0; i < results->model()->columnCount(); i++) {
303+
results->resizeColumnToContents(i);
304+
int sectionSize = (results->columnWidth(i) + 10);
305+
results->header()->resizeSection(i, sectionSize);
306+
}
303307

304308
// Find the item that was selected last time
305309
for (int i = 0; i < results->model()->rowCount(); ++i) {

src/library/dlgtagfetcher.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<number>50</number>
4747
</attribute>
4848
<attribute name="headerStretchLastSection">
49-
<bool>false</bool>
49+
<bool>true</bool>
5050
</attribute>
5151
<column>
5252
<property name="text">

0 commit comments

Comments
 (0)