| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | QPrinterInfoPrivate QPrinterInfoPrivate::shared_null; | - |
| 8 | QPrinterInfo::QPrinterInfo() | - |
| 9 | : d_ptr(&QPrinterInfoPrivate::shared_null) | - |
| 10 | { | - |
| 11 | } executed: }Execution Count:90 | 90 |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | QPrinterInfo::QPrinterInfo(const QPrinterInfo &other) | - |
| 17 | : d_ptr(new QPrinterInfoPrivate(*other.d_ptr)) | - |
| 18 | { | - |
| 19 | } | 0 |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | QPrinterInfo::QPrinterInfo(const QPrinter &printer) | - |
| 25 | : d_ptr(&QPrinterInfoPrivate::shared_null) | - |
| 26 | { | - |
| 27 | QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); | - |
| 28 | if (ps) { | 0 |
| 29 | QPrinterInfo pi = ps->printerInfo(printer.printerName()); | - |
| 30 | d_ptr.reset(new QPrinterInfoPrivate(*pi.d_ptr)); | - |
| 31 | } | 0 |
| 32 | } | 0 |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | QPrinterInfo::QPrinterInfo(const QString &name) | - |
| 38 | : d_ptr(new QPrinterInfoPrivate(name)) | - |
| 39 | { | - |
| 40 | } | 0 |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | QPrinterInfo::~QPrinterInfo() | - |
| 47 | { | - |
| 48 | } | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | QPrinterInfo &QPrinterInfo::operator=(const QPrinterInfo &other) | - |
| 54 | { | - |
| 55 | qt_noop(); | - |
| 56 | d_ptr.reset(new QPrinterInfoPrivate(*other.d_ptr)); | - |
| 57 | return *this; never executed: return *this; | 0 |
| 58 | } | - |
| 59 | QString QPrinterInfo::printerName() const | - |
| 60 | { | - |
| 61 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 62 | return d->name; executed: return d->name;Execution Count:3 | 3 |
| 63 | } | - |
| 64 | | - |
| 65 | | - |
| 66 | | - |
| 67 | | - |
| 68 | | - |
| 69 | | - |
| 70 | | - |
| 71 | QString QPrinterInfo::description() const | - |
| 72 | { | - |
| 73 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 74 | return d->description; never executed: return d->description; | 0 |
| 75 | } | - |
| 76 | | - |
| 77 | | - |
| 78 | | - |
| 79 | | - |
| 80 | | - |
| 81 | | - |
| 82 | QString QPrinterInfo::location() const | - |
| 83 | { | - |
| 84 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 85 | return d->location; executed: return d->location;Execution Count:4 | 4 |
| 86 | } | - |
| 87 | | - |
| 88 | | - |
| 89 | | - |
| 90 | | - |
| 91 | | - |
| 92 | | - |
| 93 | QString QPrinterInfo::makeAndModel() const | - |
| 94 | { | - |
| 95 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 96 | return d->makeAndModel; executed: return d->makeAndModel;Execution Count:4 | 4 |
| 97 | } | - |
| 98 | | - |
| 99 | | - |
| 100 | | - |
| 101 | | - |
| 102 | | - |
| 103 | | - |
| 104 | | - |
| 105 | bool QPrinterInfo::isNull() const | - |
| 106 | { | - |
| 107 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 108 | return d == &QPrinterInfoPrivate::shared_null; executed: return d == &QPrinterInfoPrivate::shared_null;Execution Count:84 | 84 |
| 109 | } | - |
| 110 | | - |
| 111 | | - |
| 112 | | - |
| 113 | | - |
| 114 | bool QPrinterInfo::isDefault() const | - |
| 115 | { | - |
| 116 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 117 | return d->isDefault; never executed: return d->isDefault; | 0 |
| 118 | } | - |
| 119 | QList<QPrinter::PaperSize> QPrinterInfo::supportedPaperSizes() const | - |
| 120 | { | - |
| 121 | const QPrinterInfoPrivate * const d = d_func(); | - |
| 122 | if (!isNull() && !d->hasPaperSizes) { never evaluated: !isNull() never evaluated: !d->hasPaperSizes | 0 |
| 123 | d->paperSizes = QPlatformPrinterSupportPlugin::get()->supportedPaperSizes(*this); | - |
| 124 | d->hasPaperSizes = true; | - |
| 125 | } | 0 |
| 126 | return d->paperSizes; never executed: return d->paperSizes; | 0 |
| 127 | } | - |
| 128 | | - |
| 129 | QList<QPrinterInfo> QPrinterInfo::availablePrinters() | - |
| 130 | { | - |
| 131 | QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); | - |
| 132 | if (!ps) partially evaluated: !ps| no Evaluation Count:0 | yes Evaluation Count:100 |
| 0-100 |
| 133 | return QList<QPrinterInfo>(); never executed: return QList<QPrinterInfo>(); | 0 |
| 134 | return ps->availablePrinters(); executed: return ps->availablePrinters();Execution Count:100 | 100 |
| 135 | } | - |
| 136 | | - |
| 137 | QPrinterInfo QPrinterInfo::defaultPrinter() | - |
| 138 | { | - |
| 139 | QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); | - |
| 140 | if (!ps) partially evaluated: !ps| no Evaluation Count:0 | yes Evaluation Count:85 |
| 0-85 |
| 141 | return QPrinterInfo(); never executed: return QPrinterInfo(); | 0 |
| 142 | return ps->defaultPrinter(); executed: return ps->defaultPrinter();Execution Count:85 | 85 |
| 143 | } | - |
| 144 | QPrinterInfo QPrinterInfo::printerInfo(const QString &printerName) | - |
| 145 | { | - |
| 146 | QPlatformPrinterSupport *ps = QPlatformPrinterSupportPlugin::get(); | - |
| 147 | if (!ps) partially evaluated: !ps| no Evaluation Count:0 | yes Evaluation Count:4 |
| 0-4 |
| 148 | return QPrinterInfo(); never executed: return QPrinterInfo(); | 0 |
| 149 | return ps->printerInfo(printerName); executed: return ps->printerInfo(printerName);Execution Count:4 | 4 |
| 150 | } | - |
| 151 | | - |
| 152 | | - |
| 153 | | - |
| | |