Commit aa0bdcb1 authored by Frédéric Larue's avatar Frédéric Larue

Default project tree-view sorting modified.

parent 727ff9d8
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
UIDataWidget::UIDataWidget( QWidget *parent ) : QTreeWidget( parent ) UIDataWidget::UIDataWidget( QWidget *parent ) : QTreeWidget( parent )
{ {
setSelectionMode( QAbstractItemView::ExtendedSelection );
connect( this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(updateVisibility(QTreeWidgetItem*)) ); connect( this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(updateVisibility(QTreeWidgetItem*)) );
connect( this, SIGNAL(itemSelectionChanged()), this, SLOT(updateSelection()) ); connect( this, SIGNAL(itemSelectionChanged()), this, SLOT(updateSelection()) );
sortItems( 0, Qt::SortOrder::AscendingOrder );
} }
......
...@@ -560,9 +560,15 @@ ...@@ -560,9 +560,15 @@
<property name="alternatingRowColors"> <property name="alternatingRowColors">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="selectionBehavior"> <property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum> <enum>QAbstractItemView::SelectRows</enum>
</property> </property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<column> <column>
<property name="text"> <property name="text">
<string>Name</string> <string>Name</string>
......
Markdown is supported
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