Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/image/qiconengine.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | QSize QIconEngine::actualSize(const QSize &size, QIcon::Mode , QIcon::State ) | - |
4 | { | - |
5 | return never executed: size;return size; never executed: return size; | 0 |
6 | } | - |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | - | |
12 | QIconEngine::QIconEngine() | - |
13 | { | - |
14 | } | - |
15 | - | |
16 | - | |
17 | - | |
18 | - | |
19 | QIconEngine::~QIconEngine() | - |
20 | { | - |
21 | } | - |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | QPixmap QIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) | - |
30 | { | - |
31 | QPixmap pm(size); | - |
32 | { | - |
33 | QPainter p(&pm); | - |
34 | paint(&p, QRect(QPoint(0,0),size), mode, state); | - |
35 | } | - |
36 | return never executed: pm;return pm; never executed: return pm; | 0 |
37 | } | - |
38 | void QIconEngine::addPixmap(const QPixmap & , QIcon::Mode , QIcon::State ) | - |
39 | { | - |
40 | } | - |
41 | void QIconEngine::addFile(const QString & , const QSize & , QIcon::Mode , QIcon::State ) | - |
42 | { | - |
43 | } | - |
44 | QString QIconEngine::key() const | - |
45 | { | - |
46 | return never executed: QString();return QString(); never executed: return QString(); | 0 |
47 | } | - |
48 | bool QIconEngine::read(QDataStream &) | - |
49 | { | - |
50 | return never executed: false;return false; never executed: return false; | 0 |
51 | } | - |
52 | - | |
53 | - | |
54 | - | |
55 | - | |
56 | - | |
57 | - | |
58 | - | |
59 | bool QIconEngine::write(QDataStream &) const | - |
60 | { | - |
61 | return never executed: false;return false; never executed: return false; | 0 |
62 | } | - |
63 | void QIconEngine::virtual_hook(int id, void *data) | - |
64 | { | - |
65 | switch (id) { | - |
66 | case never executed: QIconEngine::AvailableSizesHook:case QIconEngine::AvailableSizesHook: never executed: {case QIconEngine::AvailableSizesHook: | 0 |
67 | QIconEngine::AvailableSizesArgument &arg = | - |
68 | *reinterpret_cast<QIconEngine::AvailableSizesArgument*>(data); | - |
69 | arg.sizes.clear(); | - |
70 | break; never executed: break; | 0 |
71 | } | - |
72 | default never executed: :default: never executed: default: | 0 |
73 | break; never executed: break; | 0 |
74 | } | - |
75 | } | - |
76 | QList<QSize> QIconEngine::availableSizes(QIcon::Mode mode, QIcon::State state) const | - |
77 | { | - |
78 | AvailableSizesArgument arg; | - |
79 | arg.mode = mode; | - |
80 | arg.state = state; | - |
81 | const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::AvailableSizesHook, reinterpret_cast<void*>(&arg)); | - |
82 | return never executed: arg.sizes;return arg.sizes; never executed: return arg.sizes; | 0 |
83 | } | - |
84 | QString QIconEngine::iconName() const | - |
85 | { | - |
86 | QString name; | - |
87 | const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::IconNameHook, reinterpret_cast<void*>(&name)); | - |
88 | return never executed: name;return name; never executed: return name; | 0 |
89 | } | - |
90 | - | |
91 | - | |
92 | - | |
93 | - | |
94 | - | |
95 | - | |
96 | bool QIconEngine::isNull() const | - |
97 | { | - |
98 | bool isNull = false; | - |
99 | const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::IsNullHook, &isNull); | - |
100 | return never executed: isNull;return isNull; never executed: return isNull; | 0 |
101 | } | - |
102 | - | |
103 | - | |
Switch to Source code | Preprocessed file |