qpagesetupdialog.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/printsupport/dialogs/qpagesetupdialog.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QPageSetupDialogPrivate::QPageSetupDialogPrivate(QPrinter *prntr) : printer(0), ownsPrinter(false)-
7{-
8 setPrinter(prntr);-
9}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPrinter
1
10-
11void QPageSetupDialogPrivate::setPrinter(QPrinter *newPrinter)-
12{-
13 if (printer
printerDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPrinter
&& ownsPrinter
ownsPrinterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-1
14 delete printer;
never executed: delete printer;
0
15-
16 if (newPrinter
newPrinterDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPrinter
FALSEnever evaluated
) {
0-1
17 printer = newPrinter;-
18 ownsPrinter = false;-
19 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPrinter
else {
1
20 printer = new QPrinter;-
21 ownsPrinter = true;-
22 }
never executed: end of block
0
23-
24 if (printer->outputFormat() != QPrinter::NativeFormat
printer->outpu...::NativeFormatDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPrinter
FALSEnever evaluated
)
0-1
25 QMessageLogger(__FILE__, 121, __PRETTY_FUNCTION__).warning("QPageSetupDialog: Cannot be used on non-native printers");
executed 1 time by 1 test: QMessageLogger(__FILE__, 121, __PRETTY_FUNCTION__).warning("QPageSetupDialog: Cannot be used on non-native printers");
Executed by:
  • tst_QPrinter
1
26-
27}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPrinter
1
28void QPageSetupDialog::open(QObject *receiver, const char *member)-
29{-
30 QPageSetupDialogPrivate * const d = d_func();-
31 connect(this, qFlagLocation("2""accepted()" "\0" __FILE__ ":" "137"), receiver, member);-
32 d->receiverToDisconnectOnClose = receiver;-
33 d->memberToDisconnectOnClose = member;-
34 QDialog::open();-
35}
never executed: end of block
0
36-
37-
38-
39-
40-
41-
42-
43QPageSetupDialog::~QPageSetupDialog()-
44{-
45 QPageSetupDialogPrivate * const d = d_func();-
46 if (d->ownsPrinter
d->ownsPrinterDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPrinter
)
0-1
47 delete d->printer;
never executed: delete d->printer;
0
48}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPrinter
1
49-
50QPrinter *QPageSetupDialog::printer()-
51{-
52 QPageSetupDialogPrivate * const d = d_func();-
53 return
never executed: return d->printer;
d->printer;
never executed: return d->printer;
0
54}-
55void QPageSetupDialog::done(int result)-
56{-
57 QPageSetupDialogPrivate * const d = d_func();-
58 QDialog::done(result);-
59 if (d->receiverToDisconnectOnClose
d->receiverToDisconnectOnCloseDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
60 disconnect(this, qFlagLocation("2""accepted()" "\0" __FILE__ ":" "177"),-
61 d->receiverToDisconnectOnClose, d->memberToDisconnectOnClose);-
62 d->receiverToDisconnectOnClose = 0;-
63 }
never executed: end of block
0
64 d->memberToDisconnectOnClose.clear();-
65-
66}
never executed: end of block
0
67-
68-
Switch to Source codePreprocessed file

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