summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2023-05-08 17:18:44 +0200
committerCristian Adam <cristian.adam@qt.io>2023-05-12 12:07:31 +0000
commit62e9a0bec1a9811833c1194f287f30eaa7afec14 (patch)
tree218f8991c6548e1bbd71d328b31e37eef57e084b /src
parentaf5e50edf73b98fc7b995906b8ddd492756bff52 (diff)
downloadqt-creator-62e9a0bec1a9811833c1194f287f30eaa7afec14.tar.gz
CMakePM: Stretch the CMake parameters column on resize
Makes sure that the CMake parameters columns are properly stretched when Qt Creator window is being resized or maximized / restored from maximized state. Fixes: QTCREATORBUG-27257 Change-Id: Ifb4d439fb758dcc5b2593be917ba35e9c79f2840 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
index 494d7ee67d..1ae95c1807 100644
--- a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
@@ -54,7 +54,6 @@
#include <utils/checkablemessagebox.h>
#include <utils/commandline.h>
#include <utils/detailswidget.h>
-#include <utils/headerviewstretcher.h>
#include <utils/infolabel.h>
#include <utils/itemviews.h>
#include <utils/layoutbuilder.h>
@@ -68,6 +67,7 @@
#include <QDialogButtonBox>
#include <QDir>
#include <QGridLayout>
+#include <QHeaderView>
#include <QLoggingCategory>
#include <QMenu>
#include <QMessageBox>
@@ -250,7 +250,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildSystem *bs) :
m_configView->setUniformRowHeights(true);
m_configView->setSortingEnabled(true);
m_configView->sortByColumn(0, Qt::AscendingOrder);
- (void) new HeaderViewStretcher(m_configView->header(), 0);
+ m_configView->header()->setSectionResizeMode(QHeaderView::Stretch);
m_configView->setSelectionMode(QAbstractItemView::ExtendedSelection);
m_configView->setSelectionBehavior(QAbstractItemView::SelectItems);
m_configView->setAlternatingRowColors(true);