BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DockWidgetInfo.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Common/DockWidgetInfo.cpp
6 //! @brief Implements 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 
16 
18  : m_dock(nullptr)
19  , m_widget(nullptr)
20  , m_area(Qt::NoDockWidgetArea)
21 {
22 }
23 
24 DockWidgetInfo::DockWidgetInfo(QDockWidget* dock, QWidget* widget, Qt::DockWidgetArea area)
25  : m_dock(dock)
26  , m_widget(widget)
27  , m_area(area)
28 {
29 }
30 
31 QDockWidget* DockWidgetInfo::dock()
32 {
33  return m_dock;
34 }
35 
37 {
38  return m_widget;
39 }
40 
41 Qt::DockWidgetArea DockWidgetInfo::area()
42 {
43  return m_area;
44 }
Defines class DockWidgetInfo.
Qt::DockWidgetArea area()
QDockWidget * m_dock
Qt::DockWidgetArea m_area
QDockWidget * dock()
QWidget * m_widget
QWidget * widget()