Commit 5973d744 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Using no deprecated enum Qt::MiddleButton

parent 6ba27a65
......@@ -186,7 +186,7 @@ void DevicesModel::insertDevice(const QString &device_class,
device_location,
!grouped_printers.isEmpty());
if (!grouped_printers.isEmpty()) {
stdItem->setData(qVariantFromValue(grouped_printers), DeviceUris);
stdItem->setData(QVariant::fromValue(grouped_printers), DeviceUris);
}
}
......
......@@ -178,7 +178,7 @@ void PageDestinations::deviceChanged()
ui->connectionsCB->clear();
const auto printers = uris.value<KCupsPrinters>();
for (const KCupsPrinter &printer : printers) {
ui->connectionsCB->addItem(printer.name(), qVariantFromValue(printer));
ui->connectionsCB->addItem(printer.name(), QVariant::fromValue(printer));
}
ui->connectionsGB->setVisible(true);
}
......
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