summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-03-23 15:41:42 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-03-23 15:41:42 (GMT)
commit74ce3dea8b3ea06d61cef4e729f6a95f670461fe (patch)
treeef056ac2b04ce2fce985138437752e96881ce379 /src/gui/styles
parent4a4458d1cf5ec7885c6f63f739b7ee80c70ad211 (diff)
downloadQt-74ce3dea8b3ea06d61cef4e729f6a95f670461fe.zip
Qt-74ce3dea8b3ea06d61cef4e729f6a95f670461fe.tar.gz
Qt-74ce3dea8b3ea06d61cef4e729f6a95f670461fe.tar.bz2
Sort indicators displayed incorrectly in GTK style
Reviewed-by: Thierry Task-number: QTBUG-9299
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qgtkstyle.cpp4
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,