1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 20:27:22 +01:00

restore column width after user turns option to show attributes in the tree off, then on again

This commit is contained in:
Vadim Kurland 2009-10-01 02:18:34 +00:00
parent adabf789dd
commit e4adcd15d8
3 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 1529
#define BUILD_NUM 1530

View File

@ -131,6 +131,7 @@ ObjectTreeView::ObjectTreeView(ProjectPanel* project,
//header()->hide();
header()->setDefaultAlignment(Qt::AlignHCenter);
header()->setResizeMode(QHeaderView::Interactive);
showOrHideAttributesColumn();

View File

@ -396,8 +396,12 @@ void PrefsDialog::accept()
ProjectPanel *pp = mw->activeProject();
if (pp)
{
pp->m_panel->om->setAttributesColumnEnabled(
m_dialog->attributesInTree->isChecked());
if (m_dialog->attributesInTree->isChecked())
pp->m_panel->om->loadSectionSizes();
}
// QToolTip::setWakeUpDelay( st->getTooltipDelay()*1000 );