From eb78c7e82288fb730c40b97f720a4b6d7f251d35 Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Fri, 20 Mar 2015 15:51:09 +0100 Subject: Fix storing of image MIME record Change-Id: I0866be315d70a6e21b587130c246e8e06a954a36 Reviewed-by: Alex Blasche --- examples/nfc/ndefeditor/mimeimagerecordeditor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/nfc/ndefeditor') 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); } -- cgit v1.2.3