BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DockWidgetInfo.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Common/DockWidgetInfo.h
6 //! @brief Defines class DockWidgetInfo
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_DOCKWIDGETINFO_H
16 #define BORNAGAIN_GUI_VIEW_COMMON_DOCKWIDGETINFO_H
17 
18 #include <qnamespace.h>
19 
20 class QDockWidget;
21 class QWidget;
22 
23 //! Holds information about the widget and its dock.
24 
26 public:
28  DockWidgetInfo(QDockWidget* dock, QWidget* widget, Qt::DockWidgetArea area);
29 
30  QDockWidget* dock();
31  QWidget* widget();
32  Qt::DockWidgetArea area();
33 
34 private:
35  QDockWidget* m_dock;
36  QWidget* m_widget;
37  Qt::DockWidgetArea m_area;
38 };
39 
40 #endif // BORNAGAIN_GUI_VIEW_COMMON_DOCKWIDGETINFO_H
Holds information about the widget and its dock.
Qt::DockWidgetArea area()
QDockWidget * m_dock
Qt::DockWidgetArea m_area
QDockWidget * dock()
QWidget * m_widget
QWidget * widget()