From c45947aeefa1a83eda767edca4fd4c6f9404d3ff Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 29 Dec 2017 15:18:52 +0100 Subject: CUPS: Don't show choices that conflict with the printer installed options Some options only make sense if the printer has installed some extensions, e.g. we should not shown "Staple" options if the Stapler addon is not installed, so with this change we use ppdInstallableConflict to know whether an option should be shown to the user or not. Change-Id: I5733e1ac8b667c26b292aeafc90a10c155b751a4 Reviewed-by: Andy Shaw --- src/plugins/printsupport/cups/qppdprintdevice.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/printsupport/cups/qppdprintdevice.h') diff --git a/src/plugins/printsupport/cups/qppdprintdevice.h b/src/plugins/printsupport/cups/qppdprintdevice.h index 2e4dd3ab3b..9867083bd7 100644 --- a/src/plugins/printsupport/cups/qppdprintdevice.h +++ b/src/plugins/printsupport/cups/qppdprintdevice.h @@ -91,6 +91,7 @@ public: QVariant property(QPrintDevice::PrintDevicePropertyKey key) const override; bool setProperty(QPrintDevice::PrintDevicePropertyKey key, const QVariant &value) override; + bool isFeatureAvailable(QPrintDevice::PrintDevicePropertyKey key, const QVariant ¶ms) const override; protected: void loadPageSizes() const override; -- cgit v1.2.3