~ubuntuone-control-tower/ubuntuone-windows-installer/trunk

« back to all changes in this revision

Viewing changes to ubuntuone_installer/gui/qt/gui.py

Agree button modified to look as a default button.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        super(LicensePage, self).__init__(license_ui.Ui_Form(), None, parent)
156
156
        self.header.setVisible(False)
157
157
        self.ui.textBrowser.setHtml(qt.LICENSE_CONTENT)
 
158
        self.agree_button = None
158
159
 
159
160
    # Invalid names of Qt-inherited methods
160
161
    # pylint: disable=C0103
181
182
            QtGui.QWizard.NextButton,
182
183
            QtGui.QWizard.FinishButton])
183
184
 
 
185
        self.agree_button = self.wizard().button(QtGui.QWizard.NextButton)
 
186
        self.agree_button.setDefault(True)
 
187
        self.agree_button.style().unpolish(self.agree_button)
 
188
        self.agree_button.style().polish(self.agree_button)
 
189
 
184
190
    def nextId(self):
185
191
        """Return next page's ID."""
186
192
        if self._next_id is None: