Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:27:38

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 
0013 class QPlatformIntegration;
0014 class QStyleHintsPrivate;
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 
0060 public:
0061     void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
0062     int mouseDoubleClickInterval() const;
0063     int mouseDoubleClickDistance() const;
0064     int touchDoubleTapDistance() const;
0065     void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
0066     int mousePressAndHoldInterval() const;
0067     void setStartDragDistance(int startDragDistance);
0068     int startDragDistance() const;
0069     void setStartDragTime(int startDragTime);
0070     int startDragTime() const;
0071     int startDragVelocity() const;
0072     void setKeyboardInputInterval(int keyboardInputInterval);
0073     int keyboardInputInterval() const;
0074 #if QT_DEPRECATED_SINCE(6, 5)
0075     QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
0076     int keyboardAutoRepeatRate() const;
0077 #endif
0078     qreal keyboardAutoRepeatRateF() const;
0079     void setCursorFlashTime(int cursorFlashTime);
0080     int cursorFlashTime() const;
0081     bool showIsFullScreen() const;
0082     bool showIsMaximized() const;
0083     bool showShortcutsInContextMenus() const;
0084     void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
0085     Qt::ContextMenuTrigger contextMenuTrigger() const;
0086     void setContextMenuTrigger(Qt::ContextMenuTrigger contextMenuTrigger);
0087     int passwordMaskDelay() const;
0088     QChar passwordMaskCharacter() const;
0089     qreal fontSmoothingGamma() const;
0090     bool useRtlExtensions() const;
0091     bool setFocusOnTouchRelease() const;
0092     Qt::TabFocusBehavior tabFocusBehavior() const;
0093     void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
0094     bool singleClickActivation() const;
0095     bool useHoverEffects() const;
0096     void setUseHoverEffects(bool useHoverEffects);
0097     int wheelScrollLines() const;
0098     void setWheelScrollLines(int scrollLines);
0099     void setMouseQuickSelectionThreshold(int threshold);
0100     int mouseQuickSelectionThreshold() const;
0101     Qt::ColorScheme colorScheme() const;
0102     void setColorScheme(Qt::ColorScheme scheme);
0103     void unsetColorScheme() { setColorScheme(Qt::ColorScheme::Unknown); }
0104 
0105 Q_SIGNALS:
0106     void cursorFlashTimeChanged(int cursorFlashTime);
0107     void keyboardInputIntervalChanged(int keyboardInputInterval);
0108     void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
0109     void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
0110     void startDragDistanceChanged(int startDragDistance);
0111     void startDragTimeChanged(int startDragTime);
0112     void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior);
0113     void useHoverEffectsChanged(bool useHoverEffects);
0114     void showShortcutsInContextMenusChanged(bool);
0115     void contextMenuTriggerChanged(Qt::ContextMenuTrigger contextMenuTrigger);
0116     void wheelScrollLinesChanged(int scrollLines);
0117     void mouseQuickSelectionThresholdChanged(int threshold);
0118     void colorSchemeChanged(Qt::ColorScheme colorScheme);
0119 
0120 private:
0121     friend class QGuiApplication;
0122     QStyleHints();
0123 };
0124 
0125 QT_END_NAMESPACE
0126 
0127 #endif