~chris.gagnon/gallery-app/autopilot-fix-first-photo-in-album-view

« back to all changes in this revision

Viewing changes to rc/qml/Components/MediaSelector.qml

  • Committer: CI bot
  • Author(s): Arthur Mello
  • Date: 2014-05-22 07:43:07 UTC
  • mfrom: (971.1.14 gallery-app-add_photo_ap)
  • Revision ID: ps-jenkins@lists.canonical.com-20140522074307-o73h117sdwph1jig
Change to use PageStack to fix issue with toolbar while activating and deactivating Pages. Fixes: 1319927

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    /// Emitted when fully hidden
38
38
    signal hidden()
39
39
 
 
40
    onActiveChanged: {
 
41
        if (active)
 
42
            header.show();
 
43
    }
 
44
 
40
45
    /// Shows the item in an animated way
41
46
    function show() {
42
47
        visible = true;
44
49
        blendAnimation.to = 1;
45
50
        blendAnimation.start();
46
51
        header.show();
47
 
        active = true
48
52
    }
49
53
    /// Hides the item in an animated way
50
54
    function hide() {
51
55
        blendAnimation.to = 0;
52
56
        blendAnimation.start();
53
 
        active = false;
54
57
    }
55
58
 
56
59
    title: i18n.tr("Add to Album")
57
 
    active: false
58
60
    visible: false
59
61
 
60
62
    selection: SelectionState {