From 8a89cc4920de5ff7c46838cc2bd454f8e1c26311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Cuj=C3=A9?= Date: Mon, 11 Mar 2019 00:23:32 +0100 Subject: [PATCH] Make colors table fully auto resizing --- qt/lc_qpropertiesdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/lc_qpropertiesdialog.cpp b/qt/lc_qpropertiesdialog.cpp index cac66c34..a757bf09 100644 --- a/qt/lc_qpropertiesdialog.cpp +++ b/qt/lc_qpropertiesdialog.cpp @@ -75,9 +75,9 @@ lcQPropertiesDialog::lcQPropertiesDialog(QWidget *parent, void *data) : table->setHorizontalHeaderLabels(horizontalLabels); #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) - table->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents); + table->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); #else - table->horizontalHeader()->setResizeMode(0, QHeaderView::ResizeToContents); + table->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents); #endif QVector InfoTotals(PartsList.size());