mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
Adjust resizing of the groups management widget
This commit is contained in:
parent
ca52fa0eee
commit
82b6844d4f
|
@ -86,6 +86,10 @@ void Groups::countChanged()
|
|||
ui.renameGroup->setEnabled( en );
|
||||
ui.removeGroup->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()
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<property name="windowTitle">
|
||||
<string notr="true">Groups</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<layout class="QGridLayout" name="gridLayout" columnstretch="1,0,0">
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
|
|
Loading…
Reference in a new issue