~zsombi/ubuntu-ui-toolkit/listitemSelectModeBugs

« back to all changes in this revision

Viewing changes to tests/unit/tst_performance/ListItemWithInlineActionsAndFourMouseAreas.qml

  • Committer: Zsombor Egri
  • Date: 2015-11-16 06:35:05 UTC
  • mfrom: (1664.1.1 listitemSelectModeBugs)
  • Revision ID: zsombor.egri@canonical.com-20151116063505-cwn2qfks7qzk10g9
re-sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2014 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.0
 
18
import Ubuntu.Components 1.3
 
19
 
 
20
Column {
 
21
    width: 800
 
22
    height: 600
 
23
 
 
24
    Repeater {
 
25
        model: 5000
 
26
        ListItem {
 
27
            trailingActions: ListItemActions {
 
28
                actions: [
 
29
                    Action {}
 
30
                ]
 
31
            }
 
32
            leadingActions: ListItemActions {
 
33
                actions: [
 
34
                    Action {},
 
35
                    Action {},
 
36
                    Action {}
 
37
                ]
 
38
            }
 
39
 
 
40
            Row {
 
41
                anchors.fill: parent
 
42
 
 
43
                MouseArea {
 
44
                    id: firstContainer
 
45
                    height: parent.height
 
46
                    width: units.gu(4)
 
47
                }
 
48
                MouseArea {
 
49
                    id: secondContainer
 
50
                    height: parent.height
 
51
                    width: parent.width - firstContainer.width - thirdContainer.width - fourthContainer.width
 
52
                }
 
53
                MouseArea {
 
54
                    height: parent.height
 
55
                    id: thirdContainer
 
56
                    width: units.gu(4)
 
57
                }
 
58
                MouseArea {
 
59
                    id: fourthContainer
 
60
                    height: parent.height
 
61
                    width: units.gu(4)
 
62
                }
 
63
            }
 
64
        }
 
65
    }
 
66
}