Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 1afce03

Browse files
committed
Fixed integration dialog sizing.
- Made the label height auto-adjustable see https://stackoverflow.com/a/19294869 - Increased horizontal spacing between logo / label - Removed a "widget" that isn't used, and messed up the layout - Decreased the default dialog height, that acts as a minimal height.
1 parent 1c73cc4 commit 1afce03

File tree

1 file changed

+16
-24
lines changed

1 file changed

+16
-24
lines changed

ui/SSGIntegrationDialog.ui

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>889</width>
10-
<height>288</height>
10+
<height>330</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -28,6 +28,9 @@
2828
<layout class="QVBoxLayout" name="verticalLayout">
2929
<item>
3030
<layout class="QHBoxLayout" name="horizontalLayout_3">
31+
<property name="spacing">
32+
<number>12</number>
33+
</property>
3134
<item>
3235
<widget class="QLabel" name="ssgLogo">
3336
<property name="sizePolicy">
@@ -52,15 +55,19 @@
5255
</item>
5356
<item>
5457
<layout class="QVBoxLayout" name="verticalLayout_3">
58+
<property name="sizeConstraint">
59+
<enum>QLayout::SetMinimumSize</enum>
60+
</property>
5561
<property name="leftMargin">
5662
<number>0</number>
5763
</property>
5864
<item>
5965
<widget class="QLabel" name="label">
60-
<property name="font">
61-
<font>
62-
<pointsize>11</pointsize>
63-
</font>
66+
<property name="sizePolicy">
67+
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
68+
<horstretch>0</horstretch>
69+
<verstretch>0</verstretch>
70+
</sizepolicy>
6471
</property>
6572
<property name="text">
6673
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;SCAP Security Guide was found installed on this machine.&lt;/p&gt;&lt;p&gt;The content provided by SCAP Security Guide allows you to quickly scan your machine according to well stablished security baselines.&lt;/p&gt;&lt;p&gt;Also, these guides are a good starting point if you'd like to customize a policy or profile for your own needs.&lt;/p&gt;&lt;p&gt;Select one of the default guides to load, or select Other SCAP Content option to load your own content.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
@@ -111,10 +118,13 @@
111118
<property name="orientation">
112119
<enum>Qt::Vertical</enum>
113120
</property>
121+
<property name="sizeType">
122+
<enum>QSizePolicy::MinimumExpanding</enum>
123+
</property>
114124
<property name="sizeHint" stdset="0">
115125
<size>
116126
<width>20</width>
117-
<height>40</height>
127+
<height>20</height>
118128
</size>
119129
</property>
120130
</spacer>
@@ -157,24 +167,6 @@
157167
</item>
158168
</layout>
159169
</item>
160-
<item>
161-
<widget class="QWidget" name="widget" native="true">
162-
<property name="sizePolicy">
163-
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
164-
<horstretch>0</horstretch>
165-
<verstretch>0</verstretch>
166-
</sizepolicy>
167-
</property>
168-
<layout class="QHBoxLayout" name="horizontalLayout">
169-
<property name="spacing">
170-
<number>6</number>
171-
</property>
172-
<property name="margin">
173-
<number>0</number>
174-
</property>
175-
</layout>
176-
</widget>
177-
</item>
178170
</layout>
179171
</widget>
180172
<resources/>

0 commit comments

Comments
 (0)