Commit 88364010 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated QString::fromAscii to QString::fromLatin1

parent bd1a8711
......@@ -405,7 +405,7 @@ bool LibinputTouchpad::valueLoader(Prop<T> &prop)
template<typename T>
QString LibinputTouchpad::valueWriter(const Prop<T> &prop)
{
const Parameter *p = findParameter(QString::fromAscii(prop.name));
const Parameter *p = findParameter(QString::fromLatin1(prop.name));
if (!p || !prop.changed()) {
return QString();
......@@ -413,8 +413,8 @@ QString LibinputTouchpad::valueWriter(const Prop<T> &prop)
bool error = !setParameter( p, prop.val);
if (error) {
qCCritical(KCM_TOUCHPAD) << "Cannot set property " + QString::fromAscii(prop.name);
return QStringLiteral("Cannot set property ") + QString::fromAscii(prop.name);
qCCritical(KCM_TOUCHPAD) << "Cannot set property " + QString::fromLatin1(prop.name);
return QStringLiteral("Cannot set property ") + QString::fromLatin1(prop.name);
}
auto touchpadConfig = m_config->group(m_name);
touchpadConfig.writeEntry(QString(prop.name), prop.val);
......
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