1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-19 01:37:17 +01:00

see #2507 fixed the issue with column "Type" width

This commit is contained in:
Vadim Kurland 2011-07-21 16:20:06 -07:00
parent 8fde504d83
commit ff2dba8bab

View File

@ -243,7 +243,6 @@ void DynamicGroupDialog::loadObjFilter()
/* Try to force at least some minimum size, as the
ResizeToContents doesn't always seem to work */
header->resizeSection(0, 35);
header->resizeSection(1, 120);
header->setStretchLastSection(true);
header->setResizeMode(0, QHeaderView::ResizeToContents);
@ -319,6 +318,11 @@ void DynamicGroupDialog::addMatchClicked()
m_ui.criteriaView->openPersistentEditor(m_model->index(newRow, 1));
m_ui.criteriaView->openPersistentEditor(m_model->index(newRow, 2));
m_ui.criteriaView->resizeColumnsToContents();
QHeaderView *header = m_ui.criteriaView->horizontalHeader();
header->setStretchLastSection(true);
m_ui.criteriaView->scrollToBottom();
/* How come insertRow() doesn't do this for us? */