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