diff --git a/src/kcmodule/devices/devicedetails.ui b/src/kcmodule/devices/devicedetails.ui --- a/src/kcmodule/devices/devicedetails.ui +++ b/src/kcmodule/devices/devicedetails.ui @@ -97,6 +97,9 @@ + + Qt::PlainText + Qt::AlignCenter diff --git a/src/kded/helpers/requestauthorization.cpp b/src/kded/helpers/requestauthorization.cpp --- a/src/kded/helpers/requestauthorization.cpp +++ b/src/kded/helpers/requestauthorization.cpp @@ -36,10 +36,10 @@ 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")); diff --git a/src/kded/helpers/requestconfirmation.cpp b/src/kded/helpers/requestconfirmation.cpp --- a/src/kded/helpers/requestconfirmation.cpp +++ b/src/kded/helpers/requestconfirmation.cpp @@ -35,10 +35,10 @@ 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")); diff --git a/src/kded/helpers/requestpin.cpp b/src/kded/helpers/requestpin.cpp --- a/src/kded/helpers/requestpin.cpp +++ b/src/kded/helpers/requestpin.cpp @@ -43,10 +43,10 @@ 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", diff --git a/src/kded/receivefilejob.cpp b/src/kded/receivefilejob.cpp --- a/src/kded/receivefilejob.cpp +++ b/src/kded/receivefilejob.cpp @@ -138,10 +138,10 @@ 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")); diff --git a/src/sendfile/pages/connecting.ui b/src/sendfile/pages/connecting.ui --- a/src/sendfile/pages/connecting.ui +++ b/src/sendfile/pages/connecting.ui @@ -12,7 +12,11 @@ - + + + Qt::PlainText + + diff --git a/src/sendfile/pages/failpage.ui b/src/sendfile/pages/failpage.ui --- a/src/sendfile/pages/failpage.ui +++ b/src/sendfile/pages/failpage.ui @@ -44,6 +44,9 @@ + + Qt::PlainText + diff --git a/src/wizard/pages/fail.ui b/src/wizard/pages/fail.ui --- a/src/wizard/pages/fail.ui +++ b/src/wizard/pages/fail.ui @@ -47,6 +47,9 @@ + + Qt::PlainText + diff --git a/src/wizard/pages/pairing.ui b/src/wizard/pages/pairing.ui --- a/src/wizard/pages/pairing.ui +++ b/src/wizard/pages/pairing.ui @@ -12,7 +12,11 @@ - + + + Qt::PlainText + + diff --git a/src/wizard/pages/success.ui b/src/wizard/pages/success.ui --- a/src/wizard/pages/success.ui +++ b/src/wizard/pages/success.ui @@ -47,6 +47,9 @@ + + Qt::PlainText +