summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qwindowsvistastyle.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/qwindowsvistastyle.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/qwindowsvistastyle.cpp')
-rw-r--r--src/widgets/styles/qwindowsvistastyle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp
index 463b120e04..42a85e8f64 100644
--- a/src/widgets/styles/qwindowsvistastyle.cpp
+++ b/src/widgets/styles/qwindowsvistastyle.cpp
@@ -2112,6 +2112,9 @@ int QWindowsVistaStyle::styleHint(StyleHint hint, const QStyleOption *option, co
else
ret = -1;
break;
+ case SH_Header_ArrowAlignment:
+ ret = Qt::AlignTop | Qt::AlignHCenter;
+ break;
default:
ret = QWindowsXPStyle::styleHint(hint, option, widget, returnData);
break;