| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/printsupport/kernel/qplatformprintdevice.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | - | |||||||||||||
| 8 | QPlatformPrintDevice::QPlatformPrintDevice() | - | ||||||||||||
| 9 | : m_isRemote(false), | - | ||||||||||||
| 10 | m_supportsMultipleCopies(false), | - | ||||||||||||
| 11 | m_supportsCollateCopies(false), | - | ||||||||||||
| 12 | m_havePageSizes(false), | - | ||||||||||||
| 13 | m_supportsCustomPageSizes(false), | - | ||||||||||||
| 14 | m_haveResolutions(false), | - | ||||||||||||
| 15 | m_haveInputSlots(false), | - | ||||||||||||
| 16 | m_haveOutputBins(false), | - | ||||||||||||
| 17 | m_haveDuplexModes(false), | - | ||||||||||||
| 18 | m_haveColorModes(false) | - | ||||||||||||
| 19 | - | |||||||||||||
| 20 | , m_haveMimeTypes(false) | - | ||||||||||||
| 21 | - | |||||||||||||
| 22 | { | - | ||||||||||||
| 23 | } executed 144 times by 3 tests: end of blockExecuted by:
| 144 | ||||||||||||
| 24 | - | |||||||||||||
| 25 | QPlatformPrintDevice::QPlatformPrintDevice(const QString &id) | - | ||||||||||||
| 26 | : m_id(id), | - | ||||||||||||
| 27 | m_isRemote(false), | - | ||||||||||||
| 28 | m_supportsMultipleCopies(false), | - | ||||||||||||
| 29 | m_supportsCollateCopies(false), | - | ||||||||||||
| 30 | m_havePageSizes(false), | - | ||||||||||||
| 31 | m_supportsCustomPageSizes(false), | - | ||||||||||||
| 32 | m_haveResolutions(false), | - | ||||||||||||
| 33 | m_haveInputSlots(false), | - | ||||||||||||
| 34 | m_haveOutputBins(false), | - | ||||||||||||
| 35 | m_haveDuplexModes(false), | - | ||||||||||||
| 36 | m_haveColorModes(false) | - | ||||||||||||
| 37 | - | |||||||||||||
| 38 | , m_haveMimeTypes(false) | - | ||||||||||||
| 39 | - | |||||||||||||
| 40 | { | - | ||||||||||||
| 41 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||
| 42 | - | |||||||||||||
| 43 | QPlatformPrintDevice::~QPlatformPrintDevice() | - | ||||||||||||
| 44 | { | - | ||||||||||||
| 45 | } | - | ||||||||||||
| 46 | - | |||||||||||||
| 47 | QString QPlatformPrintDevice::id() const | - | ||||||||||||
| 48 | { | - | ||||||||||||
| 49 | return never executed: m_id;return m_id;never executed: return m_id; | 0 | ||||||||||||
| 50 | } | - | ||||||||||||
| 51 | - | |||||||||||||
| 52 | QString QPlatformPrintDevice::name() const | - | ||||||||||||
| 53 | { | - | ||||||||||||
| 54 | return never executed: m_name;return m_name;never executed: return m_name; | 0 | ||||||||||||
| 55 | } | - | ||||||||||||
| 56 | - | |||||||||||||
| 57 | QString QPlatformPrintDevice::location() const | - | ||||||||||||
| 58 | { | - | ||||||||||||
| 59 | return never executed: m_location;return m_location;never executed: return m_location; | 0 | ||||||||||||
| 60 | } | - | ||||||||||||
| 61 | - | |||||||||||||
| 62 | QString QPlatformPrintDevice::makeAndModel() const | - | ||||||||||||
| 63 | { | - | ||||||||||||
| 64 | return never executed: m_makeAndModel;return m_makeAndModel;never executed: return m_makeAndModel; | 0 | ||||||||||||
| 65 | } | - | ||||||||||||
| 66 | - | |||||||||||||
| 67 | bool QPlatformPrintDevice::isValid() const | - | ||||||||||||
| 68 | { | - | ||||||||||||
| 69 | return executed 272 times by 3 tests: false;return false;Executed by:
executed 272 times by 3 tests: return false;Executed by:
| 272 | ||||||||||||
| 70 | } | - | ||||||||||||
| 71 | - | |||||||||||||
| 72 | bool QPlatformPrintDevice::isDefault() const | - | ||||||||||||
| 73 | { | - | ||||||||||||
| 74 | return never executed: false;return false;never executed: return false; | 0 | ||||||||||||
| 75 | } | - | ||||||||||||
| 76 | - | |||||||||||||
| 77 | bool QPlatformPrintDevice::isRemote() const | - | ||||||||||||
| 78 | { | - | ||||||||||||
| 79 | return never executed: m_isRemote;return m_isRemote;never executed: return m_isRemote; | 0 | ||||||||||||
| 80 | } | - | ||||||||||||
| 81 | - | |||||||||||||
| 82 | bool QPlatformPrintDevice::isValidPageLayout(const QPageLayout &layout, int resolution) const | - | ||||||||||||
| 83 | { | - | ||||||||||||
| 84 | - | |||||||||||||
| 85 | if (!supportedPageSize(layout.pageSize()).isValid()
| 0 | ||||||||||||
| 86 | return never executed: false;return false;never executed: return false; | 0 | ||||||||||||
| 87 | - | |||||||||||||
| 88 | - | |||||||||||||
| 89 | QMarginsF pointMargins = layout.margins(QPageLayout::Point); | - | ||||||||||||
| 90 | QMarginsF printMargins = printableMargins(layout.pageSize(), layout.orientation(), resolution); | - | ||||||||||||
| 91 | return never executed: pointMargins.left() >= printMargins.left()return pointMargins.left() >= printMargins.left() && pointMargins.right() >= printMargins.right() && pointMargins.top() >= printMargins.top() && pointMargins.bottom() >= printMargins.bottom();never executed: return pointMargins.left() >= printMargins.left() && pointMargins.right() >= printMargins.right() && pointMargins.top() >= printMargins.top() && pointMargins.bottom() >= printMargins.bottom(); | 0 | ||||||||||||
| 92 | && pointMargins.right() >= printMargins.right() never executed: return pointMargins.left() >= printMargins.left() && pointMargins.right() >= printMargins.right() && pointMargins.top() >= printMargins.top() && pointMargins.bottom() >= printMargins.bottom(); | 0 | ||||||||||||
| 93 | && pointMargins.top() >= printMargins.top() never executed: return pointMargins.left() >= printMargins.left() && pointMargins.right() >= printMargins.right() && pointMargins.top() >= printMargins.top() && pointMargins.bottom() >= printMargins.bottom(); | 0 | ||||||||||||
| 94 | && pointMargins.bottom() >= printMargins.bottom(); never executed: return pointMargins.left() >= printMargins.left() && pointMargins.right() >= printMargins.right() && pointMargins.top() >= printMargins.top() && pointMargins.bottom() >= printMargins.bottom(); | 0 | ||||||||||||
| 95 | } | - | ||||||||||||
| 96 | - | |||||||||||||
| 97 | QPrint::DeviceState QPlatformPrintDevice::state() const | - | ||||||||||||
| 98 | { | - | ||||||||||||
| 99 | return never executed: QPrint::Error;return QPrint::Error;never executed: return QPrint::Error; | 0 | ||||||||||||
| 100 | } | - | ||||||||||||
| 101 | - | |||||||||||||
| 102 | bool QPlatformPrintDevice::supportsMultipleCopies() const | - | ||||||||||||
| 103 | { | - | ||||||||||||
| 104 | return never executed: m_supportsMultipleCopies;return m_supportsMultipleCopies;never executed: return m_supportsMultipleCopies; | 0 | ||||||||||||
| 105 | } | - | ||||||||||||
| 106 | - | |||||||||||||
| 107 | bool QPlatformPrintDevice::supportsCollateCopies() const | - | ||||||||||||
| 108 | { | - | ||||||||||||
| 109 | return never executed: m_supportsCollateCopies;return m_supportsCollateCopies;never executed: return m_supportsCollateCopies; | 0 | ||||||||||||
| 110 | } | - | ||||||||||||
| 111 | - | |||||||||||||
| 112 | void QPlatformPrintDevice::loadPageSizes() const | - | ||||||||||||
| 113 | { | - | ||||||||||||
| 114 | } | - | ||||||||||||
| 115 | - | |||||||||||||
| 116 | QPageSize QPlatformPrintDevice::defaultPageSize() const | - | ||||||||||||
| 117 | { | - | ||||||||||||
| 118 | return never executed: QPageSize();return QPageSize();never executed: return QPageSize(); | 0 | ||||||||||||
| 119 | } | - | ||||||||||||
| 120 | - | |||||||||||||
| 121 | QList<QPageSize> QPlatformPrintDevice::supportedPageSizes() const | - | ||||||||||||
| 122 | { | - | ||||||||||||
| 123 | if (!m_havePageSizes
| 0 | ||||||||||||
| 124 | loadPageSizes(); never executed: loadPageSizes(); | 0 | ||||||||||||
| 125 | return never executed: m_pageSizes.toList();return m_pageSizes.toList();never executed: return m_pageSizes.toList(); | 0 | ||||||||||||
| 126 | } | - | ||||||||||||
| 127 | - | |||||||||||||
| 128 | QPageSize QPlatformPrintDevice::supportedPageSize(const QPageSize &pageSize) const | - | ||||||||||||
| 129 | { | - | ||||||||||||
| 130 | if (!pageSize.isValid()
| 0 | ||||||||||||
| 131 | return never executed: QPageSize();return QPageSize();never executed: return QPageSize(); | 0 | ||||||||||||
| 132 | - | |||||||||||||
| 133 | if (!m_havePageSizes
| 0 | ||||||||||||
| 134 | loadPageSizes(); never executed: loadPageSizes(); | 0 | ||||||||||||
| 135 | - | |||||||||||||
| 136 | - | |||||||||||||
| 137 | - | |||||||||||||
| 138 | - | |||||||||||||
| 139 | if (pageSize.id() != QPageSize::Custom
| 0 | ||||||||||||
| 140 | for (const QPageSize &ps : m_pageSizes) { | - | ||||||||||||
| 141 | if (ps.id() == pageSize.id()
| 0 | ||||||||||||
| 142 | return never executed: ps;return ps;never executed: return ps; | 0 | ||||||||||||
| 143 | } never executed: end of block | 0 | ||||||||||||
| 144 | } never executed: end of block | 0 | ||||||||||||
| 145 | - | |||||||||||||
| 146 | - | |||||||||||||
| 147 | if (pageSize.id() != QPageSize::Custom
| 0 | ||||||||||||
| 148 | for (const QPageSize &ps : m_pageSizes) { | - | ||||||||||||
| 149 | if (ps.id() == pageSize.id()
| 0 | ||||||||||||
| 150 | return never executed: ps;return ps;never executed: return ps; | 0 | ||||||||||||
| 151 | } never executed: end of block | 0 | ||||||||||||
| 152 | } never executed: end of block | 0 | ||||||||||||
| 153 | - | |||||||||||||
| 154 | - | |||||||||||||
| 155 | return never executed: supportedPageSizeMatch(pageSize);return supportedPageSizeMatch(pageSize);never executed: return supportedPageSizeMatch(pageSize); | 0 | ||||||||||||
| 156 | } | - | ||||||||||||
| 157 | - | |||||||||||||
| 158 | QPageSize QPlatformPrintDevice::supportedPageSize(QPageSize::PageSizeId pageSizeId) const | - | ||||||||||||
| 159 | { | - | ||||||||||||
| 160 | if (!m_havePageSizes
| 0 | ||||||||||||
| 161 | loadPageSizes(); never executed: loadPageSizes(); | 0 | ||||||||||||
| 162 | - | |||||||||||||
| 163 | for (const QPageSize &ps : m_pageSizes) { | - | ||||||||||||
| 164 | if (ps.id() == pageSizeId
| 0 | ||||||||||||
| 165 | return never executed: ps;return ps;never executed: return ps; | 0 | ||||||||||||
| 166 | } never executed: end of block | 0 | ||||||||||||
| 167 | - | |||||||||||||
| 168 | - | |||||||||||||
| 169 | return never executed: supportedPageSizeMatch(QPageSize(pageSizeId));return supportedPageSizeMatch(QPageSize(pageSizeId));never executed: return supportedPageSizeMatch(QPageSize(pageSizeId)); | 0 | ||||||||||||
| 170 | } | - | ||||||||||||
| 171 | - | |||||||||||||
| 172 | QPageSize QPlatformPrintDevice::supportedPageSize(const QString &pageName) const | - | ||||||||||||
| 173 | { | - | ||||||||||||
| 174 | if (!m_havePageSizes
| 0 | ||||||||||||
| 175 | loadPageSizes(); never executed: loadPageSizes(); | 0 | ||||||||||||
| 176 | - | |||||||||||||
| 177 | for (const QPageSize &ps : m_pageSizes) { | - | ||||||||||||
| 178 | if (ps.name() == pageName
| 0 | ||||||||||||
| 179 | return never executed: ps;return ps;never executed: return ps; | 0 | ||||||||||||
| 180 | } never executed: end of block | 0 | ||||||||||||
| 181 | - | |||||||||||||
| 182 | return never executed: QPageSize();return QPageSize();never executed: return QPageSize(); | 0 | ||||||||||||
| 183 | } | - | ||||||||||||
| 184 | - | |||||||||||||
| 185 | QPageSize QPlatformPrintDevice::supportedPageSize(const QSize &sizePoints) const | - | ||||||||||||
| 186 | { | - | ||||||||||||
| 187 | if (!m_havePageSizes
| 0 | ||||||||||||
| 188 | loadPageSizes(); never executed: loadPageSizes(); | 0 | ||||||||||||
| 189 | - | |||||||||||||
| 190 | - | |||||||||||||
| 191 | return never executed: supportedPageSizeMatch(QPageSize(sizePoints));return supportedPageSizeMatch(QPageSize(sizePoints));never executed: return supportedPageSizeMatch(QPageSize(sizePoints)); | 0 | ||||||||||||
| 192 | } | - | ||||||||||||
| 193 | - | |||||||||||||
| 194 | QPageSize QPlatformPrintDevice::supportedPageSize(const QSizeF &size, QPageSize::Unit units) const | - | ||||||||||||
| 195 | { | - | ||||||||||||
| 196 | if (!m_havePageSizes
| 0 | ||||||||||||
| 197 | loadPageSizes(); never executed: loadPageSizes(); | 0 | ||||||||||||
| 198 | - | |||||||||||||
| 199 | - | |||||||||||||
| 200 | return never executed: supportedPageSizeMatch(QPageSize(size, units));return supportedPageSizeMatch(QPageSize(size, units));never executed: return supportedPageSizeMatch(QPageSize(size, units)); | 0 | ||||||||||||
| 201 | } | - | ||||||||||||
| 202 | - | |||||||||||||
| 203 | QPageSize QPlatformPrintDevice::supportedPageSizeMatch(const QPageSize &pageSize) const | - | ||||||||||||
| 204 | { | - | ||||||||||||
| 205 | - | |||||||||||||
| 206 | for (const QPageSize &ps : m_pageSizes) { | - | ||||||||||||
| 207 | if (ps.sizePoints() == pageSize.sizePoints()
| 0 | ||||||||||||
| 208 | return never executed: ps;return ps;never executed: return ps; | 0 | ||||||||||||
| 209 | } never executed: end of block | 0 | ||||||||||||
| 210 | return never executed: QPageSize();return QPageSize();never executed: return QPageSize(); | 0 | ||||||||||||
| 211 | } | - | ||||||||||||
| 212 | - | |||||||||||||
| 213 | bool QPlatformPrintDevice::supportsCustomPageSizes() const | - | ||||||||||||
| 214 | { | - | ||||||||||||
| 215 | return never executed: m_supportsCustomPageSizes;return m_supportsCustomPageSizes;never executed: return m_supportsCustomPageSizes; | 0 | ||||||||||||
| 216 | } | - | ||||||||||||
| 217 | - | |||||||||||||
| 218 | QSize QPlatformPrintDevice::minimumPhysicalPageSize() const | - | ||||||||||||
| 219 | { | - | ||||||||||||
| 220 | return never executed: m_minimumPhysicalPageSize;return m_minimumPhysicalPageSize;never executed: return m_minimumPhysicalPageSize; | 0 | ||||||||||||
| 221 | } | - | ||||||||||||
| 222 | - | |||||||||||||
| 223 | QSize QPlatformPrintDevice::maximumPhysicalPageSize() const | - | ||||||||||||
| 224 | { | - | ||||||||||||
| 225 | return never executed: m_maximumPhysicalPageSize;return m_maximumPhysicalPageSize;never executed: return m_maximumPhysicalPageSize; | 0 | ||||||||||||
| 226 | } | - | ||||||||||||
| 227 | - | |||||||||||||
| 228 | QMarginsF QPlatformPrintDevice::printableMargins(const QPageSize &pageSize, | - | ||||||||||||
| 229 | QPageLayout::Orientation orientation, | - | ||||||||||||
| 230 | int resolution) const | - | ||||||||||||
| 231 | { | - | ||||||||||||
| 232 | (void)pageSize; | - | ||||||||||||
| 233 | (void)orientation; | - | ||||||||||||
| 234 | (void)resolution; | - | ||||||||||||
| 235 | return never executed: QMarginsF(0, 0, 0, 0);return QMarginsF(0, 0, 0, 0);never executed: return QMarginsF(0, 0, 0, 0); | 0 | ||||||||||||
| 236 | } | - | ||||||||||||
| 237 | - | |||||||||||||
| 238 | void QPlatformPrintDevice::loadResolutions() const | - | ||||||||||||
| 239 | { | - | ||||||||||||
| 240 | } | - | ||||||||||||
| 241 | - | |||||||||||||
| 242 | int QPlatformPrintDevice::defaultResolution() const | - | ||||||||||||
| 243 | { | - | ||||||||||||
| 244 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||
| 245 | } | - | ||||||||||||
| 246 | - | |||||||||||||
| 247 | QList<int> QPlatformPrintDevice::supportedResolutions() const | - | ||||||||||||
| 248 | { | - | ||||||||||||
| 249 | if (!m_haveResolutions
| 0 | ||||||||||||
| 250 | loadResolutions(); never executed: loadResolutions(); | 0 | ||||||||||||
| 251 | return never executed: m_resolutions.toList();return m_resolutions.toList();never executed: return m_resolutions.toList(); | 0 | ||||||||||||
| 252 | } | - | ||||||||||||
| 253 | - | |||||||||||||
| 254 | void QPlatformPrintDevice::loadInputSlots() const | - | ||||||||||||
| 255 | { | - | ||||||||||||
| 256 | } | - | ||||||||||||
| 257 | - | |||||||||||||
| 258 | QPrint::InputSlot QPlatformPrintDevice::defaultInputSlot() const | - | ||||||||||||
| 259 | { | - | ||||||||||||
| 260 | QPrint::InputSlot input; | - | ||||||||||||
| 261 | input.key = ([]() -> QByteArray { enum { Size = sizeof("Auto") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "Auto" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba;never executed: }());return ba; | 0 | ||||||||||||
| 262 | input.name = QPrintDialog::tr("Automatic"); | - | ||||||||||||
| 263 | input.id = QPrint::Auto; | - | ||||||||||||
| 264 | return never executed: input;return input;never executed: return input; | 0 | ||||||||||||
| 265 | } | - | ||||||||||||
| 266 | - | |||||||||||||
| 267 | QList<QPrint::InputSlot> QPlatformPrintDevice::supportedInputSlots() const | - | ||||||||||||
| 268 | { | - | ||||||||||||
| 269 | if (!m_haveInputSlots
| 0 | ||||||||||||
| 270 | loadInputSlots(); never executed: loadInputSlots(); | 0 | ||||||||||||
| 271 | return never executed: m_inputSlots.toList();return m_inputSlots.toList();never executed: return m_inputSlots.toList(); | 0 | ||||||||||||
| 272 | } | - | ||||||||||||
| 273 | - | |||||||||||||
| 274 | void QPlatformPrintDevice::loadOutputBins() const | - | ||||||||||||
| 275 | { | - | ||||||||||||
| 276 | } | - | ||||||||||||
| 277 | - | |||||||||||||
| 278 | QPrint::OutputBin QPlatformPrintDevice::defaultOutputBin() const | - | ||||||||||||
| 279 | { | - | ||||||||||||
| 280 | QPrint::OutputBin output; | - | ||||||||||||
| 281 | output.key = ([]() -> QByteArray { enum { Size = sizeof("Auto") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "Auto" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba;never executed: }());return ba; | 0 | ||||||||||||
| 282 | output.name = QPrintDialog::tr("Automatic"); | - | ||||||||||||
| 283 | output.id = QPrint::AutoOutputBin; | - | ||||||||||||
| 284 | return never executed: output;return output;never executed: return output; | 0 | ||||||||||||
| 285 | } | - | ||||||||||||
| 286 | - | |||||||||||||
| 287 | QList<QPrint::OutputBin> QPlatformPrintDevice::supportedOutputBins() const | - | ||||||||||||
| 288 | { | - | ||||||||||||
| 289 | if (!m_haveOutputBins
| 0 | ||||||||||||
| 290 | loadOutputBins(); never executed: loadOutputBins(); | 0 | ||||||||||||
| 291 | return never executed: m_outputBins.toList();return m_outputBins.toList();never executed: return m_outputBins.toList(); | 0 | ||||||||||||
| 292 | } | - | ||||||||||||
| 293 | - | |||||||||||||
| 294 | void QPlatformPrintDevice::loadDuplexModes() const | - | ||||||||||||
| 295 | { | - | ||||||||||||
| 296 | } | - | ||||||||||||
| 297 | - | |||||||||||||
| 298 | QPrint::DuplexMode QPlatformPrintDevice::defaultDuplexMode() const | - | ||||||||||||
| 299 | { | - | ||||||||||||
| 300 | return never executed: QPrint::DuplexNone;return QPrint::DuplexNone;never executed: return QPrint::DuplexNone; | 0 | ||||||||||||
| 301 | } | - | ||||||||||||
| 302 | - | |||||||||||||
| 303 | QList<QPrint::DuplexMode> QPlatformPrintDevice::supportedDuplexModes() const | - | ||||||||||||
| 304 | { | - | ||||||||||||
| 305 | if (!m_haveDuplexModes
| 0 | ||||||||||||
| 306 | loadDuplexModes(); never executed: loadDuplexModes(); | 0 | ||||||||||||
| 307 | return never executed: m_duplexModes.toList();return m_duplexModes.toList();never executed: return m_duplexModes.toList(); | 0 | ||||||||||||
| 308 | } | - | ||||||||||||
| 309 | - | |||||||||||||
| 310 | void QPlatformPrintDevice::loadColorModes() const | - | ||||||||||||
| 311 | { | - | ||||||||||||
| 312 | } | - | ||||||||||||
| 313 | - | |||||||||||||
| 314 | QPrint::ColorMode QPlatformPrintDevice::defaultColorMode() const | - | ||||||||||||
| 315 | { | - | ||||||||||||
| 316 | return never executed: QPrint::GrayScale;return QPrint::GrayScale;never executed: return QPrint::GrayScale; | 0 | ||||||||||||
| 317 | } | - | ||||||||||||
| 318 | - | |||||||||||||
| 319 | QList<QPrint::ColorMode> QPlatformPrintDevice::supportedColorModes() const | - | ||||||||||||
| 320 | { | - | ||||||||||||
| 321 | if (!m_haveColorModes
| 0 | ||||||||||||
| 322 | loadColorModes(); never executed: loadColorModes(); | 0 | ||||||||||||
| 323 | return never executed: m_colorModes.toList();return m_colorModes.toList();never executed: return m_colorModes.toList(); | 0 | ||||||||||||
| 324 | } | - | ||||||||||||
| 325 | - | |||||||||||||
| 326 | - | |||||||||||||
| 327 | void QPlatformPrintDevice::loadMimeTypes() const | - | ||||||||||||
| 328 | { | - | ||||||||||||
| 329 | } | - | ||||||||||||
| 330 | - | |||||||||||||
| 331 | QList<QMimeType> QPlatformPrintDevice::supportedMimeTypes() const | - | ||||||||||||
| 332 | { | - | ||||||||||||
| 333 | if (!m_haveMimeTypes
| 0 | ||||||||||||
| 334 | loadMimeTypes(); never executed: loadMimeTypes(); | 0 | ||||||||||||
| 335 | return never executed: m_mimeTypes.toList();return m_mimeTypes.toList();never executed: return m_mimeTypes.toList(); | 0 | ||||||||||||
| 336 | } | - | ||||||||||||
| 337 | - | |||||||||||||
| 338 | - | |||||||||||||
| 339 | QPageSize QPlatformPrintDevice::createPageSize(const QString &key, const QSize &size, const QString &localizedName) | - | ||||||||||||
| 340 | { | - | ||||||||||||
| 341 | return never executed: QPageSize(key, size, localizedName);return QPageSize(key, size, localizedName);never executed: return QPageSize(key, size, localizedName); | 0 | ||||||||||||
| 342 | } | - | ||||||||||||
| 343 | - | |||||||||||||
| 344 | QPageSize QPlatformPrintDevice::createPageSize(int windowsId, const QSize &size, const QString &localizedName) | - | ||||||||||||
| 345 | { | - | ||||||||||||
| 346 | return never executed: QPageSize(windowsId, size, localizedName);return QPageSize(windowsId, size, localizedName);never executed: return QPageSize(windowsId, size, localizedName); | 0 | ||||||||||||
| 347 | } | - | ||||||||||||
| 348 | - | |||||||||||||
| 349 | - | |||||||||||||
| 350 | - | |||||||||||||
| 351 | - | |||||||||||||
| Switch to Source code | Preprocessed file |