summaryrefslogtreecommitdiffstats
path: root/examples/nfc/annotatedurl/annotatedurl.cpp
diff options
context:
space:
mode:
authorAndrew O'Doherty <andrew.odoherty@qt.io>2018-02-01 12:46:32 +0100
committerAndrew O'Doherty <andrew.odoherty@qt.io>2018-03-05 14:37:54 +0000
commita0188acf80824e26632b8e008c22a4d2074d909a (patch)
treeaee0c462a35451ea0c555d4f69362442223eb28a /examples/nfc/annotatedurl/annotatedurl.cpp
parent3d93b58fcc36f556a90613750a3150d56379b2a4 (diff)
Revamp Qt NFC examples: documentation update
Update the documentation of annotatedurl and corkboard examples Task-number: QTBUG-60644 Change-Id: Ide980dd2573e443bc54553cd2916ac6b209da2c9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/nfc/annotatedurl/annotatedurl.cpp')
-rw-r--r--examples/nfc/annotatedurl/annotatedurl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nfc/annotatedurl/annotatedurl.cpp b/examples/nfc/annotatedurl/annotatedurl.cpp
index 5c4a0527..0e6b58fa 100644
--- a/examples/nfc/annotatedurl/annotatedurl.cpp
+++ b/examples/nfc/annotatedurl/annotatedurl.cpp
@@ -168,12 +168,12 @@ void AnnotatedUrl::handleMessage(const QNdefMessage &message, QNearFieldTarget *
QNdefNfcUriRecord uriRecord(record);
url = uriRecord.uri();
-//! [handleMessage 3]
} else if (record.typeNameFormat() == QNdefRecord::Mime &&
record.type().startsWith("image/")) {
pixmap = QPixmap::fromImage(QImage::fromData(record.payload()));
-//! [handleMessage 4]
}
+//! [handleMessage 3]
+//! [handleMessage 4]
}
emit annotatedUrl(url, title, pixmap);