summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-03-24 09:30:56 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-03-24 09:46:59 (GMT)
commit11f246ba81e74984a51964f0e91d233597697860 (patch)
tree5750915bddc4b4bcae79c48c2e438735c6816770 /src/gui
parent994e381f417464489dd2e6c9c1de163b576adfea (diff)
downloadQt-11f246ba81e74984a51964f0e91d233597697860.zip
Qt-11f246ba81e74984a51964f0e91d233597697860.tar.gz
Qt-11f246ba81e74984a51964f0e91d233597697860.tar.bz2
Inverted sorting arrows on QHeaderViews is intentional on GNOME
It follows the GNOME HIG as specified in http://library.gnome.org/devel/hig-book/stable/controls-lists.html.en Ammending commit reversion fad919fa0fe976facc94685fd1460b4961b72c4e. Reviewed-by: jbache Task-number: QTBUG-9299
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qgtkstyle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp
index e2de43a..bd87ca4 100644
--- a/src/gui/styles/qgtkstyle.cpp
+++ b/src/gui/styles/qgtkstyle.cpp
@@ -769,6 +769,8 @@ void QGtkStyle::drawPrimitive(PrimitiveElement element,
GtkArrowType type = GTK_ARROW_UP;
QRect r = header->rect;
QImage arrow;
+ // This sorting indicator inversion is intentional, and follows the GNOME HIG.
+ // See http://library.gnome.org/devel/hig-book/stable/controls-lists.html.en#controls-lists-sortable
if (header->sortIndicator & QStyleOptionHeader::SortUp)
type = GTK_ARROW_UP;
else if (header->sortIndicator & QStyleOptionHeader::SortDown)