Fix PasswordGeneratorWidget sizes and size policies to avoid squished buttons

This commit is contained in:
Janek Bevendorff 2017-07-09 00:30:25 +02:00
parent 8a0085f0f8
commit 4fed655621
2 changed files with 3 additions and 86 deletions

View File

@ -2,32 +2,12 @@
<ui version="4.0"> <ui version="4.0">
<class>PasswordGeneratorWidget</class> <class>PasswordGeneratorWidget</class>
<widget class="QWidget" name="PasswordGeneratorWidget"> <widget class="QWidget" name="PasswordGeneratorWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>575</width>
<height>305</height>
</rect>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>284</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string/> <string/>
</property> </property>
@ -188,17 +168,11 @@ QProgressBar::chunk {
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="tabPosition"> <property name="tabPosition">
<enum>QTabWidget::North</enum> <enum>QTabWidget::North</enum>
</property> </property>
@ -225,12 +199,6 @@ QProgressBar::chunk {
<layout class="QHBoxLayout" name="alphabetLayout" stretch="0,0,0,0,1,0"> <layout class="QHBoxLayout" name="alphabetLayout" stretch="0,0,0,0,1,0">
<item> <item>
<widget class="QToolButton" name="checkBoxUpper"> <widget class="QToolButton" name="checkBoxUpper">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
@ -256,12 +224,6 @@ QProgressBar::chunk {
</item> </item>
<item> <item>
<widget class="QToolButton" name="checkBoxLower"> <widget class="QToolButton" name="checkBoxLower">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
@ -287,12 +249,6 @@ QProgressBar::chunk {
</item> </item>
<item> <item>
<widget class="QToolButton" name="checkBoxNumbers"> <widget class="QToolButton" name="checkBoxNumbers">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
@ -318,12 +274,6 @@ QProgressBar::chunk {
</item> </item>
<item> <item>
<widget class="QToolButton" name="checkBoxSpecialChars"> <widget class="QToolButton" name="checkBoxSpecialChars">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
@ -349,12 +299,6 @@ QProgressBar::chunk {
</item> </item>
<item> <item>
<widget class="QToolButton" name="checkBoxExtASCII"> <widget class="QToolButton" name="checkBoxExtASCII">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
@ -578,7 +522,7 @@ QProgressBar::chunk {
<item row="2" column="1"> <item row="2" column="1">
<widget class="QLineEdit" name="editWordSeparator"> <widget class="QLineEdit" name="editWordSeparator">
<property name="text"> <property name="text">
<string> </string> <string/>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -2,20 +2,6 @@
<ui version="4.0"> <ui version="4.0">
<class>EditEntryWidgetMain</class> <class>EditEntryWidgetMain</class>
<widget class="QWidget" name="EditEntryWidgetMain"> <widget class="QWidget" name="EditEntryWidgetMain">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>692</width>
<height>323</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
<property name="topMargin"> <property name="topMargin">
<number>0</number> <number>0</number>
@ -34,20 +20,7 @@
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="PasswordGeneratorWidget" name="passwordGenerator" native="true"> <widget class="PasswordGeneratorWidget" name="passwordGenerator" native="true"/>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item> </item>
<item row="2" column="0" alignment="Qt::AlignRight"> <item row="2" column="0" alignment="Qt::AlignRight">
<widget class="QLabel" name="passwordLabel"> <widget class="QLabel" name="passwordLabel">