BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
StyledToolbar.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Common/StyledToolbar.h
6 //! @brief Defines class StyledToolbar
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 
15 #ifndef BORNAGAIN_GUI_VIEW_COMMON_STYLEDTOOLBAR_H
16 #define BORNAGAIN_GUI_VIEW_COMMON_STYLEDTOOLBAR_H
17 
18 #include <QToolBar>
19 
20 //! The StyledToolbar class represents our standard narrow toolbar with the height 24 pixels.
21 
22 class StyledToolbar : public QToolBar {
23  Q_OBJECT
24 
25 public:
26  explicit StyledToolbar(QWidget* parent = nullptr);
27  void addStyledSeparator();
28  void addSpacing(int width = 2);
29  void addStyledExpand();
30 
31 protected:
32  void contextMenuEvent(QContextMenuEvent*) override;
33 };
34 
35 #endif // BORNAGAIN_GUI_VIEW_COMMON_STYLEDTOOLBAR_H
The StyledToolbar class represents our standard narrow toolbar with the height 24 pixels.
Definition: StyledToolbar.h:22
void addStyledSeparator()
void addStyledExpand()
StyledToolbar(QWidget *parent=nullptr)
void addSpacing(int width=2)
Width of the spacing between buttons.
void contextMenuEvent(QContextMenuEvent *) override