Merge lp:~agateau/ubiquity/kde-fix-cropped-greeter-buttons into lp:ubiquity

Proposed by Aurélien Gâteau
Status: Merged
Merged at revision: 6129
Proposed branch: lp:~agateau/ubiquity/kde-fix-cropped-greeter-buttons
Merge into: lp:ubiquity
Diff against target: 211 lines (+83/-56)
2 files modified
gui/qt/stepLanguage.ui (+79/-54)
ubiquity/plugins/ubi-language.py (+4/-2)
To merge this branch: bzr merge lp:~agateau/ubiquity/kde-fix-cropped-greeter-buttons
Reviewer Review Type Date Requested Status
Jonathan Riddell Pending
Review via email: mp+208628@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Rohan Garg (rohangarg) wrote :

Looks alright to me

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gui/qt/stepLanguage.ui'
2--- gui/qt/stepLanguage.ui 2013-07-08 14:45:24 +0000
3+++ gui/qt/stepLanguage.ui 2014-02-27 15:50:49 +0000
4@@ -7,7 +7,7 @@
5 <x>0</x>
6 <y>0</y>
7 <width>672</width>
8- <height>507</height>
9+ <height>430</height>
10 </rect>
11 </property>
12 <property name="sizePolicy">
13@@ -20,17 +20,23 @@
14 <string>Form</string>
15 </property>
16 <layout class="QGridLayout" name="gridLayout">
17- <item row="0" column="0" colspan="5">
18- <widget class="QLabel" name="welcome_heading_label">
19- <property name="text">
20- <string>Welcome</string>
21- </property>
22- </widget>
23+ <item row="12" column="2">
24+ <spacer name="verticalSpacer">
25+ <property name="orientation">
26+ <enum>Qt::Vertical</enum>
27+ </property>
28+ <property name="sizeHint" stdset="0">
29+ <size>
30+ <width>20</width>
31+ <height>0</height>
32+ </size>
33+ </property>
34+ </spacer>
35 </item>
36- <item row="10" column="0" colspan="5">
37- <widget class="QLabel" name="oem_id_label">
38+ <item row="9" column="0" colspan="5">
39+ <widget class="QLabel" name="release_notes_label">
40 <property name="text">
41- <string>You are installing in system manufacturer mode. Please enter a unique name for this batch of systems. This name will be saved on the installed system and can be used to help with bug reports.</string>
42+ <string>If you have Internet access, read the release notes for information on problems that may affect you.</string>
43 </property>
44 <property name="wordWrap">
45 <bool>true</bool>
46@@ -47,6 +53,19 @@
47 </property>
48 </widget>
49 </item>
50+ <item row="4" column="0" colspan="2">
51+ <spacer name="horizontalSpacer_4">
52+ <property name="orientation">
53+ <enum>Qt::Horizontal</enum>
54+ </property>
55+ <property name="sizeHint" stdset="0">
56+ <size>
57+ <width>294</width>
58+ <height>20</height>
59+ </size>
60+ </property>
61+ </spacer>
62+ </item>
63 <item row="2" column="0" rowspan="2" colspan="5">
64 <widget class="QLabel" name="select_language_label">
65 <property name="sizePolicy">
66@@ -63,35 +82,6 @@
67 </property>
68 </widget>
69 </item>
70- <item row="4" column="0" colspan="2">
71- <spacer name="horizontalSpacer_4">
72- <property name="orientation">
73- <enum>Qt::Horizontal</enum>
74- </property>
75- <property name="sizeHint" stdset="0">
76- <size>
77- <width>294</width>
78- <height>20</height>
79- </size>
80- </property>
81- </spacer>
82- </item>
83- <item row="11" column="0" colspan="2">
84- <widget class="QLineEdit" name="oem_id_entry"/>
85- </item>
86- <item row="4" column="3" colspan="2">
87- <spacer name="horizontalSpacer_3">
88- <property name="orientation">
89- <enum>Qt::Horizontal</enum>
90- </property>
91- <property name="sizeHint" stdset="0">
92- <size>
93- <width>293</width>
94- <height>20</height>
95- </size>
96- </property>
97- </spacer>
98- </item>
99 <item row="4" column="2">
100 <widget class="QComboBox" name="language_combobox">
101 <property name="editable">
102@@ -135,29 +125,19 @@
103 </property>
104 </spacer>
105 </item>
106- <item row="12" column="2">
107- <spacer name="verticalSpacer">
108+ <item row="4" column="3" colspan="2">
109+ <spacer name="horizontalSpacer_3">
110 <property name="orientation">
111- <enum>Qt::Vertical</enum>
112+ <enum>Qt::Horizontal</enum>
113 </property>
114 <property name="sizeHint" stdset="0">
115 <size>
116- <width>20</width>
117- <height>40</height>
118+ <width>293</width>
119+ <height>20</height>
120 </size>
121 </property>
122 </spacer>
123 </item>
124- <item row="9" column="0" colspan="5">
125- <widget class="QLabel" name="release_notes_label">
126- <property name="text">
127- <string>If you have Internet access, read the release notes for information on problems that may affect you.</string>
128- </property>
129- <property name="wordWrap">
130- <bool>true</bool>
131- </property>
132- </widget>
133- </item>
134 <item row="6" column="0" colspan="5">
135 <layout class="QHBoxLayout" name="horizontalLayout">
136 <item>
137@@ -259,6 +239,51 @@
138 </property>
139 </spacer>
140 </item>
141+ <item row="0" column="0" colspan="5">
142+ <widget class="QLabel" name="welcome_heading_label">
143+ <property name="text">
144+ <string>Welcome</string>
145+ </property>
146+ </widget>
147+ </item>
148+ <item row="10" column="0" colspan="5">
149+ <widget class="QWidget" name="oem_widget" native="true">
150+ <layout class="QVBoxLayout" name="verticalLayout">
151+ <property name="margin">
152+ <number>0</number>
153+ </property>
154+ <item>
155+ <spacer name="verticalSpacer_2">
156+ <property name="orientation">
157+ <enum>Qt::Vertical</enum>
158+ </property>
159+ <property name="sizeType">
160+ <enum>QSizePolicy::Fixed</enum>
161+ </property>
162+ <property name="sizeHint" stdset="0">
163+ <size>
164+ <width>20</width>
165+ <height>20</height>
166+ </size>
167+ </property>
168+ </spacer>
169+ </item>
170+ <item>
171+ <widget class="QLabel" name="oem_id_label">
172+ <property name="text">
173+ <string>You are installing in system manufacturer mode. Please enter a unique name for this batch of systems. This name will be saved on the installed system and can be used to help with bug reports.</string>
174+ </property>
175+ <property name="wordWrap">
176+ <bool>true</bool>
177+ </property>
178+ </widget>
179+ </item>
180+ <item>
181+ <widget class="QLineEdit" name="oem_id_entry"/>
182+ </item>
183+ </layout>
184+ </widget>
185+ </item>
186 </layout>
187 </widget>
188 <resources/>
189
190=== modified file 'ubiquity/plugins/ubi-language.py'
191--- ubiquity/plugins/ubi-language.py 2013-07-23 13:26:23 +0000
192+++ ubiquity/plugins/ubi-language.py 2014-02-27 15:50:49 +0000
193@@ -404,14 +404,16 @@
194 self.combobox.currentIndexChanged[str].connect(
195 self.on_language_selection_changed)
196 if not self.controller.oem_config:
197- self.page.oem_id_label.hide()
198- self.page.oem_id_entry.hide()
199+ self.page.oem_widget.hide()
200
201 def init_big_button(button, image_name):
202 pix = QPixmap('/usr/share/ubiquity/qt/images/' + image_name)
203 icon = QIcon(pix)
204 button.setIcon(icon)
205 button.setIconSize(pix.size())
206+ # Set a fixed height to ensure the button text is not cropped
207+ # when the window is resized
208+ button.setFixedHeight(button.sizeHint().height())
209
210 def inst(*args):
211 self.page.try_ubuntu.setEnabled(False)

Subscribers

People subscribed via source and target branches

to status/vote changes: