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
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/coregui/Views/CommonWidgets/AdjustingScrollArea.h
6
//! @brief Defines class AdjustingScrollArea
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_COREGUI_VIEWS_COMMONWIDGETS_ADJUSTINGSCROLLAREA_H
16
#define BORNAGAIN_GUI_COREGUI_VIEWS_COMMONWIDGETS_ADJUSTINGSCROLLAREA_H
17
18
#include <QScrollArea>
19
20
//! Modification of standard scroll area, which makes widget with dynamic layout ocuupy whole
21
//! available space.
22
23
class
AdjustingScrollArea
:
public
QScrollArea {
24
Q_OBJECT
25
26
public
:
27
AdjustingScrollArea
(QWidget* parent = 0);
28
void
setWidget
(QWidget* w);
29
30
QSize
sizeHint
()
const
;
31
32
private
:
33
bool
eventFilter
(QObject* obj, QEvent* ev);
34
};
35
36
#endif
// BORNAGAIN_GUI_COREGUI_VIEWS_COMMONWIDGETS_ADJUSTINGSCROLLAREA_H
AdjustingScrollArea
Modification of standard scroll area, which makes widget with dynamic layout ocuupy whole available s...
Definition:
AdjustingScrollArea.h:23
AdjustingScrollArea::setWidget
void setWidget(QWidget *w)
Definition:
AdjustingScrollArea.cpp:28
AdjustingScrollArea::eventFilter
bool eventFilter(QObject *obj, QEvent *ev)
Definition:
AdjustingScrollArea.cpp:41
AdjustingScrollArea::AdjustingScrollArea
AdjustingScrollArea(QWidget *parent=0)
Definition:
AdjustingScrollArea.cpp:19
AdjustingScrollArea::sizeHint
QSize sizeHint() const
Definition:
AdjustingScrollArea.cpp:34
GUI
coregui
Views
CommonWidgets
AdjustingScrollArea.h
Generated by
1.9.1