qblittable.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qblittable.cpp
Switch to Source codePreprocessed file
LineSourceCount
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: end of block
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: end of block
0
22-
23QBlittable::~QBlittable()-
24{-
25 delete d_ptr;-
26}
never executed: end of block
0
27-
28-
29QBlittable::Capabilities QBlittable::capabilities() const-
30{-
31 const QBlittablePrivate * const d = d_func();-
32 return
never executed: return d->caps;
d->caps;
never executed: return d->caps;
0
33}-
34-
35QSize QBlittable::size() const-
36{-
37 const QBlittablePrivate * const d = d_func();-
38 return
never executed: return d->m_size;
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
!d->lockedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
45 d->cachedImg = doLock();-
46 d->locked = true;-
47 }
never executed: end of block
0
48-
49 return
never executed: return d->cachedImg;
d->cachedImg;
never executed: return d->cachedImg;
0
50}-
51-
52void QBlittable::unlock()-
53{-
54 QBlittablePrivate * const d = d_func();-
55 if (d->locked
d->lockedDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
56 doUnlock();-
57 d->locked = false;-
58 }
never executed: end of block
0
59}
never executed: end of block
0
60-
61bool QBlittable::isLocked() const-
62{-
63 const QBlittablePrivate * const d = d_func();-
64 return
never executed: return d->locked;
d->locked;
never executed: return d->locked;
0
65}-
66-
67-
Switch to Source codePreprocessed file

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