Adjust resizing of the groups management widget

This commit is contained in:
Abs62 2012-12-19 17:00:50 +04:00
parent ca52fa0eee
commit 82b6844d4f
2 changed files with 5 additions and 1 deletions

View file

@ -86,6 +86,10 @@ void Groups::countChanged()
ui.renameGroup->setEnabled( en ); ui.renameGroup->setEnabled( en );
ui.removeGroup->setEnabled( en ); ui.removeGroup->setEnabled( en );
ui.removeAllGroups->setEnabled( en ); ui.removeAllGroups->setEnabled( en );
int stretch = ui.groups->count() / 5;
if( stretch > 3 ) stretch = 3;
ui.gridLayout->setColumnStretch( 2, stretch );
} }
void Groups::addNew() void Groups::addNew()

View file

@ -13,7 +13,7 @@
<property name="windowTitle"> <property name="windowTitle">
<string notr="true">Groups</string> <string notr="true">Groups</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout" columnstretch="1,0,0">
<item row="0" column="0"> <item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>