improve layouts editor headers

--dont highlight the layouts header and
dont allow to sort the contents based on
the columns
pull/2/head
Michail Vourlakos 7 years ago
parent 5f538274a2
commit 5d97242918

@ -81,7 +81,6 @@ SettingsDialog::SettingsDialog(QWidget *parent, DockCorona *corona)
m_model = new QStandardItemModel(m_corona->layoutManager()->layouts().count(), 5, this);
ui->layoutsView->setModel(m_model);
ui->layoutsView->setSelectionBehavior(QAbstractItemView::SelectRows);
ui->layoutsView->horizontalHeader()->setStretchLastSection(true);
ui->layoutsView->verticalHeader()->setVisible(false);

@ -98,6 +98,12 @@
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="showGrid">
<bool>false</bool>
</property>
@ -107,9 +113,18 @@
<attribute name="horizontalHeaderCascadingSectionResizes">
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderHighlightSections">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderHighlightSections">
<bool>false</bool>
</attribute>
</widget>
</item>
<item>
@ -396,8 +411,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>567</width>
<height>211</height>
<width>785</width>
<height>505</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_9">

Loading…
Cancel
Save