diff options
Diffstat (limited to 'examples/nfc/corkboard')
-rw-r--r-- | examples/nfc/corkboard/Mode.qml | 159 | ||||
-rw-r--r-- | examples/nfc/corkboard/NfcFlag.png | bin | 8591 -> 0 bytes | |||
-rw-r--r-- | examples/nfc/corkboard/android/AndroidManifest.xml | 84 | ||||
-rw-r--r-- | examples/nfc/corkboard/cork.jpg | bin | 149337 -> 0 bytes | |||
-rw-r--r-- | examples/nfc/corkboard/corkboard.pro | 24 | ||||
-rw-r--r-- | examples/nfc/corkboard/corkboard.qrc | 10 | ||||
-rw-r--r-- | examples/nfc/corkboard/corkboards.qml | 128 | ||||
-rw-r--r-- | examples/nfc/corkboard/doc/images/corkboard.png | bin | 639743 -> 0 bytes | |||
-rw-r--r-- | examples/nfc/corkboard/doc/src/corkboard.qdoc | 137 | ||||
-rw-r--r-- | examples/nfc/corkboard/icon.png | bin | 6594 -> 0 bytes | |||
-rw-r--r-- | examples/nfc/corkboard/main.cpp | 66 | ||||
-rw-r--r-- | examples/nfc/corkboard/note-yellow.png | bin | 54283 -> 0 bytes | |||
-rw-r--r-- | examples/nfc/corkboard/tack.png | bin | 7282 -> 0 bytes |
13 files changed, 0 insertions, 608 deletions
diff --git a/examples/nfc/corkboard/Mode.qml b/examples/nfc/corkboard/Mode.qml deleted file mode 100644 index 0d427cf5..00000000 --- a/examples/nfc/corkboard/Mode.qml +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the QtNfc module. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * 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 -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** 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 QtQuick 2.4 - -Item { - id: page - width: ListView.view.width; - height: ListView.view.height - - Image { - source: "qrc:/cork.jpg" - anchors.centerIn: parent - width: parent.width - 20 - height: parent.height - 20 - fillMode: Image.PreserveAspectCrop - - Text { - anchors { horizontalCenter: parent.horizontalCenter; top: parent.top; topMargin: 10} - text: name; - font { pixelSize: 30; bold: true } - color: "white" - style: Text.Outline; styleColor: "black" - } - - Repeater { - model: notes - Item { - id: stickyPage - - x: ListView.width * (0.7 * Math.random() + 0.1) - y: ListView.height * (0.7 * Math.random() + 0.1) - - rotation: -listView.horizontalVelocity / 200; - Behavior on rotation { - SpringAnimation { spring: 2.0; damping: 0.15 } - } - - Item { - id: sticky - scale: mouse.pressed ? 1 : 0.7 - rotation: mouse.pressed ? 8 : 0 - Behavior on rotation{ - NumberAnimation {duration: 200 } - } - Behavior on scale{ - NumberAnimation { duration: 200 } - } - - Image { - id: stickyImage - x: 8 + -width * 0.6 / 2; y: -20 - source: "qrc:/note-yellow.png" - scale: 0.6; transformOrigin: Item.TopLeft - smooth: true - } - - TextEdit { - id: myText - text: noteText - x: -104; y: 36; width: 215; height: 200 - smooth: true - font.pixelSize: 24 - readOnly: false - rotation: -8 - wrapMode: TextEdit.Wrap - } - - Item { - id: interactionItem - x: stickyImage.x; y: -20 - width: stickyImage.width * stickyImage.scale - height: stickyImage.height * stickyImage.scale - - MouseArea { - id: mouse - anchors.fill: parent - drag.target: stickyPage - drag.axis: Drag.XandYAxis - } - Image { - id: writeButton - source: "qrc:/NfcFlag.png" - rotation: -8 // Note image itself is rotated - anchors { bottom: parent.bottom; right:parent.right } - scale: flagMouse.pressed ? 1.3 : 1 - MouseArea { - id: flagMouse - anchors.fill: parent - } - } - } - } - - Image { - x: -width / 2; y: -height * 0.5 / 2 - source: "qrc:/tack.png" - scale: 0.7; transformOrigin: Item.TopLeft - } - } - } - } -} - - - - - - - - diff --git a/examples/nfc/corkboard/NfcFlag.png b/examples/nfc/corkboard/NfcFlag.png Binary files differdeleted file mode 100644 index 6d2b9f89..00000000 --- a/examples/nfc/corkboard/NfcFlag.png +++ /dev/null diff --git a/examples/nfc/corkboard/android/AndroidManifest.xml b/examples/nfc/corkboard/android/AndroidManifest.xml deleted file mode 100644 index 3aec51ae..00000000 --- a/examples/nfc/corkboard/android/AndroidManifest.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<manifest package="org.qtproject.example" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto" android:extractNativeLibs="true"> - <application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="-- %%INSERT_APP_NAME%% --"> - <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" - android:name="org.qtproject.qt5.android.bindings.QtActivity" - android:label="-- %%INSERT_APP_NAME%% --" - android:screenOrientation="unspecified" - android:launchMode="singleTop"> - <intent-filter> - <action android:name="android.intent.action.MAIN"/> - <category android:name="android.intent.category.LAUNCHER"/> - </intent-filter> - <intent-filter> - <action android:name="android.nfc.action.NDEF_DISCOVERED"/> - <category android:name="android.intent.category.DEFAULT"/> - <data android:mimeType="text/plain"/> - </intent-filter> - - <!-- Application arguments --> - <!-- meta-data android:name="android.app.arguments" android:value="arg1 arg2 arg3"/ --> - <!-- Application arguments --> - - <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> - <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/> - <meta-data android:name="android.app.repository" android:value="default"/> - <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/> - <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/> - <!-- Deploy Qt libs as part of package --> - <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/> - <!-- Run with local libs --> - <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/> - <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/> - <meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/> - <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/> - <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/> - <!-- Messages maps --> - <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/> - <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/> - <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/> - <!-- Messages maps --> - - <!-- Splash screen --> - <!-- meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/ --> - <!-- meta-data android:name="android.app.splash_screen_sticky" android:value="true"/ --> - <!-- Splash screen --> - - <!-- Background running --> - <!-- Warning: changing this value to true may cause unexpected crashes if the - application still try to draw after - "applicationStateChanged(Qt::ApplicationSuspended)" - signal is sent! --> - <meta-data android:name="android.app.background_running" android:value="false"/> - <!-- Background running --> - - <!-- auto screen scale factor --> - <meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/> - <!-- auto screen scale factor --> - - <!-- extract android style --> - <!-- available android:values : - * full - useful QWidget & Quick Controls 1 apps - * minimal - useful for Quick Controls 2 apps, it is much faster than "full" - * none - useful for apps that don't use any of the above Qt modules - --> - <meta-data android:name="android.app.extract_android_style" android:value="full"/> - <!-- extract android style --> - </activity> - - <!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices --> - - </application> - - <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21"/> - <supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/> - - <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application. - Remove the comment if you do not require these default permissions. --> - <!-- %%INSERT_PERMISSIONS --> - - <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application. - Remove the comment if you do not require these default features. --> - <!-- %%INSERT_FEATURES --> - -</manifest> diff --git a/examples/nfc/corkboard/cork.jpg b/examples/nfc/corkboard/cork.jpg Binary files differdeleted file mode 100644 index 160bc002..00000000 --- a/examples/nfc/corkboard/cork.jpg +++ /dev/null diff --git a/examples/nfc/corkboard/corkboard.pro b/examples/nfc/corkboard/corkboard.pro deleted file mode 100644 index 858ac65d..00000000 --- a/examples/nfc/corkboard/corkboard.pro +++ /dev/null @@ -1,24 +0,0 @@ -QT += quick nfc - -SOURCES += \ - main.cpp - -TARGET = qml_corkboard -TEMPLATE = app - -RESOURCES += \ - corkboard.qrc - -OTHER_FILES += \ - corkboards.qml \ - Mode.qml - -!android-embedded { -ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android -} - -target.path = $$[QT_INSTALL_EXAMPLES]/nfc/corkboard -INSTALLS += target - -EXAMPLE_FILES += \ - icon.png diff --git a/examples/nfc/corkboard/corkboard.qrc b/examples/nfc/corkboard/corkboard.qrc deleted file mode 100644 index 10d80ce3..00000000 --- a/examples/nfc/corkboard/corkboard.qrc +++ /dev/null @@ -1,10 +0,0 @@ -<RCC> - <qresource prefix="/"> - <file>corkboards.qml</file> - <file>NfcFlag.png</file> - <file>tack.png</file> - <file>note-yellow.png</file> - <file>cork.jpg</file> - <file>Mode.qml</file> - </qresource> -</RCC> diff --git a/examples/nfc/corkboard/corkboards.qml b/examples/nfc/corkboard/corkboards.qml deleted file mode 100644 index 92cb6616..00000000 --- a/examples/nfc/corkboard/corkboards.qml +++ /dev/null @@ -1,128 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the QtNfc module. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * 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 -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** 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 QtQuick 2.3 -import QtNfc 5.5 - -Rectangle { - width: 800; height: 480 - color: "darkred" - - NearField { - property bool requiresManualPolling: false - orderMatch: false - - onMessageRecordsChanged: { - var i; - for (i = 0; i < messageRecords.length; ++i) { - var data = ""; - if (messageRecords[i].typeNameFormat === NdefRecord.NfcRtd) { - if (messageRecords[i].type === "T") { - data = messageRecords[i].text; - } else if (messageRecords[i].type === "U") { - data = messageRecords[i].uri; - } - } - if (!data) - data = "Unknown content"; - - list.get(listView.currentIndex).notes.append( { - "noteText":data - }) - } - } - - onPollingChanged: { - if (!polling && requiresManualPolling) - polling = true; //restart polling - } - - Component.onCompleted: { - // Polling should be true if - // QNearFieldManager::registerNdefMessageHandler() was successful; - // otherwise the platform requires manual polling mode. - if (!polling) { - requiresManualPolling = true; - polling = true; - } - } - } - - ListModel { - id: list - - ListElement { - name: "Personal" - notes: [ - ListElement { noteText: "Near Field Communication" }, - ListElement { noteText: "Touch a tag and its contents will appear as a new note" } - ] - } - - ListElement { - name: "Work" - notes: [ - ListElement { noteText: "https://www.qt.io" }, - ListElement { noteText: "To write a tag, click the red flag of a note and then touch a tag" } - ] - } - } - - ListView { - id: listView - anchors.fill: parent - orientation: ListView.Horizontal - snapMode: ListView.SnapOneItem - model: list - highlightRangeMode: ListView.StrictlyEnforceRange - delegate: Mode {} - } -} diff --git a/examples/nfc/corkboard/doc/images/corkboard.png b/examples/nfc/corkboard/doc/images/corkboard.png Binary files differdeleted file mode 100644 index 3f54ea18..00000000 --- a/examples/nfc/corkboard/doc/images/corkboard.png +++ /dev/null diff --git a/examples/nfc/corkboard/doc/src/corkboard.qdoc b/examples/nfc/corkboard/doc/src/corkboard.qdoc deleted file mode 100644 index ac21187b..00000000 --- a/examples/nfc/corkboard/doc/src/corkboard.qdoc +++ /dev/null @@ -1,137 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the QtNfc module. -** -** $QT_BEGIN_LICENSE:FDL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Free Documentation License Usage -** Alternatively, this file may be used under the terms of the GNU Free -** Documentation License version 1.3 as published by the Free Software -** Foundation and appearing in the file included in the packaging of -** this file. Please review the following information to ensure -** the GNU Free Documentation License version 1.3 requirements -** will be met: https://www.gnu.org/licenses/fdl-1.3.html. -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/*! -\example corkboard -\title QML CorkBoard Example -\brief A QML example about displaying NFC Data Exchange Format (NDEF) messages. - -The QML corkboard example displays the contents of NDEF messages read -from an NFC Tag. Each newly detected NDEF message is added to the -corkboard and can be dragged into an arbitrary position on the -board. The corkboard has a \e Personal and \e Work space. The -workspace can be changed by sliding left or right. - - -\image corkboard.png - -\section1 Implementation details -In the corkboard example, we use the following .qml files: - \list - \li corkboards.qml - \li Mode.qml - \endlist - -The main.cpp holds the application logic to load the main view stored -in the corkboards.qml file. - -\snippet corkboard/main.cpp 0 - -\section1 corkboards.qml details -There are two basic QML components in this file: - \list - \li NearField - \li ListView - \endlist - -The first time the NearField QML type is instantiated, the -Component.onCompleted handler will start the NFC polling process. The -\l [Qml] {NearField} {onMessageRecordsChanged} handler parses NFC -Messages that are detected by the NearField component and builds up a -data model that is passed into the ListView. Additionally, every time the -NearField manager stops the polling process, the onPollingChanged -handler restarts it. - -\quotefromfile corkboard/corkboards.qml -\skipto NearField -\printuntil onMessageRecordsChanged -\dots 8 -\skipuntil } -\skipto onPollingChanged -\printuntil onPollingChanged -\dots 8 -\skipuntil } -\skipto Component -\printuntil Component -\dots 8 -\skipuntil } -\printline } -\skipto ListModel -\printto ListModel - -The ListView component takes a ListModel as parameter (built from the -NFC records). The view of each of the items of the model is defined by -the Mode component (its implementation details can be found in the -file Mode.qml). The data model consists of a list of corkboards. Each -corkboard can display multiple NFC text message records. - -\quotefromfile corkboard/corkboards.qml -\skipto ListView -\printuntil id -\dots 8 -\skipto model -\printuntil model -\dots 8 -\skipto delegate -\printuntil delegate -\skipto } -\printline } - -\section1 Mode.qml details - -A corkboard title is displayed for each of the items that form part -of the data model: - -\quotefromfile corkboard/Mode.qml -\skipto Text -\printuntil } -\printuntil } - -Every text record that was read from an NFC message, is represented by -a sticky note with its own position on the display. Initially the -position is set randomly. The text on the sticky note is set on a -TextField. - -\quotefromfile corkboard/Mode.qml -\skipto Repeater -\printuntil y: -\skipto Item -\dots 16 -\printuntil sticky -\dots 20 -\skipto TextEdit -\printuntil noteText -\dots 24 -\skipto } -\printuntil } -\dots 20 - -\include examples-run.qdocinc - -\sa {Qt NFC} - -*/ diff --git a/examples/nfc/corkboard/icon.png b/examples/nfc/corkboard/icon.png Binary files differdeleted file mode 100644 index b115f836..00000000 --- a/examples/nfc/corkboard/icon.png +++ /dev/null diff --git a/examples/nfc/corkboard/main.cpp b/examples/nfc/corkboard/main.cpp deleted file mode 100644 index 74fad72f..00000000 --- a/examples/nfc/corkboard/main.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the QtNfc module. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * 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 -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** 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$ -** -****************************************************************************/ - -#include <QtGui/QGuiApplication> -#include <QtQml/QQmlEngine> -#include <QtQuick/QQuickView> - -//! [0] -int main(int argc, char *argv[]) -{ - QGuiApplication application(argc, argv); - QQuickView view; - view.setSource(QUrl("qrc:/corkboards.qml")); - view.setResizeMode(QQuickView::SizeRootObjectToView); - view.show(); - return application.exec(); -} -//! [0] diff --git a/examples/nfc/corkboard/note-yellow.png b/examples/nfc/corkboard/note-yellow.png Binary files differdeleted file mode 100644 index 3195952a..00000000 --- a/examples/nfc/corkboard/note-yellow.png +++ /dev/null diff --git a/examples/nfc/corkboard/tack.png b/examples/nfc/corkboard/tack.png Binary files differdeleted file mode 100644 index cef2d1cd..00000000 --- a/examples/nfc/corkboard/tack.png +++ /dev/null |