~jonas-drange/ubuntu-settings-components/cups-notifications

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Printers/printer/printerinfo_impl.h

  • Committer: Andrew Hayzen
  • Date: 2017-01-19 20:13:27 UTC
  • mfrom: (208.1.4 duplex-improvements)
  • Revision ID: ahayzen@gmail.com-20170119201327-9uohx2509q5apro6
* Add a Printers::allPrintersWithPdf option which includes a fake pdf at the bottom
* Add a PrinterInfoAllImpl which combines PrinterInfoPdfImpl and PrinterInfoImpl for listing
* Add a PrinterInfoPdfImpl which implements a fake pdf printer (just a name in the list)
* Add isPdf role to PrinterModel
* Add filterOnPdf to PrinterModel to allow for only showing pdf printers
* Force pdf printers to bottom of the PrinterModel
* Inject a fake ColorModel in PrinterPrivate::loadColorModel for pdf printers
* Change PrinterJob::setPrinterName to use PrinterInfoAllImpl for retreiving the PrinterInfo
* Improve the UI names for the Duplex modes
* Improve detection of color models so that "black" is a greyscale type
* In the example disable duplex mode when there is only None
* Fix colorModelType not emitting when it may have changed, causing QML to get out of sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    virtual PrinterInfo* printerInfo(const QString &printerName) override;
52
52
    virtual QString defaultPrinterName() override;
53
53
 
 
54
    virtual bool isPdf() const override;
 
55
 
54
56
    virtual void refresh() override;
55
57
 
56
58
private: