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
qstylehints.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 QSTYLEHINTS_H
6#define QSTYLEHINTS_H
7
8#include <QtGui/qtguiglobal.h>
9#include <QtCore/qobject.h>
10
12
13class QPlatformIntegration;
15class QAccessibilityHints;
16
17class Q_GUI_EXPORT QStyleHints : public QObject
18{
19 Q_OBJECT
20 Q_DECLARE_PRIVATE(QStyleHints)
21 Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL)
22 Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false CONSTANT FINAL)
23#if QT_DEPRECATED_SINCE(6, 5)
24 Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false CONSTANT FINAL)
25#endif
26 Q_PROPERTY(qreal keyboardAutoRepeatRateF READ keyboardAutoRepeatRateF STORED false CONSTANT FINAL)
27 Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval
28 NOTIFY keyboardInputIntervalChanged FINAL)
29 Q_PROPERTY(int mouseDoubleClickInterval READ mouseDoubleClickInterval
30 NOTIFY mouseDoubleClickIntervalChanged FINAL)
31 Q_PROPERTY(int mousePressAndHoldInterval READ mousePressAndHoldInterval
32 NOTIFY mousePressAndHoldIntervalChanged FINAL)
33 Q_PROPERTY(QChar passwordMaskCharacter READ passwordMaskCharacter STORED false CONSTANT FINAL)
34 Q_PROPERTY(int passwordMaskDelay READ passwordMaskDelay STORED false CONSTANT FINAL)
35 Q_PROPERTY(bool setFocusOnTouchRelease READ setFocusOnTouchRelease STORED false CONSTANT FINAL)
36 Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen STORED false CONSTANT FINAL)
37 Q_PROPERTY(bool showIsMaximized READ showIsMaximized STORED false CONSTANT FINAL)
38 Q_PROPERTY(bool showShortcutsInContextMenus READ showShortcutsInContextMenus
39 WRITE setShowShortcutsInContextMenus NOTIFY showShortcutsInContextMenusChanged FINAL)
40 Q_PROPERTY(Qt::ContextMenuTrigger contextMenuTrigger READ contextMenuTrigger WRITE
41 setContextMenuTrigger NOTIFY contextMenuTriggerChanged FINAL)
42 Q_PROPERTY(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL)
43 Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL)
44 Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL)
45 Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL)
46 Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior
47 NOTIFY tabFocusBehaviorChanged FINAL)
48 Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL)
49 Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects
50 NOTIFY useHoverEffectsChanged FINAL)
51 Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL)
52 Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold
53 WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged
54 FINAL)
55 Q_PROPERTY(int mouseDoubleClickDistance READ mouseDoubleClickDistance STORED false CONSTANT
56 FINAL)
57 Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL)
58 Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme WRITE setColorScheme
59 RESET unsetColorScheme NOTIFY colorSchemeChanged FINAL)
60 Q_PROPERTY(bool menuSelectionWraps READ menuSelectionWraps STORED false CONSTANT FINAL REVISION(6, 10))
61 Q_PROPERTY(const QAccessibilityHints* accessibility READ accessibility CONSTANT FINAL REVISION(6, 10))
62 Q_PROPERTY(int toolTipWakeUpDelay READ toolTipWakeUpDelay WRITE setToolTipWakeUpDelay
63 NOTIFY toolTipWakeUpDelayChanged FINAL REVISION(6, 12))
64
65public:
66 void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
67 int mouseDoubleClickInterval() const;
68 int mouseDoubleClickDistance() const;
69 int touchDoubleTapDistance() const;
70 void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
71 int mousePressAndHoldInterval() const;
72 void setStartDragDistance(int startDragDistance);
73 int startDragDistance() const;
74 void setStartDragTime(int startDragTime);
75 int startDragTime() const;
76 int startDragVelocity() const;
77 void setKeyboardInputInterval(int keyboardInputInterval);
78 int keyboardInputInterval() const;
79#if QT_DEPRECATED_SINCE(6, 5)
80 QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
81 int keyboardAutoRepeatRate() const;
82#endif
83 qreal keyboardAutoRepeatRateF() const;
84 void setCursorFlashTime(int cursorFlashTime);
85 int cursorFlashTime() const;
86 bool showIsFullScreen() const;
87 bool showIsMaximized() const;
88 bool showShortcutsInContextMenus() const;
89 void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
90 Qt::ContextMenuTrigger contextMenuTrigger() const;
91 void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger);
92 bool menuSelectionWraps() const;
93 int passwordMaskDelay() const;
94 QChar passwordMaskCharacter() const;
95 qreal fontSmoothingGamma() const;
96 bool useRtlExtensions() const;
97 bool setFocusOnTouchRelease() const;
98 Qt::TabFocusBehavior tabFocusBehavior() const;
99 void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
100 bool singleClickActivation() const;
101 bool useHoverEffects() const;
102 void setUseHoverEffects(bool useHoverEffects);
103 int wheelScrollLines() const;
104 void setWheelScrollLines(int scrollLines);
105 void setMouseQuickSelectionThreshold(int threshold);
106 int mouseQuickSelectionThreshold() const;
107 Qt::ColorScheme colorScheme() const;
108 void setColorScheme(Qt::ColorScheme scheme);
109 void unsetColorScheme() { setColorScheme(Qt::ColorScheme::Unknown); }
110 const QAccessibilityHints* accessibility() const;
111 int toolTipWakeUpDelay() const;
112 void setToolTipWakeUpDelay(int toolTipWakeUpDelay);
114Q_SIGNALS:
115 void cursorFlashTimeChanged(int cursorFlashTime);
116 void keyboardInputIntervalChanged(int keyboardInputInterval);
117 void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
118 void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
119 void startDragDistanceChanged(int startDragDistance);
120 void startDragTimeChanged(int startDragTime);
121 void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior);
122 void useHoverEffectsChanged(bool useHoverEffects);
123 void showShortcutsInContextMenusChanged(bool);
124 void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger);
125 void wheelScrollLinesChanged(int scrollLines);
126 void mouseQuickSelectionThresholdChanged(int threshold);
127 void colorSchemeChanged(Qt::ColorScheme colorScheme);
128 Q_REVISION(6, 12) void toolTipWakeUpDelayChanged(int toolTipWakeUpDelay);
129
130private:
131 friend class QGuiApplication;
132 QStyleHints();
133};
134
135QT_END_NAMESPACE
136
137#endif
The QActionGroup class groups actions together.
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:31
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
Definition qstylehints.h:18
QT_REQUIRE_CONFIG(action)
Combined button and popup list for selecting options.
#define QAPP_CHECK(functionName)
Definition qaction.cpp:19
static QString qt_strippedText(QString s)
Definition qaction.cpp:32
QT_REQUIRE_CONFIG(animation)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2582