Commit a8034c36 authored by David Edmundson's avatar David Edmundson

Set all labels to plain text

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27543
parent edbb2ac6
......@@ -97,6 +97,9 @@
</item>
<item>
<widget class="QLabel" name="remoteName">
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
......
......@@ -36,10 +36,10 @@ RequestAuthorization::RequestAuthorization(BluezQt::DevicePtr device, QObject *p
KNotification::Persistent, this);
notification->setComponentName(QStringLiteral("bluedevil"));
notification->setTitle(QStringLiteral("%1 (%2)").arg(m_device->name(), m_device->address()));
notification->setTitle(QStringLiteral("%1 (%2)").arg(m_device->name().toHtmlEscaped(), m_device->address().toHtmlEscaped()));
notification->setText(i18nc("Show a notification asking to authorize or deny access to this computer from Bluetooth."
"The %1 is the name of the bluetooth device",
"%1 is requesting access to this computer", m_device->name()));
"%1 is requesting access to this computer", m_device->name().toHtmlEscaped()));
QStringList actions;
actions.append(i18nc("Button to trust a bluetooth remote device and authorize it to connect", "Trust && Authorize"));
......
......@@ -35,10 +35,10 @@ RequestConfirmation::RequestConfirmation(BluezQt::DevicePtr device, const QStrin
KNotification::Persistent, this);
notification->setComponentName(QStringLiteral("bluedevil"));
notification->setTitle(QStringLiteral("%1 (%2)").arg(m_device->name(), m_device->address()));
notification->setTitle(QStringLiteral("%1 (%2)").arg(m_device->name().toHtmlEscaped(), m_device->address()));
notification->setText(i18nc("The text is shown in a notification to know if the PIN is correct,"
"%1 is the remote bluetooth device and %2 is the pin",
"%1 is asking if the PIN is correct: %2", m_device->name(), m_pin));
"%1 is asking if the PIN is correct: %2", m_device->name().toHtmlEscaped(), m_pin));
QStringList actions;
actions.append(i18nc("Notification button to know if the pin is correct or not", "PIN correct"));
......
......@@ -43,10 +43,10 @@ RequestPin::RequestPin(BluezQt::DevicePtr device, bool numeric, QObject *parent)
KNotification::Persistent, this);
m_notification->setComponentName(QStringLiteral("bluedevil"));
m_notification->setTitle(QStringLiteral("%1 (%2)").arg(m_device->name(), m_device->address()));
m_notification->setTitle(QStringLiteral("%1 (%2)").arg(m_device->name().toHtmlEscaped(), m_device->address().toHtmlEscaped()));
m_notification->setText(i18nc("Shown in a notification to announce that a PIN is needed to accomplish a pair action,"
"%1 is the name of the bluetooth device",
"PIN needed to pair with %1", m_device->name()));
"PIN needed to pair with %1", m_device->name().toHtmlEscaped()));
QStringList actions;
actions.append(i18nc("Notification button which once clicked, a dialog to introduce the PIN will be shown",
......
......@@ -138,10 +138,10 @@ void ReceiveFileJob::showNotification()
KNotification *notification = new KNotification(QStringLiteral("IncomingFile"),
KNotification::Persistent, this);
notification->setTitle(QStringLiteral("%1 (%2)").arg(m_deviceName, m_deviceAddress));
notification->setTitle(QStringLiteral("%1 (%2)").arg(m_deviceName.toHtmlEscaped(), m_deviceAddress));
notification->setText(i18nc(
"Show a notification asking to authorize or deny an incoming file transfer to this computer from a Bluetooth device.",
"%1 is sending you the file %2", m_deviceName, m_transfer->name()));
"%1 is sending you the file %2", m_deviceName.toHtmlEscaped(), m_transfer->name()));
QStringList actions;
actions.append(i18nc("Button to accept the incoming file transfer and download it in the default download directory", "Accept"));
......
......@@ -12,7 +12,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="connLabel"/>
<widget class="QLabel" name="connLabel">
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
......
......@@ -44,6 +44,9 @@
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
</layout>
......
......@@ -47,6 +47,9 @@
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
</layout>
......
......@@ -12,7 +12,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="connectingLbl"/>
<widget class="QLabel" name="connectingLbl">
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar">
......
......@@ -47,6 +47,9 @@
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
</layout>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment