Merge lp:~vthompson/urps/fix-label into lp:urps

Proposed by Victor Thompson
Status: Needs review
Proposed branch: lp:~vthompson/urps/fix-label
Merge into: lp:urps
Diff against target: 35 lines (+5/-3)
1 file modified
ubunturockpaperscissors.qml (+5/-3)
To merge this branch: bzr merge lp:~vthompson/urps/fix-label
Reviewer Review Type Date Requested Status
Max Tither runtime review Needs Fixing
Review via email: mp+192069@code.launchpad.net

Commit message

Fix name label

Description of the change

Fix name label

To post a comment you must log in.
Revision history for this message
Max Tither (11ubuntucg) wrote :

Your fix is excellent. The only issue I have is in the runtime, when a user click the number of rounds they want for the game and moves to the next page, it will display the round specified the last time the game was played(as it was saved in the db). This is the major setback I have. for the record, I want to display the rounds selected in the game title under the variable "gameLength".

The reason at first I said that the name was an issue was because I thought that the two would be similar, but that is not the case. I tried to apply the fix you did with the label to the round numbers, but to no success. I did update a new verson of the app with your fix. Should you fix this last thing, then I will merge everything into the code.

Thank you,
Max Tither

review: Needs Fixing (runtime review)

Unmerged revisions

2. By Victor Thompson

fix name label

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubunturockpaperscissors.qml'
2--- ubunturockpaperscissors.qml 2013-10-21 23:46:11 +0000
3+++ ubunturockpaperscissors.qml 2013-10-22 00:26:13 +0000
4@@ -20,7 +20,8 @@
5
6 //Here will begin the database code:
7
8- //property var gameLength: getSetting("gameLength")
9+ property string gameLength: getSetting("gameLength")
10+ property string playerName: getSetting("playerName")
11 signal buttonClicked
12 property var db: null
13
14@@ -217,6 +218,8 @@
15 }
16 console.log("Saved " + gameLength);
17 saveSetting("gameLength", gameLength);
18+ playerName = playerNameInput.text;
19+ saveSetting("playerName", playerName);
20 buttonClicked(
21 getSetting('gameLength'));
22 console.log("retrieved " + gameLength);
23@@ -264,11 +267,10 @@
24
25 Label {
26
27- property var gameLength: getSetting("gameLength")
28 id: playerNameLabel
29
30 anchors.centerIn: parent
31- text: ("The Players Name is "+ gameLength)
32+ text: ("The Players Name is "+ playerName)
33
34 fontSize: "large"
35 }

Subscribers

People subscribed via source and target branches

to all changes: