Skip to content

Commit

Permalink
Refs #6473. Setting initial values for inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Dec 10, 2013
1 parent 15f02a8 commit 8223861
Showing 1 changed file with 9 additions and 2 deletions.
Expand Up @@ -20,10 +20,17 @@ namespace MantidWidgets
{
m_ui.setupUi(this);

// TODO: set initial values
initDiagnosisTable();
setState(Stopped);

// Set initial runs text
Workspace_const_sptr fitWS = m_fitPropBrowser->getWorkspace();
m_ui.runs->setText( QString::fromStdString( getRunTitle(fitWS) ) + "-" );

// TODO: find a better initial one, e.g. previously used
m_ui.labelInput->setText("Label");

initDiagnosisTable();

// After initial values are set, update depending elements accordingly. We don't rely on
// slot/signal update, as element might be left with default values which means these will
// never be called on initialication.
Expand Down

0 comments on commit 8223861

Please sign in to comment.