painting/qblittable.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5class QBlittablePrivate -
6{ -
7public: -
8 QBlittablePrivate(const QSize &size, QBlittable::Capabilities caps) -
9 : caps(caps), m_size(size), locked(false), cachedImg(0) -
10 {}
never executed: }
0
11 QBlittable::Capabilities caps; -
12 QSize m_size; -
13 bool locked; -
14 QImage *cachedImg; -
15}; -
16 -
17 -
18QBlittable::QBlittable(const QSize &size, Capabilities caps) -
19 : d_ptr(new QBlittablePrivate(size,caps)) -
20{ -
21}
never executed: }
0
22 -
23QBlittable::~QBlittable() -
24{ -
25 delete d_ptr; -
26}
never executed: }
0
27 -
28 -
29QBlittable::Capabilities QBlittable::capabilities() const -
30{ -
31 const QBlittablePrivate * const d = d_func(); -
32 return d->caps;
never executed: return d->caps;
0
33} -
34 -
35QSize 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 -
41QImage *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 }
never executed: }
0
48 -
49 return d->cachedImg;
never executed: return d->cachedImg;
0
50} -
51 -
52void 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 }
never executed: }
0
59}
never executed: }
0
60 -
61bool 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 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial