~ubuntu-branches/ubuntu/vivid/qtcreator-plugin-ubuntu/vivid

« back to all changes in this revision

Viewing changes to share/qtcreator/ubuntu/devicespage/EmulatorNotInstalled.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Benjamin Zeller
  • Date: 2015-01-30 06:05:59 UTC
  • mfrom: (1.1.81)
  • Revision ID: package-import@ubuntu.com-20150130060559-1kirdtmm6bl6eb26
Tags: 3.1.1+15.04.20150130-0ubuntu1
[ Benjamin Zeller ]
Refactoring of the publish Tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import QtQuick 2.0
2
 
import Ubuntu.Components 1.0
3
 
import Ubuntu.Components.ListItems 1.0 as ListItem
4
 
import Ubuntu.Components.Popups 1.0
5
 
 
6
 
Popover {
7
 
    id: popover
8
 
    height: containerLayout.childrenRect.height
9
 
    Column {
10
 
        id: containerLayout
11
 
        anchors {
12
 
            left: parent.left
13
 
            top: parent.top
14
 
            right: parent.right
15
 
        }
16
 
        ListItem.Header {
17
 
            text: "Ubuntu Emulator is not installed"
18
 
            __foregroundColor: UbuntuColors.orange
19
 
 
20
 
        }
21
 
        ListItem.Empty {
22
 
            showDivider: false
23
 
            Label {
24
 
                anchors.fill: parent
25
 
                anchors.margins: units.gu(2)
26
 
                text: "Install the emulator package \"ubuntu-emulator\" in order to create emulator instances."
27
 
                wrapMode: Text.Wrap
28
 
            }
29
 
        }
30
 
        //add a spacer item
31
 
        Item {
32
 
            height: units.gu(2)
33
 
            width:  units.gu(1)
34
 
        }
35
 
        ListItem.SingleControl {
36
 
            highlightWhenPressed: false
37
 
            control: Button {
38
 
                text: "Close"
39
 
                anchors {
40
 
                    margins: units.gu(1)
41
 
                }
42
 
                onClicked: PopupUtils.close(popover)
43
 
            }
44
 
        }
45
 
    }
46
 
}