Skip to content

Commit

Permalink
refs #6482. Controls hidden unless integrated.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Mar 13, 2013
1 parent 28519e9 commit ef90b08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<widget class="QLabel" name="lblShowBackgroundColour">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand Down
6 changes: 6 additions & 0 deletions Code/Mantid/MantidQt/SliceViewer/src/PeaksWorkspaceWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ namespace MantidQt
ui.btnBackgroundColor->setStyle(new QPlastiqueStyle);
ui.btnPeakColor->setStyle(new QPlastiqueStyle);

// Hide controls that don't apply when peaks are integrated.
const bool integratedPeaks = m_ws->hasIntegratedPeaks();
ui.btnBackgroundColor->setVisible(integratedPeaks);
ui.ckShowBackground->setVisible(integratedPeaks);
ui.lblShowBackgroundColour->setVisible(integratedPeaks);

// Populate controls with data.
populate();
}
Expand Down

0 comments on commit ef90b08

Please sign in to comment.