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
4#ifndef QSCROLLBAR_P_H
5#define QSCROLLBAR_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#include "qscrollbar.h"
20#include "private/qabstractslider_p.h"
21#include "qstyle.h"
22
23#include <QtCore/qbasictimer.h>
24
26
27QT_BEGIN_NAMESPACE
28
29class QScrollBarPrivate : public QAbstractSliderPrivate
30{
31 Q_DECLARE_PUBLIC(QScrollBar)
32public:
33 QStyle::SubControl pressedControl;
34 bool pointerOutsidePressedControl;
35
36 int clickOffset, snapBackPosition;
37
38 void activateControl(uint control, int threshold = 500);
39 void stopRepeatAction();
40 int pixelPosToRangeValue(int pos) const;
41 void init();
42 bool updateHoverControl(const QPoint &pos);
43 QStyle::SubControl newHoverControl(const QPoint &pos);
44
45 QStyle::SubControl hoverControl;
46 QRect hoverRect;
47
48 bool transient;
49 void setTransient(bool value);
50
51 bool flashed;
52 QBasicTimer flashTimer;
53 void flash();
54};
55
56QT_END_NAMESPACE
57
58#endif // QSCROLLBAR_P_H
QT_REQUIRE_CONFIG(itemmodel)
#define HORIZONTAL