~kalikiana/ubuntu-ui-toolkit/appsettings

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/MainView.qml

  • Committer: Zsombor Egri
  • Date: 2014-04-20 19:25:12 UTC
  • mto: (700.276.32 combobutton)
  • mto: This revision was merged to the branch mainline in revision 770.
  • Revision ID: zsombor.egri@canonical.com-20140420192512-o0juovm3r2a3myyj
version set to 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import QtQuick 2.0
18
18
import Ubuntu.Unity.Action 1.1 as UnityActions
19
 
import Ubuntu.PerformanceMetrics 0.1
 
19
import Ubuntu.PerformanceMetrics 1.0
20
20
import QtQuick.Window 2.0
21
21
 
22
22
/*!
23
23
    \qmltype MainView
24
 
    \inqmlmodule Ubuntu.Components 0.1
 
24
    \inqmlmodule Ubuntu.Components 1.0
25
25
    \ingroup ubuntu
26
26
    \brief MainView is the root Item that should be used for all applications.
27
27
        It automatically adds a header and toolbar for its contents and can
30
30
    The simplest way to use a MainView is to include a \l Page object inside the MainView:
31
31
    \qml
32
32
        import QtQuick 2.0
33
 
        import Ubuntu.Components 0.1
 
33
        import Ubuntu.Components 1.0
34
34
 
35
35
        MainView {
36
36
            width: units.gu(48)
57
57
    will automatically hide and show when the user scrolls up or down:
58
58
    \qml
59
59
        import QtQuick 2.0
60
 
        import Ubuntu.Components 0.1
 
60
        import Ubuntu.Components 1.0
61
61
 
62
62
        MainView {
63
63
            width: units.gu(48)
89
89
    A toolbar can be added to the application by setting the tools property of the \l Page:
90
90
    \qml
91
91
        import QtQuick 2.0
92
 
        import Ubuntu.Components 0.1
 
92
        import Ubuntu.Components 1.0
93
93
 
94
94
        MainView {
95
95
            width: units.gu(48)
169
169
      the content:
170
170
      \qml
171
171
          import QtQuick 2.0
172
 
          import Ubuntu.Components 0.1
 
172
          import Ubuntu.Components 1.0
173
173
 
174
174
          MainView {
175
175
              width: units.gu(40)