diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-03-23 15:41:42 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-03-23 15:41:42 (GMT) |
commit | 74ce3dea8b3ea06d61cef4e729f6a95f670461fe (patch) | |
tree | ef056ac2b04ce2fce985138437752e96881ce379 | |
parent | 4a4458d1cf5ec7885c6f63f739b7ee80c70ad211 (diff) | |
download | Qt-74ce3dea8b3ea06d61cef4e729f6a95f670461fe.zip Qt-74ce3dea8b3ea06d61cef4e729f6a95f670461fe.tar.gz Qt-74ce3dea8b3ea06d61cef4e729f6a95f670461fe.tar.bz2 |
Sort indicators displayed incorrectly in GTK style
Reviewed-by: Thierry
Task-number: QTBUG-9299
-rw-r--r-- | src/gui/styles/qgtkstyle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp index e2de43a..0d8a589 100644 --- a/src/gui/styles/qgtkstyle.cpp +++ b/src/gui/styles/qgtkstyle.cpp @@ -769,9 +769,9 @@ void QGtkStyle::drawPrimitive(PrimitiveElement element, GtkArrowType type = GTK_ARROW_UP; QRect r = header->rect; QImage arrow; - if (header->sortIndicator & QStyleOptionHeader::SortUp) + if (header->sortIndicator & QStyleOptionHeader::SortDown) type = GTK_ARROW_UP; - else if (header->sortIndicator & QStyleOptionHeader::SortDown) + else if (header->sortIndicator & QStyleOptionHeader::SortUp) type = GTK_ARROW_DOWN; gtkPainter.paintArrow(gtkTreeHeader, "button", option->rect.adjusted(1, 1, -1, -1), type, state, |