kernel/qclipboard_qpa.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7 -
8 -
9void QClipboard::clear(Mode mode) -
10{ -
11 setMimeData(0, mode); -
12}
executed: }
Execution Count:13
13
13 -
14const QMimeData* QClipboard::mimeData(Mode mode) const -
15{ -
16 QPlatformClipboard *clipboard = QGuiApplicationPrivate::platformIntegration()->clipboard(); -
17 if (!clipboard->supportsMode(mode)) return 0;
never executed: return 0;
partially evaluated: !clipboard->supportsMode(mode)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:45
0-45
18 return clipboard->mimeData(mode);
executed: return clipboard->mimeData(mode);
Execution Count:45
45
19} -
20 -
21void QClipboard::setMimeData(QMimeData* src, Mode mode) -
22{ -
23 QPlatformClipboard *clipboard = QGuiApplicationPrivate::platformIntegration()->clipboard(); -
24 if (!clipboard->supportsMode(mode)) return;
executed: return;
Execution Count:4
evaluated: !clipboard->supportsMode(mode)
TRUEFALSE
yes
Evaluation Count:4
yes
Evaluation Count:48
4-48
25 -
26 clipboard->setMimeData(src,mode); -
27}
executed: }
Execution Count:48
48
28 -
29bool QClipboard::supportsMode(Mode mode) const -
30{ -
31 QPlatformClipboard *clipboard = QGuiApplicationPrivate::platformIntegration()->clipboard(); -
32 return clipboard->supportsMode(mode);
executed: return clipboard->supportsMode(mode);
Execution Count:22
22
33} -
34 -
35bool QClipboard::ownsMode(Mode mode) const -
36{ -
37 QPlatformClipboard *clipboard = QGuiApplicationPrivate::platformIntegration()->clipboard(); -
38 return clipboard->ownsMode(mode);
executed: return clipboard->ownsMode(mode);
Execution Count:3
3
39} -
40 -
41 -
42 -
43 -
44 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial