Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | class QBlittablePrivate | - |
6 | { | - |
7 | public: | - |
8 | QBlittablePrivate(const QSize &size, QBlittable::Capabilities caps) | - |
9 | : caps(caps), m_size(size), locked(false), cachedImg(0) | - |
10 | {} | 0 |
11 | QBlittable::Capabilities caps; | - |
12 | QSize m_size; | - |
13 | bool locked; | - |
14 | QImage *cachedImg; | - |
15 | }; | - |
16 | | - |
17 | | - |
18 | QBlittable::QBlittable(const QSize &size, Capabilities caps) | - |
19 | : d_ptr(new QBlittablePrivate(size,caps)) | - |
20 | { | - |
21 | } | 0 |
22 | | - |
23 | QBlittable::~QBlittable() | - |
24 | { | - |
25 | delete d_ptr; | - |
26 | } | 0 |
27 | | - |
28 | | - |
29 | QBlittable::Capabilities QBlittable::capabilities() const | - |
30 | { | - |
31 | const QBlittablePrivate * const d = d_func(); | - |
32 | return d->caps; never executed: return d->caps; | 0 |
33 | } | - |
34 | | - |
35 | QSize QBlittable::size() const | - |
36 | { | - |
37 | const QBlittablePrivate * const d = d_func(); | - |
38 | return d->m_size; never executed: return d->m_size; | 0 |
39 | } | - |
40 | | - |
41 | QImage *QBlittable::lock() | - |
42 | { | - |
43 | QBlittablePrivate * const d = d_func(); | - |
44 | if (!d->locked) { never evaluated: !d->locked | 0 |
45 | d->cachedImg = doLock(); | - |
46 | d->locked = true; | - |
47 | } | 0 |
48 | | - |
49 | return d->cachedImg; never executed: return d->cachedImg; | 0 |
50 | } | - |
51 | | - |
52 | void QBlittable::unlock() | - |
53 | { | - |
54 | QBlittablePrivate * const d = d_func(); | - |
55 | if (d->locked) { never evaluated: d->locked | 0 |
56 | doUnlock(); | - |
57 | d->locked = false; | - |
58 | } | 0 |
59 | } | 0 |
60 | | - |
61 | bool QBlittable::isLocked() const | - |
62 | { | - |
63 | const QBlittablePrivate * const d = d_func(); | - |
64 | return d->locked; never executed: return d->locked; | 0 |
65 | } | - |
66 | | - |
67 | | - |
68 | | - |
| | |