/src/qtbase/src/gui/kernel/qstylehints.h
Line | Count | Source |
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 QSTYLEHINTS_H |
5 | | #define QSTYLEHINTS_H |
6 | | |
7 | | #include <QtGui/qtguiglobal.h> |
8 | | #include <QtCore/qobject.h> |
9 | | |
10 | | QT_BEGIN_NAMESPACE |
11 | | |
12 | | class QPlatformIntegration; |
13 | | class QStyleHintsPrivate; |
14 | | class QAccessibilityHints; |
15 | | |
16 | | class Q_GUI_EXPORT QStyleHints : public QObject |
17 | | { |
18 | 0 | Q_OBJECT |
19 | 0 | Q_DECLARE_PRIVATE(QStyleHints) Unexecuted instantiation: QStyleHints::d_func() Unexecuted instantiation: QStyleHints::d_func() const |
20 | 0 | Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL) |
21 | 0 | Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false CONSTANT FINAL) |
22 | 0 | #if QT_DEPRECATED_SINCE(6, 5) |
23 | 0 | Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false CONSTANT FINAL) |
24 | 0 | #endif |
25 | 0 | Q_PROPERTY(qreal keyboardAutoRepeatRateF READ keyboardAutoRepeatRateF STORED false CONSTANT FINAL) |
26 | 0 | Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval |
27 | 0 | NOTIFY keyboardInputIntervalChanged FINAL) |
28 | 0 | Q_PROPERTY(int mouseDoubleClickInterval READ mouseDoubleClickInterval |
29 | 0 | NOTIFY mouseDoubleClickIntervalChanged FINAL) |
30 | 0 | Q_PROPERTY(int mousePressAndHoldInterval READ mousePressAndHoldInterval |
31 | 0 | NOTIFY mousePressAndHoldIntervalChanged FINAL) |
32 | 0 | Q_PROPERTY(QChar passwordMaskCharacter READ passwordMaskCharacter STORED false CONSTANT FINAL) |
33 | 0 | Q_PROPERTY(int passwordMaskDelay READ passwordMaskDelay STORED false CONSTANT FINAL) |
34 | 0 | Q_PROPERTY(bool setFocusOnTouchRelease READ setFocusOnTouchRelease STORED false CONSTANT FINAL) |
35 | 0 | Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen STORED false CONSTANT FINAL) |
36 | 0 | Q_PROPERTY(bool showIsMaximized READ showIsMaximized STORED false CONSTANT FINAL) |
37 | 0 | Q_PROPERTY(bool showShortcutsInContextMenus READ showShortcutsInContextMenus |
38 | 0 | WRITE setShowShortcutsInContextMenus NOTIFY showShortcutsInContextMenusChanged FINAL) |
39 | 0 | Q_PROPERTY(Qt::ContextMenuTrigger contextMenuTrigger READ contextMenuTrigger WRITE |
40 | 0 | setContextMenuTrigger NOTIFY contextMenuTriggerChanged FINAL) |
41 | 0 | Q_PROPERTY(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL) |
42 | 0 | Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL) |
43 | 0 | Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL) |
44 | 0 | Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL) |
45 | 0 | Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior |
46 | 0 | NOTIFY tabFocusBehaviorChanged FINAL) |
47 | 0 | Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL) |
48 | 0 | Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects |
49 | 0 | NOTIFY useHoverEffectsChanged FINAL) |
50 | 0 | Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL) |
51 | 0 | Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold |
52 | 0 | WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged |
53 | 0 | FINAL) |
54 | 0 | Q_PROPERTY(int mouseDoubleClickDistance READ mouseDoubleClickDistance STORED false CONSTANT |
55 | 0 | FINAL) |
56 | 0 | Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL) |
57 | 0 | Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme WRITE setColorScheme |
58 | 0 | RESET unsetColorScheme NOTIFY colorSchemeChanged FINAL) |
59 | 0 | Q_PROPERTY(bool menuSelectionWraps READ menuSelectionWraps STORED false CONSTANT FINAL REVISION(6, 10)) |
60 | 0 | Q_PROPERTY(const QAccessibilityHints* accessibility READ accessibility CONSTANT FINAL REVISION(6, 10)) |
61 | 0 | Q_PROPERTY(int toolTipWakeUpDelay READ toolTipWakeUpDelay WRITE setToolTipWakeUpDelay |
62 | 0 | NOTIFY toolTipWakeUpDelayChanged FINAL REVISION(6, 12)) |
63 | 0 |
|
64 | 0 | public: |
65 | 0 | void setMouseDoubleClickInterval(int mouseDoubleClickInterval); |
66 | 0 | int mouseDoubleClickInterval() const; |
67 | 0 | int mouseDoubleClickDistance() const; |
68 | 0 | int touchDoubleTapDistance() const; |
69 | 0 | void setMousePressAndHoldInterval(int mousePressAndHoldInterval); |
70 | 0 | int mousePressAndHoldInterval() const; |
71 | 0 | void setStartDragDistance(int startDragDistance); |
72 | 0 | int startDragDistance() const; |
73 | 0 | void setStartDragTime(int startDragTime); |
74 | 0 | int startDragTime() const; |
75 | 0 | int startDragVelocity() const; |
76 | 0 | void setKeyboardInputInterval(int keyboardInputInterval); |
77 | 0 | int keyboardInputInterval() const; |
78 | 0 | #if QT_DEPRECATED_SINCE(6, 5) |
79 | 0 | QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead") |
80 | 0 | int keyboardAutoRepeatRate() const; |
81 | 0 | #endif |
82 | 0 | qreal keyboardAutoRepeatRateF() const; |
83 | 0 | void setCursorFlashTime(int cursorFlashTime); |
84 | 0 | int cursorFlashTime() const; |
85 | 0 | bool showIsFullScreen() const; |
86 | 0 | bool showIsMaximized() const; |
87 | 0 | bool showShortcutsInContextMenus() const; |
88 | 0 | void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus); |
89 | 0 | Qt::ContextMenuTrigger contextMenuTrigger() const; |
90 | 0 | void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger); |
91 | 0 | bool menuSelectionWraps() const; |
92 | 0 | int passwordMaskDelay() const; |
93 | 0 | QChar passwordMaskCharacter() const; |
94 | 0 | qreal fontSmoothingGamma() const; |
95 | 0 | bool useRtlExtensions() const; |
96 | 0 | bool setFocusOnTouchRelease() const; |
97 | 0 | Qt::TabFocusBehavior tabFocusBehavior() const; |
98 | 0 | void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior); |
99 | 0 | bool singleClickActivation() const; |
100 | 0 | bool useHoverEffects() const; |
101 | 0 | void setUseHoverEffects(bool useHoverEffects); |
102 | 0 | int wheelScrollLines() const; |
103 | 0 | void setWheelScrollLines(int scrollLines); |
104 | 0 | void setMouseQuickSelectionThreshold(int threshold); |
105 | 0 | int mouseQuickSelectionThreshold() const; |
106 | 0 | Qt::ColorScheme colorScheme() const; |
107 | 0 | void setColorScheme(Qt::ColorScheme scheme); |
108 | 0 | void unsetColorScheme() { setColorScheme(Qt::ColorScheme::Unknown); } |
109 | | const QAccessibilityHints* accessibility() const; |
110 | | int toolTipWakeUpDelay() const; |
111 | | void setToolTipWakeUpDelay(int toolTipWakeUpDelay); |
112 | | |
113 | | Q_SIGNALS: |
114 | | void cursorFlashTimeChanged(int cursorFlashTime); |
115 | | void keyboardInputIntervalChanged(int keyboardInputInterval); |
116 | | void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval); |
117 | | void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval); |
118 | | void startDragDistanceChanged(int startDragDistance); |
119 | | void startDragTimeChanged(int startDragTime); |
120 | | void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior); |
121 | | void useHoverEffectsChanged(bool useHoverEffects); |
122 | | void showShortcutsInContextMenusChanged(bool); |
123 | | void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger); |
124 | | void wheelScrollLinesChanged(int scrollLines); |
125 | | void mouseQuickSelectionThresholdChanged(int threshold); |
126 | | void colorSchemeChanged(Qt::ColorScheme colorScheme); |
127 | | Q_REVISION(6, 12) void toolTipWakeUpDelayChanged(int toolTipWakeUpDelay); |
128 | | |
129 | | private: |
130 | | friend class QGuiApplication; |
131 | | QStyleHints(); |
132 | | }; |
133 | | |
134 | | QT_END_NAMESPACE |
135 | | |
136 | | #endif |