Commit Graph

8 Commits

Author SHA1 Message Date
Ivan Solovev 0d83f047b1 AnnotatedUrl: add QNdefFilter support
Update the example to show the usage of QNdefFilter.

Task-number: QTBUG-94033
Change-Id: I41b463bcf41bd3f4cb5b60981d9e3a89f7622531
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit f6e57299b4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2021-06-14 09:24:14 +00:00
Ivan Solovev 6ff856839a AnnotatedUrl: refactor UI
This patch refactors the UI layout, so that it handles screen rotation
correctly. The *.ui files are removed. The layout is created directly
from the source code instead.
The application now has two different labels to show the icon.
Depending on the actual screen orientation, one of them shows the icon,
and the other is hidden.
The icon is properly scaled before it's shown, so that the layout does
not expand beyond the visible screen rectangle.
Also this patch introduces a code that handles screen orientation
change, and the screen change (in case the application is dragged to
the other monitor). The latter is not really applicable to mobile
devices though.

Task-number: QTBUG-94033
Change-Id: I0d7d781bd2b97e16f7fba530eeffd407c7eaff61
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 6d4d0ca9ea)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2021-06-11 07:47:22 +00:00
Ivan Solovev bf941322d0 AnnotatedUrl: handle adapter state
Extend the AnnotatedUrl example application to handle adapter state
changes. This allows to correctly handle NFC enabling and disabling,
while the application is running.

Task-number: QTBUG-94033
Change-Id: I9978436b98a772db256e12cfd41072c3b6286b88
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 723e824422)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2021-06-09 13:17:14 +00:00
Andrew O'Doherty 1187c4cfcb Revamp Qt NFC examples: annotatedurl example
Align QtNfc Module examples to QML and c++ coding conventions. This
commit is focused on the annotatedurl example.

Task-number: QTBUG-60644
Change-Id: Ia8e847fe270a677812a75827945a1e85d6c1d1a9
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2018-02-01 11:55:14 +00:00
Kai Koehne b171cddac0 Fix outdated BSD license header
Change-Id: I28f5936913a6127806325df34af4bf71a142e72e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2017-10-17 11:17:54 +00:00
Jani Heikkinen 7354c6d393 Update copyright headers
Qt copyrights are now in The Qt Company, so we could update the source
code headers accordingly. In the same go we should also fix the links to
point to qt.io.

Change-Id: I3822a6484e8f7a420330de1cb1aeb0c3d1cf41b7
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
2015-02-16 11:48:42 +00:00
Alex Blasche 8dad4698d9 Update Copyright headers
- Update Digia's copyright year
- Add copyright to files without it
- Convert old BSD to new LGPL license for auto test code

Change-Id: I47f5c871c436f9c2731b235026434448719cc671
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2013-06-25 10:08:54 +02:00
Jerome Pasion d8a179128c Qt Bluetooth: Modularized documentation
-moved documentation to src/bluetooth/doc
-added a qdocconf file for Qt Bluetooth
-fixed relative paths for snippets
-moved examples to examples/bluetooth

Change-Id: Id41bac50dca628400568d191f1c3ccfbaac790a1
Reviewed-by: Alex <ablasche@gmail.com>
2012-09-27 14:43:52 +02:00