Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-17 08:20:51

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QSTYLEHINTS_H
0005 #define QSTYLEHINTS_H
0006 
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtCore/qobject.h>
0009 
0010 QT_BEGIN_NAMESPACE
0011 
0012 class QPlatformIntegration;
0013 class QStyleHintsPrivate;
0014 class QAccessibilityHints;
0015 
0016 class Q_GUI_EXPORT QStyleHints : public QObject
0017 {
0018     Q_OBJECT
0019     Q_DECLARE_PRIVATE(QStyleHints)
0020     Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL)
0021     Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false CONSTANT FINAL)
0022 #if QT_DEPRECATED_SINCE(6, 5)
0023     Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false CONSTANT FINAL)
0024 #endif
0025     Q_PROPERTY(qreal keyboardAutoRepeatRateF READ keyboardAutoRepeatRateF STORED false CONSTANT FINAL)
0026     Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval
0027                NOTIFY keyboardInputIntervalChanged FINAL)
0028     Q_PROPERTY(int mouseDoubleClickInterval READ mouseDoubleClickInterval
0029                NOTIFY mouseDoubleClickIntervalChanged FINAL)
0030     Q_PROPERTY(int mousePressAndHoldInterval READ mousePressAndHoldInterval
0031                NOTIFY mousePressAndHoldIntervalChanged FINAL)
0032     Q_PROPERTY(QChar passwordMaskCharacter READ passwordMaskCharacter STORED false CONSTANT FINAL)
0033     Q_PROPERTY(int passwordMaskDelay READ passwordMaskDelay STORED false CONSTANT FINAL)
0034     Q_PROPERTY(bool setFocusOnTouchRelease READ setFocusOnTouchRelease STORED false CONSTANT FINAL)
0035     Q_PROPERTY(bool showIsFullScreen READ showIsFullScreen STORED false CONSTANT FINAL)
0036     Q_PROPERTY(bool showIsMaximized READ showIsMaximized STORED false CONSTANT FINAL)
0037     Q_PROPERTY(bool showShortcutsInContextMenus READ showShortcutsInContextMenus
0038                WRITE setShowShortcutsInContextMenus NOTIFY showShortcutsInContextMenusChanged FINAL)
0039     Q_PROPERTY(Qt::ContextMenuTrigger contextMenuTrigger READ contextMenuTrigger WRITE
0040                    setContextMenuTrigger NOTIFY contextMenuTriggerChanged FINAL)
0041     Q_PROPERTY(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL)
0042     Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL)
0043     Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL)
0044     Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL)
0045     Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior
0046                NOTIFY tabFocusBehaviorChanged FINAL)
0047     Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL)
0048     Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects
0049                NOTIFY useHoverEffectsChanged FINAL)
0050     Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL)
0051     Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold
0052                WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged
0053                FINAL)
0054     Q_PROPERTY(int mouseDoubleClickDistance READ mouseDoubleClickDistance STORED false CONSTANT
0055                FINAL)
0056     Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL)
0057     Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme WRITE setColorScheme
0058                RESET unsetColorScheme NOTIFY colorSchemeChanged FINAL)
0059     Q_PROPERTY(bool menuSelectionWraps READ menuSelectionWraps STORED false CONSTANT FINAL REVISION(6, 10))
0060     Q_PROPERTY(const QAccessibilityHints* accessibility READ accessibility CONSTANT FINAL REVISION(6, 10))
0061 
0062 public:
0063     void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
0064     int mouseDoubleClickInterval() const;
0065     int mouseDoubleClickDistance() const;
0066     int touchDoubleTapDistance() const;
0067     void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
0068     int mousePressAndHoldInterval() const;
0069     void setStartDragDistance(int startDragDistance);
0070     int startDragDistance() const;
0071     void setStartDragTime(int startDragTime);
0072     int startDragTime() const;
0073     int startDragVelocity() const;
0074     void setKeyboardInputInterval(int keyboardInputInterval);
0075     int keyboardInputInterval() const;
0076 #if QT_DEPRECATED_SINCE(6, 5)
0077     QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
0078     int keyboardAutoRepeatRate() const;
0079 #endif
0080     qreal keyboardAutoRepeatRateF() const;
0081     void setCursorFlashTime(int cursorFlashTime);
0082     int cursorFlashTime() const;
0083     bool showIsFullScreen() const;
0084     bool showIsMaximized() const;
0085     bool showShortcutsInContextMenus() const;
0086     void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
0087     Qt::ContextMenuTrigger contextMenuTrigger() const;
0088     void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger);
0089     bool menuSelectionWraps() const;
0090     int passwordMaskDelay() const;
0091     QChar passwordMaskCharacter() const;
0092     qreal fontSmoothingGamma() const;
0093     bool useRtlExtensions() const;
0094     bool setFocusOnTouchRelease() const;
0095     Qt::TabFocusBehavior tabFocusBehavior() const;
0096     void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
0097     bool singleClickActivation() const;
0098     bool useHoverEffects() const;
0099     void setUseHoverEffects(bool useHoverEffects);
0100     int wheelScrollLines() const;
0101     void setWheelScrollLines(int scrollLines);
0102     void setMouseQuickSelectionThreshold(int threshold);
0103     int mouseQuickSelectionThreshold() const;
0104     Qt::ColorScheme colorScheme() const;
0105     void setColorScheme(Qt::ColorScheme scheme);
0106     void unsetColorScheme() { setColorScheme(Qt::ColorScheme::Unknown); }
0107     const QAccessibilityHints* accessibility() const;
0108 
0109 Q_SIGNALS:
0110     void cursorFlashTimeChanged(int cursorFlashTime);
0111     void keyboardInputIntervalChanged(int keyboardInputInterval);
0112     void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
0113     void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
0114     void startDragDistanceChanged(int startDragDistance);
0115     void startDragTimeChanged(int startDragTime);
0116     void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior);
0117     void useHoverEffectsChanged(bool useHoverEffects);
0118     void showShortcutsInContextMenusChanged(bool);
0119     void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger);
0120     void wheelScrollLinesChanged(int scrollLines);
0121     void mouseQuickSelectionThresholdChanged(int threshold);
0122     void colorSchemeChanged(Qt::ColorScheme colorScheme);
0123 
0124 private:
0125     friend class QGuiApplication;
0126     QStyleHints();
0127 };
0128 
0129 QT_END_NAMESPACE
0130 
0131 #endif