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-
4namespace { 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
5-
6-
7QPlatformPrinterSupportPlugin::QPlatformPrinterSupportPlugin(QObject *parent)-
8 : QObject(parent)-
9{-
10}
executed 4 times by 4 tests: end of block
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
11-
12QPlatformPrinterSupportPlugin::~QPlatformPrinterSupportPlugin()-
13{-
14}-
15-
16static QPlatformPrinterSupport *printerSupport = 0;-
17-
18static void cleanupPrinterSupport()-
19{-
20 delete printerSupport;-
21 printerSupport = 0;-
22}
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
23QPlatformPrinterSupport *QPlatformPrinterSupportPlugin::get()-
24{-
25 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
26 const QMultiMap<int, QString> keyMap = loader()->keyMap();-
27 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
28 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
29 if (printerSupport
printerSupportDescription
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
FALSEnever evaluated
)
0-4
30 qAddPostRoutine(cleanupPrinterSupport);
executed 4 times by 4 tests: qAddPostRoutine(cleanupPrinterSupport);
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
31 }
executed 4 times by 4 tests: end of block
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
4
32 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
33}-
34-
35-
Switch to Source codePreprocessed file

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