Commit 7adf7aad authored by Antonio Larrosa Jimenez's avatar Antonio Larrosa Jimenez
Browse files

Fix build with Qt dev branch, where QCUPSSupport::cupsOptionsList was removed

Summary:
Fix build with Qt dev branch, where QCUPSSupport::cupsOptionsList was removed

BUG 389825

Reviewers: aacid, jriddell

Reviewed By: aacid

Differential Revision: https://phabricator.kde.org/D10345
parent 688a88b7
......@@ -636,7 +636,7 @@ uint PrintPortal::PreparePrint(const QDBusObjectPath &handle,
resultingSettings.insert(QLatin1String("page-ranges"), QString("%1-%2").arg(printer->fromPage()).arg(printer->toPage()));
}
// Set cups specific properties
const QStringList cupsOptions = QCUPSSupport::cupsOptionsList(printer);
const QStringList cupsOptions = printer->printEngine()->property(PPK_CupsOptions).toStringList();
qCDebug(XdgDesktopPortalKdePrint) << cupsOptions;
if (cupsOptions.contains(QLatin1String("page-set"))) {
resultingSettings.insert(QLatin1String("page-set"), cupsOptions.at(cupsOptions.indexOf(QLatin1String("page-set")) + 1));
......
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