diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-07-04 15:38:40 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-07-05 01:25:54 +0200 |
commit | 19bfe3e0b111827d6afc9e3602839f3dd0ad37dc (patch) | |
tree | c5276acf5e2115aea0c48ffd5d7e0ef619b982f1 /src/widgets/widgets/qtabbar_p.h | |
parent | 199a339f38ca2feda6cd1a52e895fabfc56097ed (diff) |
QTabBar: share verticalTabs(Shape) with QStyleSheetStyle
... unbreaking -unity-build-batch-size 103.
As a drive-by, make the shared function constexpr and noexcept.
Task-number: QTBUG-115031
Pick-to: 6.6 6.5
Change-Id: I2bf30a280eccd896a5aa7de92c72aab30e797640
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/widgets/qtabbar_p.h')
-rw-r--r-- | src/widgets/widgets/qtabbar_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtabbar_p.h b/src/widgets/widgets/qtabbar_p.h index a421836b93..831d3acd3c 100644 --- a/src/widgets/widgets/qtabbar_p.h +++ b/src/widgets/widgets/qtabbar_p.h @@ -245,6 +245,14 @@ public: }; +constexpr inline bool verticalTabs(QTabBar::Shape shape) noexcept +{ + return shape == QTabBar::RoundedWest + || shape == QTabBar::RoundedEast + || shape == QTabBar::TriangularWest + || shape == QTabBar::TriangularEast; +} + QT_END_NAMESPACE #endif |