Skip to content

Commit

Permalink
Allow user to set optional message. Refs #7929.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Jan 16, 2014
1 parent 3508842 commit 665d3f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -33,7 +33,7 @@
<enum>QLayout::SetMinAndMaxSize</enum>
</property>
<item>
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="instructions">
<property name="palette">
<palette>
<active>
Expand Down Expand Up @@ -138,7 +138,7 @@
<enum>QFrame::Sunken</enum>
</property>
<property name="text">
<string>Attempts to load a given file by finding the appropriate Load algorithm</string>
<string/>
</property>
<property name="alignment">
<set>Qt::AlignJustify|Qt::AlignVCenter</set>
Expand Down
5 changes: 5 additions & 0 deletions Code/Mantid/MantidQt/CustomDialogs/src/LoadDialog.cpp
Expand Up @@ -147,6 +147,11 @@ namespace MantidQt
void LoadDialog::initLayout()
{
m_form.setupUi(this);

// Add the helpful summary message
if(isMessageAvailable())
m_form.instructions->setText(getOptionalMessage());

m_form.dialogLayout->addLayout(this->createDefaultButtonLayout());
m_form.fileWidget->readSettings("Mantid/Algorithms/Load");
m_initialHeight = this->height();
Expand Down

0 comments on commit 665d3f3

Please sign in to comment.