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 | QT_REQUIRE_CONFIG(scrollarea); |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | class QScrollAreaPrivate: public QAbstractScrollAreaPrivate |
28 | { |
29 | Q_DECLARE_PUBLIC(QScrollArea) |
30 | |
31 | public: |
32 | QScrollAreaPrivate(): resizable(false) {} |
33 | void updateScrollBars(); |
34 | void updateWidgetPosition(); |
35 | QPointer<QWidget> widget; |
36 | mutable QSize widgetSize; |
37 | bool resizable; |
38 | Qt::Alignment alignment; |
39 | }; |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif |
44 | |