Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / doc / src / qtquick1 / whatsnew.qdoc
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** GNU Free Documentation License
10 ** Alternatively, this file may be used under the terms of the GNU Free
11 ** Documentation License version 1.3 as published by the Free Software
12 ** Foundation and appearing in the file included in the packaging of
13 ** this file.
14 **
15 ** Other Usage
16 ** Alternatively, this file may be used in accordance with the terms
17 ** and conditions contained in a signed written agreement between you
18 ** and Nokia.
19 **
20 **
21 **
22 **
23 **
24 ** $QT_END_LICENSE$
25 **
26 ****************************************************************************/
27
28 /*!
29 \title What's New in Qt Quick 1
30 \page qtquick1-whatsnew.html
31 \inqmlmodule QtQuick 1
32
33 \section1 Qt 4.7.4 includes QtQuick 1.1
34
35 QtQuick 1.1 is a minor feature update.  \e {import QtQuick 1.1} to use the new
36 features.
37
38 \section2 PinchArea
39
40 PinchArea provides support for the common two finger pinch gesture.
41
42 \section2 LayoutMirroring attached property
43
44 \l {LayoutMirroring}{Layout mirroring} is useful when you need to support both
45 left-to-right and right-to-left layout versions of your application that target
46 different language areas.
47
48 \section2 Anchors
49
50 Added the following property:
51 \list
52 \o \l {Item::}{anchors.mirrored}
53 \endlist
54
55 \section2 Text
56
57 Added the following properties:
58 \list
59 \o \l {Text::}{lineHeight}
60 \o \l {Text::}{lineHeightMode}
61 \o \l {Text::}{lineCount}
62 \o \l {Text::}{maximumLineCount}
63 \o \l {Text::}{truncated}
64 \o \l {Text::}{effectiveHorizontalAlignment}
65 \endlist
66
67 horizontalAlignment now accepts Text.AlignJustify alignment mode.
68
69 \section2 TextEdit
70
71 Added the following properties, methods and signal handlers:
72 \list
73 \o \l {TextEdit::}{canPaste}
74 \o \l {TextEdit::}{lineCount}
75 \o \l {TextEdit::}{inputMethodComposing}
76 \o \l {TextEdit::}{mouseSelectionMode}
77 \o \l {TextEdit::}{effectiveHorizontalAlignment}
78 \o \l {TextEdit::}{deselect()}
79 \o \l {TextEdit::}{isRightToLeft()}
80 \o \l {TextEdit::}{moveCursorSelection()} to enable selection by word
81 \o \l {TextEdit::}{onLinkActivated}
82 \endlist
83
84 \section2 TextInput
85
86 Added the following properties and methods:
87 \list
88 \o \l {TextInput::}{canPaste}
89 \o \l {TextInput::}{inputMethodComposing}
90 \o \l {TextInput::}{mouseSelectionMode}
91 \o \l {TextInput::}{effectiveHorizontalAlignment}
92 \o \l {TextInput::}{deselect()}
93 \o \l {TextInput::}{isRightToLeft()}
94 \o \l {TextInput::}{moveCursorSelection()} to enable selection by word
95 \endlist
96
97 \section2 Image, BorderImage and AnimatedImage
98
99 Added the following properties:
100 \list
101 \o \l{Image::}{cache}
102 \o \l{Image::}{mirror}
103 \endlist
104
105 \section2 Item
106
107 Added the following properties:
108 \list
109 \o \l{Item::}{implicitWidth} and \l{Item::}{implicitHeight}
110 \endlist
111
112 \section2 Flickable
113
114 Added the following methods:
115 \list
116 \o \l{Flickable::}{resizeContent()}
117 \o \l{Flickable::}{returnToBounds()}
118 \endlist
119
120 \section2 MouseArea
121
122 Added the following property:
123 \list
124 \o \l{MouseArea::}{preventStealing}
125 \endlist
126
127 \section2 ListView and GridView
128
129 Added the following properties and methods:
130 \list
131 \o \l{ListView::}{layoutDirection}
132 \o \l{ListView::}{effectiveLayoutDirection}
133 \o \l{ListView::}{positionViewAtBeginning()}
134 \o \l{ListView::}{positionViewAtEnd()}
135 \endlist
136
137 \section2 Flow, Grid and Row
138
139 Added the following properties:
140 \list
141 \o \l{Flow::}{layoutDirection}
142 \o \l{Flow::}{effectiveLayoutDirection}
143 \endlist
144
145 \section2 Repeater
146
147 Added the following methods and signal handlers:
148 \list
149 \o \l{Repeater::}{onItemAdded}
150 \o \l{Repeater::}{onItemRemoved}
151 \o \l{Repeater::}{itemAt()}
152 \endlist
153
154 \section2 Component
155
156 \list
157 \o The \l{Component::}{createObject()} method now accepts a map of initial
158 property values for the created object.
159 \endlist
160
161 \section2 Qt
162
163 \list
164 \o Added the \l {QML:Qt::application}{Qt.application} object to hold generic
165 global application properties.
166 \endlist
167
168 \section2 Other changes
169
170 \list
171 \o Functions can be \l{Property Binding#Property Binding}{assigned to properties from JavaScript}
172 to create property bindings.
173 \o QtQuick now supports Right to Left layout in positioners, views, anchors and text elements.
174 \endlist
175
176
177 \section1 Qt 4.7.1
178
179 \section2 QtQuick namespace
180
181 In prior Qt releases, all the Qt Quick elements were available in the \e Qt
182 namespace. Starting with Qt 4.7.1, the elements are also available in the
183 \e QtQuick namespace, which improves naming consistency, and allows the
184 development of Qt Quick to occur at a faster rate than Qt's usual minor release
185 schedule.
186
187 The change for developers is very simple - where you previously wrote
188 \e {import Qt 4.7}, just replace it with \e {import QtQuick 1.0}, like this:
189
190 \code
191 import QtQuick 1.0 
192
193 Text {
194     text: "Welcome to QtQuick 1.0!"
195 }
196 \endcode
197
198 \e {import Qt 4.7} continues to work so existing applications won't break even
199 if they aren't updated, but it is recommended that all import statements be
200 modified to the new form.
201 */