Ticket #10578: mdf-resize-func-prop-browser.diff

File mdf-resize-func-prop-browser.diff, 805 bytes (added by Dan Nixon, 5 years ago)
  • Code/Mantid/MantidQt/MantidWidgets/src/FunctionBrowser.cpp

    diff --git a/Code/Mantid/MantidQt/MantidWidgets/src/FunctionBrowser.cpp b/Code/Mantid/MantidQt/MantidWidgets/src/FunctionBrowser.cpp
    index 64e61a5..17d6458 100644
    a b void FunctionBrowser::createBrowser() 
    148148  WorkspaceEditorFactory* workspaceEditorFactory = new WorkspaceEditorFactory(this); 
    149149 
    150150  m_browser = new QtTreePropertyBrowser(NULL,options); 
     151 
     152  if ( m_multiDataset ) 
     153  { 
     154    m_browser->setResizeMode(QtTreePropertyBrowser::Interactive); 
     155  } 
     156 
    151157  // assign factories to property managers 
    152158  m_browser->setFactoryForManager(m_parameterManager, parameterEditorFactory); 
    153159  m_browser->setFactoryForManager(m_attributeStringManager, lineEditFactory);