mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +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.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()
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue