Commit deae00a1 authored by Tommi Asp's avatar Tommi Asp Committed by Oswald Buddenhagen

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/398Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 66b415f9
......@@ -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();
};
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment