Coverage Report

Created: 2026-08-14 08:24

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/kernel/qstylehints_p.h
Line
Count
Source
1
// Copyright (C) 2022 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 QSTYLEHINTS_P_H
6
#define QSTYLEHINTS_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 <qpa/qplatformintegration.h>
20
#include <QPalette>
21
#include <private/qguiapplication_p.h>
22
#include "qstylehints.h"
23
#include "qaccessibilityhints.h"
24
25
QT_BEGIN_NAMESPACE
26
27
class QStyleHintsPrivate : public QObjectPrivate
28
{
29
0
    Q_DECLARE_PUBLIC(QStyleHints)
Unexecuted instantiation: QStyleHintsPrivate::q_func()
Unexecuted instantiation: QStyleHintsPrivate::q_func() const
30
0
public:
31
0
    int m_mouseDoubleClickInterval = -1;
32
0
    int m_mousePressAndHoldInterval = -1;
33
0
    int m_startDragDistance = -1;
34
0
    int m_startDragTime = -1;
35
0
    int m_keyboardInputInterval = -1;
36
0
    int m_cursorFlashTime = -1;
37
0
    int m_tabFocusBehavior = -1;
38
0
    int m_uiEffects = -1;
39
0
    int m_showShortcutsInContextMenus = -1;
40
0
    int m_contextMenuTrigger = -1;
41
0
    int m_wheelScrollLines = -1;
42
0
    int m_mouseQuickSelectionThreshold = -1;
43
0
    int m_mouseDoubleClickDistance = -1;
44
0
    int m_touchDoubleTapDistance = -1;
45
0
    std::chrono::milliseconds m_toolTipWakeUpDelay{700};
46
0
47
0
    Qt::ColorScheme colorScheme() const { return m_colorScheme; }
48
    void updateColorScheme(Qt::ColorScheme colorScheme);
49
    void update(const QPlatformTheme *theme);
50
51
    QAccessibilityHints *accessibilityHints() const;
52
53
    static QStyleHintsPrivate *get(QStyleHints *q);
54
55
private:
56
    Qt::ColorScheme m_colorScheme = Qt::ColorScheme::Unknown;
57
    QAccessibilityHints* m_accessibilityHints = nullptr;
58
};
59
60
QT_END_NAMESPACE
61
62
#endif