Skip to content

Commit

Permalink
Add size policy to algorithm drop down
Browse files Browse the repository at this point in the history
Refs #10158
  • Loading branch information
DanNixon committed Sep 2, 2014
1 parent b5d5816 commit 9760675
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -31,6 +31,12 @@ namespace MantidWidgets
m_findAlg = new FindAlgComboBox;
m_findAlg->setEditable(true);
m_findAlg->completer()->setCompletionMode(QCompleter::PopupCompletion);

// Make the algorithm drop down use all the sapce it can horizontally
QSizePolicy expandHoriz;
expandHoriz.setHorizontalPolicy(QSizePolicy::Expanding);
m_findAlg->setSizePolicy(expandHoriz);

connect(m_findAlg,SIGNAL(enterPressed()),
this,SLOT(executeSelected()));
connect(m_findAlg,SIGNAL(editTextChanged(const QString&)),
Expand All @@ -42,7 +48,6 @@ namespace MantidWidgets
buttonLayout->addWidget(m_execButton);

buttonLayout->addWidget(m_findAlg);
buttonLayout->addStretch();

// Layout the tree and combo box
QVBoxLayout * layout = new QVBoxLayout(this, 0 /*border*/, 4 /*spacing*/);
Expand Down

0 comments on commit 9760675

Please sign in to comment.