blob: 43ed23f6709b65fc40588d26c184b5d9491408c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "urirecordeditor.h"
#include "ui_urirecordeditor.h"
#include <QtCore/QUrl>
UriRecordEditor::UriRecordEditor(QWidget *parent) :
QWidget(parent),
ui(new Ui::UriRecordEditor)
{
ui->setupUi(this);
}
UriRecordEditor::~UriRecordEditor()
{
delete ui;
}
void UriRecordEditor::setRecord(const QNdefNfcUriRecord &uriRecord)
{
ui->uri->setText(uriRecord.uri().toString());
}
QNdefNfcUriRecord UriRecordEditor::record() const
{
QNdefNfcUriRecord record;
record.setUri(ui->uri->text());
return record;
}
|