1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-18 09:18:23 +01:00

* Tried to fix #2507: set a size for the "type" column in the

dynamic group dialog (on some platforms it comes out so narrow you
	can't see it, despite it having ResizeToContents).
This commit is contained in:
Theron Tock 2011-07-13 16:59:30 -07:00
parent 8fb279a488
commit 48e1096c24
2 changed files with 10 additions and 1 deletions

View File

@ -21,6 +21,10 @@
expanded (so we get the union of expanded items displayed by quick
filter plus what the user started with expanded).
* Tried to fix #2507: set a size for the "type" column in the
dynamic group dialog (on some platforms it comes out so narrow you
can't see it, despite it having ResizeToContents).
2011-07-11 theron <theron@netcitadel.com>
* Implemented #2514, support for address table alternate paths.
There's a "data directory" setting under user preferences. If the

View File

@ -240,9 +240,14 @@ void DynamicGroupDialog::loadObjFilter()
}
QHeaderView *header = m_ui.criteriaView->horizontalHeader();
/* 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);
header->setResizeMode(1, QHeaderView::ResizeToContents);
header->setResizeMode(2, QHeaderView::Stretch);
m_reloadObjFilter = false;
m_loadedObjFilter = filter;