Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qscrollbar_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QSCROLLBAR_P_H
6#define QSCROLLBAR_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#include "qscrollbar.h"
21#include "private/qabstractslider_p.h"
22#include "qstyle.h"
23
24#include <QtCore/qbasictimer.h>
25
27
28QT_BEGIN_NAMESPACE
29
30class QScrollBarPrivate : public QAbstractSliderPrivate
31{
32 Q_DECLARE_PUBLIC(QScrollBar)
33public:
34 QStyle::SubControl pressedControl;
35 bool pointerOutsidePressedControl;
36
37 int clickOffset, snapBackPosition;
38
39 void activateControl(uint control, int threshold = 500);
40 void stopRepeatAction();
41 int pixelPosToRangeValue(int pos) const;
42 void init();
43 bool updateHoverControl(const QPoint &pos);
44 QStyle::SubControl newHoverControl(const QPoint &pos);
45
46 QStyle::SubControl hoverControl;
47 QRect hoverRect;
48
49 bool transient;
50 void setTransient(bool value);
51
52 bool flashed;
53 QBasicTimer flashTimer;
54 void flash();
55};
56
57QT_END_NAMESPACE
58
59#endif // QSCROLLBAR_P_H
QT_REQUIRE_CONFIG(thread)
#define HORIZONTAL