File indexing completed on 2025-01-18 10:08:16
0001
0002
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(int startDragDistance READ startDragDistance NOTIFY startDragDistanceChanged FINAL)
0040 Q_PROPERTY(int startDragTime READ startDragTime NOTIFY startDragTimeChanged FINAL)
0041 Q_PROPERTY(int startDragVelocity READ startDragVelocity STORED false CONSTANT FINAL)
0042 Q_PROPERTY(bool useRtlExtensions READ useRtlExtensions STORED false CONSTANT FINAL)
0043 Q_PROPERTY(Qt::TabFocusBehavior tabFocusBehavior READ tabFocusBehavior
0044 NOTIFY tabFocusBehaviorChanged FINAL)
0045 Q_PROPERTY(bool singleClickActivation READ singleClickActivation STORED false CONSTANT FINAL)
0046 Q_PROPERTY(bool useHoverEffects READ useHoverEffects WRITE setUseHoverEffects
0047 NOTIFY useHoverEffectsChanged FINAL)
0048 Q_PROPERTY(int wheelScrollLines READ wheelScrollLines NOTIFY wheelScrollLinesChanged FINAL)
0049 Q_PROPERTY(int mouseQuickSelectionThreshold READ mouseQuickSelectionThreshold
0050 WRITE setMouseQuickSelectionThreshold NOTIFY mouseQuickSelectionThresholdChanged
0051 FINAL)
0052 Q_PROPERTY(int mouseDoubleClickDistance READ mouseDoubleClickDistance STORED false CONSTANT
0053 FINAL)
0054 Q_PROPERTY(int touchDoubleTapDistance READ touchDoubleTapDistance STORED false CONSTANT FINAL)
0055 Q_PROPERTY(Qt::ColorScheme colorScheme READ colorScheme NOTIFY colorSchemeChanged FINAL)
0056
0057 public:
0058 void setMouseDoubleClickInterval(int mouseDoubleClickInterval);
0059 int mouseDoubleClickInterval() const;
0060 int mouseDoubleClickDistance() const;
0061 int touchDoubleTapDistance() const;
0062 void setMousePressAndHoldInterval(int mousePressAndHoldInterval);
0063 int mousePressAndHoldInterval() const;
0064 void setStartDragDistance(int startDragDistance);
0065 int startDragDistance() const;
0066 void setStartDragTime(int startDragTime);
0067 int startDragTime() const;
0068 int startDragVelocity() const;
0069 void setKeyboardInputInterval(int keyboardInputInterval);
0070 int keyboardInputInterval() const;
0071 #if QT_DEPRECATED_SINCE(6, 5)
0072 QT_DEPRECATED_VERSION_X_6_5("Use keyboardAutoRepeatRateF() instead")
0073 int keyboardAutoRepeatRate() const;
0074 #endif
0075 qreal keyboardAutoRepeatRateF() const;
0076 void setCursorFlashTime(int cursorFlashTime);
0077 int cursorFlashTime() const;
0078 bool showIsFullScreen() const;
0079 bool showIsMaximized() const;
0080 bool showShortcutsInContextMenus() const;
0081 void setShowShortcutsInContextMenus(bool showShortcutsInContextMenus);
0082 int passwordMaskDelay() const;
0083 QChar passwordMaskCharacter() const;
0084 qreal fontSmoothingGamma() const;
0085 bool useRtlExtensions() const;
0086 bool setFocusOnTouchRelease() const;
0087 Qt::TabFocusBehavior tabFocusBehavior() const;
0088 void setTabFocusBehavior(Qt::TabFocusBehavior tabFocusBehavior);
0089 bool singleClickActivation() const;
0090 bool useHoverEffects() const;
0091 void setUseHoverEffects(bool useHoverEffects);
0092 int wheelScrollLines() const;
0093 void setWheelScrollLines(int scrollLines);
0094 void setMouseQuickSelectionThreshold(int threshold);
0095 int mouseQuickSelectionThreshold() const;
0096 Qt::ColorScheme colorScheme() const;
0097
0098 Q_SIGNALS:
0099 void cursorFlashTimeChanged(int cursorFlashTime);
0100 void keyboardInputIntervalChanged(int keyboardInputInterval);
0101 void mouseDoubleClickIntervalChanged(int mouseDoubleClickInterval);
0102 void mousePressAndHoldIntervalChanged(int mousePressAndHoldInterval);
0103 void startDragDistanceChanged(int startDragDistance);
0104 void startDragTimeChanged(int startDragTime);
0105 void tabFocusBehaviorChanged(Qt::TabFocusBehavior tabFocusBehavior);
0106 void useHoverEffectsChanged(bool useHoverEffects);
0107 void showShortcutsInContextMenusChanged(bool);
0108 void wheelScrollLinesChanged(int scrollLines);
0109 void mouseQuickSelectionThresholdChanged(int threshold);
0110 void colorSchemeChanged(Qt::ColorScheme colorScheme);
0111
0112 private:
0113 friend class QGuiApplication;
0114 QStyleHints();
0115 };
0116
0117 QT_END_NAMESPACE
0118
0119 #endif