summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstyle.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-11-14 17:37:34 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-12-09 07:48:58 +0100
commitb5f8502c129c20b3aa3234a3e1c251102d36cdba (patch)
tree7956bab915737e29d908e8c429bd49cce106005d /src/widgets/styles/qstyle.cpp
parent1b548faa773a2346a63c018dcd6f6756742a2f65 (diff)
Styles: improve SH_Header_ArrowAlignment handling
The docs were wrong, and the returned values from some styles did not match reality, so fix that. Again, this style hint was not used at all within QWidgets... Task-number: QTBUG-629 Change-Id: Ie6ff80fd09bc3292ba3d787ccca4d6f4c0056e89 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'src/widgets/styles/qstyle.cpp')
-rw-r--r--src/widgets/styles/qstyle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp
index 856ec271fb..ba5bd717b6 100644
--- a/src/widgets/styles/qstyle.cpp
+++ b/src/widgets/styles/qstyle.cpp
@@ -1663,7 +1663,8 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment,
\value SH_Header_ArrowAlignment The placement of the sorting
indicator may appear in list or table headers. Possible values
- are Qt::Left or Qt::Right.
+ are Qt::Alignment values (that is, an OR combination of
+ Qt::AlignmentFlag flags).
\value SH_Slider_SnapToValue Sliders snap to values while moving,
as they do on Windows.