Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qblittable.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
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 | {} never executed: end of block | 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 | } never executed: end of block | 0 | ||||||
22 | - | |||||||
23 | QBlittable::~QBlittable() | - | ||||||
24 | { | - | ||||||
25 | delete d_ptr; | - | ||||||
26 | } never executed: end of block | 0 | ||||||
27 | - | |||||||
28 | - | |||||||
29 | QBlittable::Capabilities QBlittable::capabilities() const | - | ||||||
30 | { | - | ||||||
31 | const QBlittablePrivate * const d = d_func(); | - | ||||||
32 | return never executed: d->caps;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 never executed: d->m_size;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
| 0 | ||||||
45 | d->cachedImg = doLock(); | - | ||||||
46 | d->locked = true; | - | ||||||
47 | } never executed: end of block | 0 | ||||||
48 | - | |||||||
49 | return never executed: d->cachedImg;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
| 0 | ||||||
56 | doUnlock(); | - | ||||||
57 | d->locked = false; | - | ||||||
58 | } never executed: end of block | 0 | ||||||
59 | } never executed: end of block | 0 | ||||||
60 | - | |||||||
61 | bool QBlittable::isLocked() const | - | ||||||
62 | { | - | ||||||
63 | const QBlittablePrivate * const d = d_func(); | - | ||||||
64 | return never executed: d->locked;return d->locked; never executed: return d->locked; | 0 | ||||||
65 | } | - | ||||||
66 | - | |||||||
67 | - | |||||||
Switch to Source code | Preprocessed file |