Merge lp://qastaging/~mcintire-evan/music-app/songs-fastscroll into lp://qastaging/music-app

Proposed by Evan McIntire
Status: Needs review
Proposed branch: lp://qastaging/~mcintire-evan/music-app/songs-fastscroll
Merge into: lp://qastaging/music-app
Diff against target: 550 lines (+486/-1)
5 files modified
AUTHORS (+1/-0)
app/components/FastScroll.qml (+316/-0)
app/logic/FastScroll.js (+131/-0)
app/ui/Songs.qml (+35/-1)
debian/changelog (+3/-0)
To merge this branch: bzr merge lp://qastaging/~mcintire-evan/music-app/songs-fastscroll
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Needs Fixing
Andrew Hayzen Needs Fixing
Victor Thompson Needs Fixing
Review via email: mp+281471@code.qastaging.launchpad.net

Commit message

Add fastscroll to the song list

Description of the change

Add fastscroll to the song list

To post a comment you must log in.
Revision history for this message
Victor Thompson (vthompson) wrote :

The code for this looks good! I'm not sure however, that we'll want to merge this into the app. The Ubuntu SDK will be introducing scrollbars sometime soon and I think it'd be better to use that feature/component as we'll also want to use it in the Queue and other listviews.

Codewise, I do have 1 inline comment.

review: Needs Fixing
Revision history for this message
Evan McIntire (mcintire-evan) wrote :

Thanks for the review, you are right with the ListItems comment.

As for actual merging it, ahayzen did tell me that it probably wouldn't be merged, but getting a working example with it was still a good idea, so I understand

959. By Evan McIntire

Use lastest ListItem component; added DCH and AUTHORS entry

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Awesome, thanks for doing this.

I have on minor inline comment that assists with the styling after moving to the new ListItem component. I also agree with Victor that we'll likely wait for the new SDK scrollbars to see which is best, or a mixture of both. As when testing this you can get it into states where the header covers the letters on the right side, and on smaller screens (eg when in landscape) the fastscroll component does not fit in the vertical space.

1) This label should probably have
anchors {
    leftMargin: units.gu(1)
    verticalCenter: parent.verticalCenter
}
so that it is vertically centred and not against the left edge

review: Needs Fixing
Revision history for this message
Evan McIntire (mcintire-evan) wrote :

Sorry for the late reply, school got in the way

I've tried applying those anchors to the label, but the leftMargin doesnt seem to do anything, here are some screenshots

http://i.imgur.com/DIEMOdf.png is with the anchors

http://i.imgur.com/fazBT7K.png is without

It seems the verticalCenter works, but leftMargin does not, even if I up the units.gu unit

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Try using

anchors {
  left: parent.left
  leftMargin: units.gu(1)
  right: parent.right
  rightMargin: units.gu(1)
  verticalCenter: parent.verticalCenter
}

Its probably because it doesn't have anything to bind to on the left side, so then just uses the x value.
By then setting left: parent.left that should then let you use leftMargin.

960. By Evan McIntire

Improve formatting of catagory headers

Revision history for this message
Evan McIntire (mcintire-evan) wrote :

Formatting is fixed, but I noticed a bug

If you longpress, you are able to select the category headers the same way you would select a song

http://i.imgur.com/sRFgZin.png is a screenshot of that

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:960
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~mcintire-evan/music-app/songs-fastscroll/+merge/281471/+edit-commit-message

https://core-apps-jenkins.ubuntu.com/job/run-ap-tests-ci/216/
Executed test runs:
    None: https://core-apps-jenkins.ubuntu.com/job/generic-update-mp/502/console

Click here to trigger a rebuild:
https://core-apps-jenkins.ubuntu.com/job/run-ap-tests-ci/216/rebuild

review: Needs Fixing (continuous-integration)

Unmerged revisions

960. By Evan McIntire

Improve formatting of catagory headers

959. By Evan McIntire

Use lastest ListItem component; added DCH and AUTHORS entry

958. By Evan McIntire

Add FastScroll to the song list

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches