~gerboland/unity8/sidestage-unlock-sidestage-appears

« back to all changes in this revision

Viewing changes to tests/qmltests/Panel/tst_MenuContent.qml

  • Committer: CI bot
  • Author(s): Nick Dedekind
  • Date: 2014-01-29 16:10:00 UTC
  • mfrom: (622.5.10 indicators.panel-fix)
  • Revision ID: ps-jenkins@lists.canonical.com-20140129161000-zni4c14yoh3573l9
Added Panel/VisibleIndicatorsModel for use with both indicator row & menuContent.

This removes the need to hide indicators in the row and map inicator indexes between row & content.
Fixes the indicator highlight line offset not bound by listView position. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    height: units.gu(70)
28
28
 
29
29
    property var indicator_status: {
30
 
        'menu_page1': { 'started': false, 'reset': 0 },
31
 
        'menu_page2': { 'started': false, 'reset': 0 },
32
 
        'menu_page3': { 'started': false, 'reset': 0 },
33
 
        'menu_page4': { 'started': false, 'reset': 0 },
34
 
        'menu_page5': { 'started': false, 'reset': 0 }
 
30
        'indicator-fake1-page': { 'started': false, 'reset': 0 },
 
31
        'indicator-fake2-page': { 'started': false, 'reset': 0 },
 
32
        'indicator-fake3-page': { 'started': false, 'reset': 0 },
 
33
        'indicator-fake4-page': { 'started': false, 'reset': 0 },
 
34
        'indicator-fake5-page': { 'started': false, 'reset': 0 }
35
35
    }
36
36
 
37
37
    // Dummy objects
49
49
        indicatorsModel: indicatorsModel
50
50
        contentReleaseInterval: 50
51
51
        height: parent.height - 50
52
 
 
53
 
        visibleIndicators: {
54
 
           'indicator-fake1': true,
55
 
           'indicator-fake2': true,
56
 
           'indicator-fake3': true,
57
 
           'indicator-fake4': true,
58
 
           'indicator-fake5': true
59
 
       }
60
52
    }
61
53
 
62
54
    Rectangle {
96
88
    }
97
89
 
98
90
    function get_test_menu_objecName(index) {
99
 
        return "menu_page"+(index+1);
 
91
        return "indicator-fake" + (index + 1) + "-page";
100
92
    }
101
93
 
102
94
    property string testTabObjectName : ""