Merge lp:~brendan-donegan/checkbox/bug1052506 into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Merged at revision: 1692
Proposed branch: lp:~brendan-donegan/checkbox/bug1052506
Merge into: lp:checkbox
Diff against target: 57 lines (+9/-2)
3 files modified
debian/changelog (+3/-0)
qt/frontend/qtfront.cpp (+2/-1)
qt/frontend/qtfront.ui (+4/-1)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/bug1052506
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+125257@code.launchpad.net

Description of the change

Make the Continue button the default and give it focus when Checkbox is loaded. Also I renamed the UI widget from 'friendlyTestsButton' to 'continueButton' as the previous name made little sense.

To post a comment you must log in.
1679. By Marc Tardif

Merged fix to bug #1052601 by bladernr.

1680. By Marc Tardif

Merged fix to bug #868643 by bladernr.

1681. By Marc Tardif

Merged fix to bug #990538 by bladernr.

1682. By Marc Tardif

Merged fix to bug #1053010 by bladernr.

1683. By Marc Tardif

Merged fix to bug #1053032 by bladernr.

1684. By Marc Tardif

Merged fix to bug #946184 by bladernr.

1685. By Marc Tardif

Merged fix to bug #1053033 by sylvain-pineau.

1686. By Brendan Donegan

qt/frontend/qtfront.ui, qt/frontend/qtfront.cpp - set focus to Continue
button and make it the default so that it can be 'clicked' using Enter,
as well as renaming it to 'continueButton' (LP: #1052506)

1687. By Brendan Donegan

Add UIFe to the commit message.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Tested with the Spacebar and Enter keys, works perfectly.

Thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-09-20 15:54:26 +0000
3+++ debian/changelog 2012-09-20 21:36:19 +0000
4@@ -105,6 +105,9 @@
5 * jobs/wireless.txt.in - replace use of network_wireless_test in wireless_scanning
6 with a simple Bash script using nmcli and delete network_wireless_test (LP: #900370)
7 * jobs/audio.txt.in - fix description of audio/playback_hdmi (LP: #1052136)
8+ * [UIFe] qt/frontend/qtfront.ui, qt/frontend/qtfront.cpp - set focus to Continue
9+ button and make it the default so that it can be 'clicked' using Enter,
10+ as well as renaming it to 'continueButton' (LP: #1052506)
11
12 [Sylvain Pineau]
13 * jobs/suspend.txt.in: Fixed suspend/suspend_advanced dependencies to avoid
14
15=== modified file 'qt/frontend/qtfront.cpp'
16--- qt/frontend/qtfront.cpp 2012-08-24 19:50:08 +0000
17+++ qt/frontend/qtfront.cpp 2012-09-20 21:36:19 +0000
18@@ -56,7 +56,7 @@
19 ui->radioTestTab->setVisible(false);
20 ui->nextPrevButtons->setVisible(false);
21 ui->treeView->verticalScrollBar()->setTracking(true);
22- connect(ui->friendlyTestsButton, SIGNAL(clicked()), this, SLOT(onFullTestsClicked()));
23+ connect(ui->continueButton, SIGNAL(clicked()), this, SLOT(onFullTestsClicked()));
24 connect(ui->deselectAllButton, SIGNAL(clicked()), this, SLOT(onDeselectAllClicked()));
25 connect(ui->selectAllButton, SIGNAL(clicked()), this, SLOT(onSelectAllClicked()));
26 connect(ui->buttonStartTesting, SIGNAL(clicked()), this, SLOT(onStartTestsClicked()));
27@@ -70,6 +70,7 @@
28 connect(ui->treeView, SIGNAL(expanded(QModelIndex)), this, SLOT(onJobItemChanged(QModelIndex)));
29 connect(ui->treeView, SIGNAL(clicked(QModelIndex)), this, SLOT(onTestSelectionChanged()));
30 connect(this, SIGNAL(testSelectionChanged()), this, SLOT(onTestSelectionChanged()));
31+ ui->continueButton->setFocus();
32 ui->stepsFrame->setFixedHeight(0);
33 ui->buttonSubmitResults->setEnabled(false);
34 ui->submissionDataLineEdit->setEnabled(false);
35
36=== modified file 'qt/frontend/qtfront.ui'
37--- qt/frontend/qtfront.ui 2012-09-20 12:58:34 +0000
38+++ qt/frontend/qtfront.ui 2012-09-20 21:36:19 +0000
39@@ -187,7 +187,7 @@
40 <bool>true</bool>
41 </property>
42 </widget>
43- <widget class="QPushButton" name="friendlyTestsButton">
44+ <widget class="QPushButton" name="continueButton">
45 <property name="geometry">
46 <rect>
47 <x>20</x>
48@@ -204,6 +204,9 @@
49 <property name="text">
50 <string>Continue</string>
51 </property>
52+ <property name="default">
53+ <bool>true</bool>
54+ </property>
55 </widget>
56 <widget class="Line" name="line_3">
57 <property name="geometry">

Subscribers

People subscribed via source and target branches