Expend by default all groups.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-08 14:10:56 +03:00
parent 6533579b52
commit 7649ac5f6f
2 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,7 @@ QTreeWidgetItem *DialogMDataBase::AddGroup(const QString &text)
QTreeWidgetItem *group = new QTreeWidgetItem(ui->treeWidget); QTreeWidgetItem *group = new QTreeWidgetItem(ui->treeWidget);
group->setText(0, text); group->setText(0, text);
group->setToolTip(0, text); group->setToolTip(0, text);
group->setExpanded(true);
if (selectMode) if (selectMode)
{ {
group->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled); group->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);

View File

@ -42,6 +42,9 @@
<property name="animated"> <property name="animated">
<bool>true</bool> <bool>true</bool>
</property> </property>
<attribute name="headerCascadingSectionResizes">
<bool>false</bool>
</attribute>
<attribute name="headerMinimumSectionSize"> <attribute name="headerMinimumSectionSize">
<number>57</number> <number>57</number>
</attribute> </attribute>