qplatformprintplugin.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/printsupport/kernel/qplatformprintplugin.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5namespace { namespace Q_QGS_loader { typedef QFactoryLoader Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_qabstractprintdialog - unknown status
  • tst_qprintdevice - unknown status
  • tst_qprinter - unknown status
  • tst_qprinterinfo - unknown status
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 4 times by 4 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qabstractprintdialog - unknown status
  • tst_qprintdevice - unknown status
  • tst_qprinter - unknown status
  • tst_qprinterinfo - unknown status
}
executed 4 times by 4 tests: end of block
Executed by:
  • tst_qabstractprintdialog - unknown status
  • tst_qprintdevice - unknown status
  • tst_qprinter - unknown status
  • tst_qprinterinfo - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.QPlatformPrinterSupportFactoryInterface.5.1", QLatin1String("/printsupport"), Qt::CaseInsensitive))) : value ("org.qt-project.QPlatformPrinterSupportFactoryInterface.5.1", QLatin1String("/printsupport"), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 8 times by 4 tests: return &holder.value;
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
&holder.value;
executed 8 times by 4 tests: return &holder.value;
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
} } } static QGlobalStatic<QFactoryLoader, Q_QGS_loader::innerFunction, Q_QGS_loader::guard> loader;
0-8
6-
7-
8-
9QPlatformPrinterSupportPlugin::QPlatformPrinterSupportPlugin(QObject *parent)-
10 : QObject(parent)-
11{-
12}
executed 4 times by 4 tests: end of block
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
13-
14QPlatformPrinterSupportPlugin::~QPlatformPrinterSupportPlugin()-
15{-
16}-
17-
18static QPlatformPrinterSupport *printerSupport = 0;-
19-
20-
21static void cleanupPrinterSupport()-
22{-
23-
24 delete printerSupport;-
25-
26 printerSupport = 0;-
27}
executed 4 times by 4 tests: end of block
Executed by:
  • tst_qabstractprintdialog - unknown status
  • tst_qprintdevice - unknown status
  • tst_qprinter - unknown status
  • tst_qprinterinfo - unknown status
4
28QPlatformPrinterSupport *QPlatformPrinterSupportPlugin::get()-
29{-
30-
31 if (!printerSupport
!printerSupportDescription
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
FALSEevaluated 413 times by 3 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QPrinter
  • tst_QPrinterInfo
) {
4-413
32 const QMultiMap<int, QString> keyMap = loader()->keyMap();-
33 if (!keyMap.isEmpty()
!keyMap.isEmpty()Description
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
FALSEnever evaluated
)
0-4
34 printerSupport = qLoadPlugin<QPlatformPrinterSupport, QPlatformPrinterSupportPlugin>(loader(), keyMap.constBegin().value());
executed 4 times by 4 tests: printerSupport = qLoadPlugin<QPlatformPrinterSupport, QPlatformPrinterSupportPlugin>(loader(), keyMap.constBegin().value());
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
35 if (printerSupport
printerSupportDescription
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
FALSEnever evaluated
)
0-4
36 qAddPostRoutine(cleanupPrinterSupport);
executed 4 times by 4 tests: qAddPostRoutine(cleanupPrinterSupport);
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
37 }
executed 4 times by 4 tests: end of block
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
38-
39 return
executed 417 times by 4 tests: return printerSupport;
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
printerSupport;
executed 417 times by 4 tests: return printerSupport;
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
417
40}-
41-
42-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9