summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstyle.cpp
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-07-09 08:04:57 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-06-16 13:22:17 +0200
commitdc1efcfc931a149c8ce65abab452f516d4ffc035 (patch)
treeffe1fd572c379bae45c51867f33d990beeeffdf1 /src/widgets/styles/qstyle.cpp
parent7f0f44f014c3ae211516fb2736401b8497dd426a (diff)
Add a style hint to draw the left/top border lines when header is hidden
Since there is no header then the cells appear with no actual border so it can look a bit strange without it. This ensures that the border is at least shown when there is no header to represent it if the style hint is turned on. This gives an option for those who want it to have it turned on. Fixes: QTBUG-85523 Change-Id: Ib94874bddddd31738fbcd41c6f77a2e0fa2ef443 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/styles/qstyle.cpp')
-rw-r--r--src/widgets/styles/qstyle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp
index 857c894c00..5e760b4531 100644
--- a/src/widgets/styles/qstyle.cpp
+++ b/src/widgets/styles/qstyle.cpp
@@ -2013,6 +2013,11 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment,
of a QTabBar.
This enum value has been introduced in Qt 6.1.
+ \value SH_Table_AlwaysDrawLeftTopGridLines
+ Determines if the far left and top grid lines are drawn in a table or
+ not when the header is hidden. Defaults to false.
+ This enum value has been introduced in Qt 6.2.
+
\sa styleHint()
*/