summaryrefslogtreecommitdiffstats
path: root/examples/nfc
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2015-03-20 15:51:09 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-03-23 06:20:13 +0000
commiteb78c7e82288fb730c40b97f720a4b6d7f251d35 (patch)
tree53603dd03990e3271ad65f84c5f8ca993d94d267 /examples/nfc
parenta888044ed7c4ac1422f5e1f73fe747f0cd2f7531 (diff)
Fix storing of image MIME record
Change-Id: I0866be315d70a6e21b587130c246e8e06a954a36 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/nfc')
-rw-r--r--examples/nfc/ndefeditor/mimeimagerecordeditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp b/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
index 134d674c..5ed733a4 100644
--- a/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
+++ b/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
@@ -134,6 +134,7 @@ void MimeImageRecordEditor::on_mimeImageOpen_clicked()
ui->mimeImageFile->setText(mimeDataFile);
ui->mimeImageImage->setPixmap(QPixmap::fromImage(image));
+ m_record.setTypeNameFormat(QNdefRecord::Mime);
m_record.setType(mimeType.toLatin1());
m_record.setPayload(imageData);
}