~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-1993

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Menus/SectionMenu.qml

  • Committer: Bileto Bot
  • Date: 2016-10-19 13:22:23 UTC
  • mfrom: (146.3.110 slots-layout)
  • Revision ID: ci-train-bot@canonical.com-20161019132223-8xigje52fn3laoaq
* Menus: rewrite components using ListItemLayout's and SlotsLayout's
* Bump revision to 0.10, as per Components removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013-2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
15
15
 *
16
16
 * Authors:
17
17
 *      Renato Araujo Oliveira Filho <renato@canonical.com>
 
18
 *      Marco Trevisan <marco.trevisan@canonical.com>
18
19
 */
19
20
 
20
21
import QtQuick 2.4
21
22
import Ubuntu.Components 1.3
22
 
import Ubuntu.Components.ListItems 1.3 as ListItem
23
23
 
24
 
ListItem.Header {
 
24
StandardMenu {
25
25
    id: menuItem
26
26
    property alias busy: indicator.running
27
 
    __foregroundColor: theme.palette.normal.backgroundText
28
 
 
29
 
    ActivityIndicator {
 
27
 
 
28
    divider.visible: true
 
29
    foregroundColor: theme.palette.normal.backgroundText
 
30
 
 
31
    slots: ActivityIndicator {
30
32
        id: indicator
31
33
        objectName: "indicator"
32
34
 
33
 
        anchors {
34
 
            margins: units.gu(0.5)
35
 
            right: parent.right
36
 
        }
37
 
        height: parent.height - (anchors.margins * 2)
38
35
        width: height
39
 
        anchors.verticalCenter: parent.verticalCenter
40
36
    }
41
37
}