image/qiconengine.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3QSize QIconEngine::actualSize(const QSize &size, QIcon::Mode , QIcon::State ) -
4{ -
5 return size;
never executed: return size;
0
6} -
7 -
8 -
9 -
10 -
11 -
12QIconEngine::~QIconEngine() -
13{ -
14} -
15 -
16 -
17 -
18 -
19 -
20 -
21 -
22QPixmap QIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) -
23{ -
24 QPixmap pm(size); -
25 { -
26 QPainter p(&pm); -
27 paint(&p, QRect(QPoint(0,0),size), mode, state); -
28 } -
29 return pm;
never executed: return pm;
0
30} -
31void QIconEngine::addPixmap(const QPixmap & , QIcon::Mode , QIcon::State ) -
32{ -
33} -
34void QIconEngine::addFile(const QString & , const QSize & , QIcon::Mode , QIcon::State ) -
35{ -
36} -
37QString QIconEngine::key() const -
38{ -
39 return QString();
never executed: return QString();
0
40} -
41bool QIconEngine::read(QDataStream &) -
42{ -
43 return false;
never executed: return false;
0
44} -
45 -
46 -
47 -
48 -
49 -
50 -
51 -
52bool QIconEngine::write(QDataStream &) const -
53{ -
54 return false;
never executed: return false;
0
55} -
56void QIconEngine::virtual_hook(int id, void *data) -
57{ -
58 switch (id) { -
59 case QIconEngine::AvailableSizesHook: { -
60 QIconEngine::AvailableSizesArgument &arg = -
61 *reinterpret_cast<QIconEngine::AvailableSizesArgument*>(data); -
62 arg.sizes.clear(); -
63 break;
never executed: break;
0
64 } -
65 default: -
66 break;
executed: break;
Execution Count:1
1
67 } -
68}
executed: }
Execution Count:1
1
69QList<QSize> QIconEngine::availableSizes(QIcon::Mode mode, QIcon::State state) const -
70{ -
71 AvailableSizesArgument arg; -
72 arg.mode = mode; -
73 arg.state = state; -
74 const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::AvailableSizesHook, reinterpret_cast<void*>(&arg)); -
75 return arg.sizes;
executed: return arg.sizes;
Execution Count:33
33
76} -
77QString QIconEngine::iconName() const -
78{ -
79 QString name; -
80 const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::IconNameHook, reinterpret_cast<void*>(&name)); -
81 return name;
executed: return name;
Execution Count:2
2
82} -
83 -
84 -
85 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial