From deae00a12e197943a69dd980c401b9cbdb3baba4 Mon Sep 17 00:00:00 2001 From: Tommi Asp Date: Wed, 4 May 2011 16:36:48 +0300 Subject: BuildstepConfigWidgets can be set expanded by default (cherry picked from commit 517aef8b8bc705b055b10ef0b7b0b234fd80b920) Change-Id: I517aef8b8bc705b055b10ef0b7b0b234fd80b920x Merge-request: 2193 Reviewed-on: http://codereview.qt.nokia.com/398 Reviewed-by: hjk --- src/plugins/projectexplorer/buildstep.h | 1 + src/plugins/projectexplorer/buildstepspage.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/plugins/projectexplorer/buildstep.h b/src/plugins/projectexplorer/buildstep.h index b2440c8cc74..ff8774af692 100644 --- a/src/plugins/projectexplorer/buildstep.h +++ b/src/plugins/projectexplorer/buildstep.h @@ -167,6 +167,7 @@ public: virtual void init() = 0; virtual QString summaryText() const = 0; virtual QString displayName() const = 0; + virtual bool showExpanded() const { return false; } signals: void updateSummary(); }; diff --git a/src/plugins/projectexplorer/buildstepspage.cpp b/src/plugins/projectexplorer/buildstepspage.cpp index ccd04a68bc0..ece3f8ab318 100644 --- a/src/plugins/projectexplorer/buildstepspage.cpp +++ b/src/plugins/projectexplorer/buildstepspage.cpp @@ -159,6 +159,8 @@ void BuildStepListWidget::addBuildStepWidget(int pos, BuildStep *step) s.detailsWidget = new Utils::DetailsWidget(this); s.detailsWidget->setSummaryText(s.widget->summaryText()); s.detailsWidget->setWidget(s.widget); + if(s.widget->showExpanded()) + s.detailsWidget->setState(Utils::DetailsWidget::Expanded); // layout Utils::FadingPanel *toolWidget = new Utils::FadingPanel(s.detailsWidget); -- cgit v1.2.3