diff options
Diffstat (limited to 'src/widgets/styles')
-rw-r--r-- | src/widgets/styles/qcommonstyle.cpp | 3 | ||||
-rw-r--r-- | src/widgets/styles/qstyle.cpp | 4 | ||||
-rw-r--r-- | src/widgets/styles/qstyle.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/styles/qcommonstyle.cpp b/src/widgets/styles/qcommonstyle.cpp index d8b67edff8..cc24c79c09 100644 --- a/src/widgets/styles/qcommonstyle.cpp +++ b/src/widgets/styles/qcommonstyle.cpp @@ -5109,6 +5109,9 @@ int QCommonStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget case SH_TabBar_CloseButtonPosition: ret = QTabBar::RightSide; break; + case SH_TabBar_ChangeCurrentDelay: + ret = 500; + break; #endif case SH_DockWidget_ButtonsHaveFrame: ret = true; diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp index 8774d71c0c..fb5a5c9003 100644 --- a/src/widgets/styles/qstyle.cpp +++ b/src/widgets/styles/qstyle.cpp @@ -1930,6 +1930,10 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment, \value SH_Splitter_OpaqueResize Determines if resizing is opaque This enum value has been introduced in Qt 5.2 + \value SH_TabBar_ChangeCurrentDelay Determines the delay before the current + tab is changed while dragging over the tabbar, in milliseconds. This + enum value has been introduced in Qt 5.4 + \sa styleHint() */ diff --git a/src/widgets/styles/qstyle.h b/src/widgets/styles/qstyle.h index ea012faf46..87fd7656ea 100644 --- a/src/widgets/styles/qstyle.h +++ b/src/widgets/styles/qstyle.h @@ -704,6 +704,7 @@ public: SH_Splitter_OpaqueResize, SH_ComboBox_UseNativePopup, SH_LineEdit_PasswordMaskDelay, + SH_TabBar_ChangeCurrentDelay, // Add new style hint values here SH_CustomBase = 0xf0000000 |