BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
JobRealTimeToolBar.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/JobWidgets/JobRealTimeToolBar.cpp
6 //! @brief Implements class JobRealTimeToolBar
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
16 #include <QToolButton>
17 
19  : StyledToolBar(parent), m_resetParametersButton(new QToolButton)
20 {
21  setMinimumSize(minimumHeight(), minimumHeight());
22 
23  m_resetParametersButton->setText("Reset values");
24  m_resetParametersButton->setIcon(QIcon(":/images/undo-variant.svg"));
25  m_resetParametersButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
26  m_resetParametersButton->setToolTip("Reset parameter tree to initial values");
27  addWidget(m_resetParametersButton);
28 
29  connect(m_resetParametersButton, &QToolButton::clicked, this,
31 }
Defines class JobRealTimeToolBar.
QToolButton * m_resetParametersButton
JobRealTimeToolBar(QWidget *parent=nullptr)
The StyledToolBar class represents our standard narrow toolbar with the height 24 pixels.
Definition: StyledToolBar.h:22