From aaaa489116e8d7bc8d1b6ad92c7252aae9aed6d9 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 1 Dec 2023 15:51:20 -0500 Subject: [PATCH] Stretch horizontal table headers --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ebcde1c..2f02aea 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -81,7 +81,7 @@ MainWindow::MainWindow(const QDir &definitionDirectory, const QDir &assetDirecto verticalHeader->setSectionResizeMode(QHeaderView::ResizeToContents); QHeaderView *horizontalHeader = pieceListView->horizontalHeader(); - horizontalHeader->setSectionResizeMode(QHeaderView::ResizeToContents); + horizontalHeader->setSectionResizeMode(QHeaderView::Stretch); connect(pieceListView, &QListView::clicked, this, [this, assetDirectory](const QModelIndex index) { const QString filename = index.data(Qt::UserRole + 1).toString();