BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
adjustingscrollarea.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/view/mvvm/widgets/adjustingscrollarea.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_ADJUSTINGSCROLLAREA_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_ADJUSTINGSCROLLAREA_H
17 
18 #include "mvvm/view_export.h"
19 #include <QScrollArea>
20 
21 namespace ModelView {
22 
23 //! Modification of standard scroll area, which makes widget with dynamic layout occupy the whole
24 //! available space.
25 
26 class MVVM_VIEW_EXPORT AdjustingScrollArea : public QScrollArea {
27  Q_OBJECT
28 
29 public:
30  AdjustingScrollArea(QWidget* parent = 0);
31  void setWidget(QWidget* w);
32 
33  QSize sizeHint() const;
34 
35 private:
36  bool eventFilter(QObject* obj, QEvent* ev);
37 };
38 
39 } // namespace ModelView
40 
41 #endif // BORNAGAIN_MVVM_VIEW_MVVM_WIDGETS_ADJUSTINGSCROLLAREA_H
Modification of standard scroll area, which makes widget with dynamic layout occupy the whole availab...
materialitems.h Collection of materials to populate MaterialModel.