Commit 51846759 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

added option "ViewInvertSortIndicator" to inverse the tree view sort indicator arrow direction.

CCBUG: 297807
parent 0e0d8252
......@@ -67,6 +67,10 @@
<default>true</default>
</entry>
<entry name="ViewInvertSortIndicator" type="Bool">
<default>false</default>
</entry>
<!-- scrollbars -->
<entry name="ScrollBarWidth" type="Int">
<default>15</default>
......
......@@ -2917,6 +2917,9 @@ namespace Oxygen
else if( flags&State_DownArrow || ( headerOpt && headerOpt->sortIndicator==QStyleOptionHeader::SortDown ) ) orientation = ArrowDown;
if( orientation == ArrowNone ) return true;
// invert arrows if requested by (hidden) options
if( StyleConfigData::viewInvertSortIndicator() ) orientation = (orientation == ArrowUp) ? ArrowDown:ArrowUp;
// flags, rect and palette
const QRect& r( option->rect );
const QPalette& palette( option->palette );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment