From 63c5a9328e465add94d86ed6487be5295b8b6c44 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Tue, 11 Aug 2009 16:47:24 +0200 Subject: [PATCH] Fix the flickering also for the cmake plugin. --- .../cmakeprojectmanager/cmakebuildenvironmentwidget.cpp | 7 +++++++ .../cmakeprojectmanager/cmakebuildenvironmentwidget.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.cpp b/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.cpp index f133c3c3e56..d7e2cde266d 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.cpp @@ -52,10 +52,17 @@ CMakeBuildEnvironmentWidget::CMakeBuildEnvironmentWidget(CMakeProject *project) connect(m_buildEnvironmentWidget, SIGNAL(userChangesUpdated()), this, SLOT(environmentModelUserChangesUpdated())); + connect(m_buildEnvironmentWidget, SIGNAL(detailsVisibleChanged(bool)), + this, SLOT(layoutFixup())); connect(m_clearSystemEnvironmentCheckBox, SIGNAL(toggled(bool)), this, SLOT(clearSystemEnvironmentCheckBoxClicked(bool))); } +void CMakeBuildEnvironmentWidget::layoutFixup() +{ + fixupLayout(m_buildEnvironmentWidget->detailsWidget()); +} + QString CMakeBuildEnvironmentWidget::displayName() const { return tr("Build Environment"); diff --git a/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.h b/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.h index ee79c99e116..b27f5f5755e 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.h +++ b/src/plugins/cmakeprojectmanager/cmakebuildenvironmentwidget.h @@ -56,6 +56,7 @@ public: private slots: void environmentModelUserChangesUpdated(); void clearSystemEnvironmentCheckBoxClicked(bool checked); + void layoutFixup(); private: ProjectExplorer::EnvironmentWidget *m_buildEnvironmentWidget; -- GitLab