1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSCROLLAREA_P_H
5#define QSCROLLAREA_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19
20#include "private/qabstractscrollarea_p.h"
21#include <QtWidgets/qscrollbar.h>
22
23#include <QtCore/qpointer.h>
24
25QT_REQUIRE_CONFIG(scrollarea);
26
27QT_BEGIN_NAMESPACE
28
29class QScrollAreaPrivate: public QAbstractScrollAreaPrivate
30{
31 Q_DECLARE_PUBLIC(QScrollArea)
32
33public:
34 QScrollAreaPrivate(): resizable(false) {}
35 void updateScrollBars();
36 void updateWidgetPosition();
37 QPointer<QWidget> widget;
38 mutable QSize widgetSize;
39 bool resizable;
40 Qt::Alignment alignment;
41};
42
43QT_END_NAMESPACE
44
45#endif
46

source code of qtbase/src/widgets/widgets/qscrollarea_p.h