~ahayzen/ubuntu-settings-components/always-scale-print-pages

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Printers/backend/backend_cups.cpp

  • Committer: Jonas G. Drange
  • Date: 2017-01-23 20:49:03 UTC
  • mfrom: (213.2.1 printer-state)
  • Revision ID: jonas.drange@canonical.com-20170123204903-nzxp9rvohny2gt0v
adds printer state

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
 
225
225
PrinterEnum::State PrinterCupsBackend::state() const
226
226
{
227
 
 
 
227
    switch (m_info.state()) {
 
228
        case QPrinter::Idle:
 
229
            return PrinterEnum::State::IdleState;
 
230
        case QPrinter::Active:
 
231
            return PrinterEnum::State::ActiveState;
 
232
        case QPrinter::Aborted:
 
233
            return PrinterEnum::State::AbortedState;
 
234
        case QPrinter::Error:
 
235
            return PrinterEnum::State::ErrorState;
 
236
    }
228
237
}
229
238
 
230
239
QList<QPageSize> PrinterCupsBackend::supportedPageSizes() const