aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/signals/qmltopy3/view.qml
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2016-09-28 16:48:53 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2016-12-13 09:55:54 +0000
commit4ca11515b6c5376269cb91a4975e8c5b71a2cdb4 (patch)
treec82496533768013a548bf5b5ac2abe0cde44aebc /examples/declarative/signals/qmltopy3/view.qml
parentbd84acfadb5f00de686a771fce54f9353f046605 (diff)
Port QtQuick examples to PySide2
Change-Id: If2d650d2ef47c7e5259d5059dc2b5176c63cc91d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/declarative/signals/qmltopy3/view.qml')
-rw-r--r--examples/declarative/signals/qmltopy3/view.qml24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/declarative/signals/qmltopy3/view.qml b/examples/declarative/signals/qmltopy3/view.qml
index c1e1d8c..72984a1 100644
--- a/examples/declarative/signals/qmltopy3/view.qml
+++ b/examples/declarative/signals/qmltopy3/view.qml
@@ -1,10 +1,9 @@
/****************************************************************************
**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: PySide Team (pyside@openbossa.org)
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
**
-** This file is part of the examples of PySide: Python for Qt.
+** This file is part of the PySide examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
@@ -18,10 +17,10 @@
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
+** * Neither the name of The Qt Company Ltd nor the names of its
+** contributors may be used to endorse or promote products derived
+** from this software without specific prior written permission.
+**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
@@ -34,11 +33,12 @@
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
** $QT_END_LICENSE$
**
****************************************************************************/
-import Qt 4.7
+import QtQuick 2.0
Rectangle {
id: page
@@ -58,7 +58,7 @@ Rectangle {
onRotationChanged: textRotationChanged(rotation)
states: State {
- name: "down"; when: buttonMouseArea.pressed == true
+ name: "down"; when: buttonMouseArea.pressed === true
PropertyChanges {
target: helloText;
rotation: 180;
@@ -89,7 +89,7 @@ Rectangle {
objectName: "buttonMouseArea"
anchors.fill: parent
onClicked: {
- buttonClicked();
+ buttonClicked()
}
}
Text {
@@ -97,7 +97,7 @@ Rectangle {
text: "Press me!"
anchors.horizontalCenter: button.horizontalCenter
anchors.verticalCenter: button.verticalCenter
- font.pointSize: 16;
+ font.pointSize: 16
}
}
}