summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/javastyle.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-10-21 21:23:08 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-11-14 20:48:22 +0200
commit41702d8455a9e88ac70108e500a10e7bd4df2771 (patch)
tree88f2c1714f3556b63da50254db2e3e1b405ac0f9 /src/widgets/doc/snippets/javastyle.cpp
parent14bb413309092adc53e8451daff5690c4698c07d (diff)
Honor alpha for SH_Table_GridLineColor
Make sure to honor the alpha channel for the color returned by SH_Table_GridLineColor. Fixes: QTBUG-74909 Change-Id: If9688329e5e2ab41833dfeb7e6292fdfcbf63aa1 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/javastyle.cpp')
-rw-r--r--src/widgets/doc/snippets/javastyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/snippets/javastyle.cpp b/src/widgets/doc/snippets/javastyle.cpp
index 8657d5ed29..3d1b1e0030 100644
--- a/src/widgets/doc/snippets/javastyle.cpp
+++ b/src/widgets/doc/snippets/javastyle.cpp
@@ -2589,7 +2589,7 @@ int JavaStyle::styleHint(StyleHint hint, const QStyleOption *option,
switch (hint) {
case SH_Table_GridLineColor: {
- ret = static_cast<int>(option->palette.color(QPalette::Mid).rgb());
+ ret = static_cast<int>(option->palette.color(QPalette::Mid).rgba());
break;
}
case QStyle::SH_Menu_Scrollable: