From 9d7c5b40d5bbf7f2d364525e150b124261186e0b Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 13 Jul 2021 20:46:59 -0500 Subject: [PATCH] Correct Strings column resizing --- src/widgets/StringsWidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/widgets/StringsWidget.cpp b/src/widgets/StringsWidget.cpp index 290c3af7..3fd5f039 100644 --- a/src/widgets/StringsWidget.cpp +++ b/src/widgets/StringsWidget.cpp @@ -214,10 +214,8 @@ StringsWidget::StringsWidget(MainWindow *main) }); auto header = ui->stringsTreeView->header(); - header->setSectionResizeMode(QHeaderView::ResizeMode::ResizeToContents); - header->setSectionResizeMode(StringsModel::StringColumn, QHeaderView::ResizeMode::Stretch); - header->setStretchLastSection(false); - header->setResizeContentsPrecision(256); + header->setSectionResizeMode(QHeaderView::ResizeMode::Interactive); + header->resizeSections(QHeaderView::ResizeMode::Stretch); } StringsWidget::~StringsWidget() {}