| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | QPlatformPrinterSupport::QPlatformPrinterSupport() | - |
| 8 | { | - |
| 9 | } | - |
| 10 | | - |
| 11 | QPlatformPrinterSupport::~QPlatformPrinterSupport() | - |
| 12 | { | - |
| 13 | } | - |
| 14 | | - |
| 15 | QPrintEngine *QPlatformPrinterSupport::createNativePrintEngine(QPrinter::PrinterMode) | - |
| 16 | { | - |
| 17 | return 0; never executed: return 0; | 0 |
| 18 | } | - |
| 19 | | - |
| 20 | QPaintEngine *QPlatformPrinterSupport::createPaintEngine(QPrintEngine *, QPrinter::PrinterMode) | - |
| 21 | { | - |
| 22 | return 0; never executed: return 0; | 0 |
| 23 | } | - |
| 24 | | - |
| 25 | QList<QPrinter::PaperSize> QPlatformPrinterSupport::supportedPaperSizes(const QPrinterInfo &) const | - |
| 26 | { | - |
| 27 | return QList<QPrinter::PaperSize>(); never executed: return QList<QPrinter::PaperSize>(); | 0 |
| 28 | } | - |
| 29 | | - |
| 30 | QList<QPrinterInfo> QPlatformPrinterSupport::availablePrinters() | - |
| 31 | { | - |
| 32 | return m_printers; executed: return m_printers;Execution Count:189 | 189 |
| 33 | } | - |
| 34 | | - |
| 35 | QPrinterInfo QPlatformPrinterSupport::defaultPrinter() | - |
| 36 | { | - |
| 37 | const QList<QPrinterInfo> printers = availablePrinters(); | - |
| 38 | for (QForeachContainer<__typeof__(printers)> _container_(printers); !_container_.brk && _container_.i != _container_.e; __extension__ ({ ++_container_.brk; ++_container_.i; })) for (const QPrinterInfo &printerInfo = *_container_.i;; __extension__ ({--_container_.brk; break;})) { | - |
| 39 | if (printerInfo.isDefault()) never evaluated: printerInfo.isDefault() | 0 |
| 40 | return printerInfo; never executed: return printerInfo; | 0 |
| 41 | } | 0 |
| 42 | return QPrinterInfo(); executed: return QPrinterInfo();Execution Count:85 | 85 |
| 43 | } | - |
| 44 | | - |
| 45 | QPrinterInfo QPlatformPrinterSupport::printerInfo(const QString &printerName) | - |
| 46 | { | - |
| 47 | const QList<QPrinterInfo> printers = availablePrinters(); | - |
| 48 | for (QForeachContainer<__typeof__(printers)> _container_(printers); !_container_.brk && _container_.i != _container_.e; __extension__ ({ ++_container_.brk; ++_container_.i; })) for (const QPrinterInfo &printerInfo = *_container_.i;; __extension__ ({--_container_.brk; break;})) { | - |
| 49 | if (printerInfo.printerName() == printerName) never evaluated: printerInfo.printerName() == printerName | 0 |
| 50 | return printerInfo; never executed: return printerInfo; | 0 |
| 51 | } | 0 |
| 52 | return QPrinterInfo(); executed: return QPrinterInfo();Execution Count:4 | 4 |
| 53 | } | - |
| 54 | | - |
| 55 | QString QPlatformPrinterSupport::printerOption(const QPrinterInfo &printer, const QString &key) const | - |
| 56 | { | - |
| 57 | (void)printer; | - |
| 58 | (void)key; | - |
| 59 | return QString(); never executed: return QString(); | 0 |
| 60 | } | - |
| 61 | | - |
| 62 | PrinterOptions QPlatformPrinterSupport::printerOptions(const QPrinterInfo &printer) const | - |
| 63 | { | - |
| 64 | (void)printer; | - |
| 65 | return PrinterOptions(); never executed: return PrinterOptions(); | 0 |
| 66 | } | - |
| 67 | | - |
| 68 | int QPlatformPrinterSupport::printerIndex(const QPrinterInfo &printer) | - |
| 69 | { | - |
| 70 | return printer.d_func()->index; never executed: return printer.d_func()->index; | 0 |
| 71 | } | - |
| 72 | | - |
| 73 | QPrinterInfo QPlatformPrinterSupport::createPrinterInfo(const QString &name, const QString &description, | - |
| 74 | const QString &location, const QString &makeAndModel, | - |
| 75 | bool isDefault, int index) | - |
| 76 | { | - |
| 77 | QPrinterInfo printer(name); | - |
| 78 | printer.d_func()->description = description; | - |
| 79 | printer.d_func()->location = location; | - |
| 80 | printer.d_func()->makeAndModel = makeAndModel; | - |
| 81 | printer.d_func()->isDefault = isDefault; | - |
| 82 | printer.d_func()->index = index; | - |
| 83 | return printer; never executed: return printer; | 0 |
| 84 | } | - |
| 85 | | - |
| 86 | | - |
| 87 | | - |
| 88 | | - |
| 89 | | - |
| 90 | extern QPrinter::PaperSize qSizeFTopaperSize(const QSizeF &); | - |
| 91 | QPrinter::PaperSize QPlatformPrinterSupport::convertQSizeFToPaperSize(const QSizeF &sizef) | - |
| 92 | { | - |
| 93 | return qSizeFTopaperSize(sizef); never executed: return qSizeFTopaperSize(sizef); | 0 |
| 94 | } | - |
| 95 | | - |
| 96 | | - |
| 97 | | - |
| 98 | | - |
| 99 | | - |
| 100 | extern QSizeF qt_paperSizeToQSizeF(QPrinter::PaperSize size); | - |
| 101 | QSizeF QPlatformPrinterSupport::convertPaperSizeToQSizeF(QPrinter::PaperSize paperSize) | - |
| 102 | { | - |
| 103 | return qt_paperSizeToQSizeF(paperSize); never executed: return qt_paperSizeToQSizeF(paperSize); | 0 |
| 104 | } | - |
| 105 | | - |
| 106 | | - |
| 107 | | - |
| | |