summaryrefslogtreecommitdiffstats
path: root/examples/nfc/ndefeditor/mainwindow.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-05-14 14:10:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 10:10:05 +0200
commit10cd7743aa8c30fc3a5f8485ba4c4aad6bb5365e (patch)
tree4498b82fc104cf4e675241412d147de61147ed55 /examples/nfc/ndefeditor/mainwindow.cpp
parentde750dc7971b3dfda350b5602501b6215ef3da8d (diff)
Utilize QStringLiteral where possible
The only exception are generated files and cases where QLatin1String based overloads are used (e.g. during QString comparisons) Change-Id: I6f36789fb8acb3b30c1dc1f8a920b118a979d74f Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'examples/nfc/ndefeditor/mainwindow.cpp')
-rw-r--r--examples/nfc/ndefeditor/mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/nfc/ndefeditor/mainwindow.cpp b/examples/nfc/ndefeditor/mainwindow.cpp
index fedb0866..527ff6c7 100644
--- a/examples/nfc/ndefeditor/mainwindow.cpp
+++ b/examples/nfc/ndefeditor/mainwindow.cpp
@@ -105,13 +105,13 @@ void addRecord(Ui::MainWindow *ui, const QNdefRecord &record = QNdefRecord())
if (!vbox->isEmpty()) {
QFrame *hline = new QFrame;
hline->setFrameShape(QFrame::HLine);
- hline->setObjectName(QLatin1String("line-spacer"));
+ hline->setObjectName(QStringLiteral("line-spacer"));
vbox->addWidget(hline);
}
T *recordEditor = new T;
- recordEditor->setObjectName(QLatin1String("record-editor"));
+ recordEditor->setObjectName(QStringLiteral("record-editor"));
if (!record.isEmpty())
recordEditor->setRecord(record);
@@ -202,7 +202,7 @@ void MainWindow::saveMessage()
void MainWindow::touchReceive()
{
- ui->status->setStyleSheet(QLatin1String("background: blue"));
+ ui->status->setStyleSheet(QStringLiteral("background: blue"));
m_touchAction = ReadNdef;
@@ -214,7 +214,7 @@ void MainWindow::touchReceive()
void MainWindow::touchStore()
{
- ui->status->setStyleSheet(QLatin1String("background: yellow"));
+ ui->status->setStyleSheet(QStringLiteral("background: yellow"));
m_touchAction = WriteNdef;
@@ -337,8 +337,8 @@ void MainWindow::clearMessage()
{
QWidget *scrollArea = ui->scrollAreaWidgetContents;
- qDeleteAll(scrollArea->findChildren<QWidget *>(QLatin1String("line-spacer")));
- qDeleteAll(scrollArea->findChildren<QWidget *>(QLatin1String("record-editor")));
+ qDeleteAll(scrollArea->findChildren<QWidget *>(QStringLiteral("line-spacer")));
+ qDeleteAll(scrollArea->findChildren<QWidget *>(QStringLiteral("record-editor")));
}
QNdefMessage MainWindow::ndefMessage() const