qiconengine.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/image/qiconengine.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QSize QIconEngine::actualSize(const QSize &size, QIcon::Mode , QIcon::State )-
4{-
5 return
never executed: return size;
size;
never executed: return size;
0
6}-
7-
8-
9-
10-
11-
12QIconEngine::QIconEngine()-
13{-
14}-
15-
16-
17-
18-
19QIconEngine::~QIconEngine()-
20{-
21}-
22-
23-
24-
25-
26-
27-
28-
29QPixmap 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: return pm;
pm;
never executed: return pm;
0
37}-
38void QIconEngine::addPixmap(const QPixmap & , QIcon::Mode , QIcon::State )-
39{-
40}-
41void QIconEngine::addFile(const QString & , const QSize & , QIcon::Mode , QIcon::State )-
42{-
43}-
44QString QIconEngine::key() const-
45{-
46 return
never executed: return QString();
QString();
never executed: return QString();
0
47}-
48bool QIconEngine::read(QDataStream &)-
49{-
50 return
never executed: return false;
false;
never executed: return false;
0
51}-
52-
53-
54-
55-
56-
57-
58-
59bool QIconEngine::write(QDataStream &) const-
60{-
61 return
never executed: return false;
false;
never executed: return false;
0
62}-
63void QIconEngine::virtual_hook(int id, void *data)-
64{-
65 switch (id) {-
66 case
never executed: case QIconEngine::AvailableSizesHook:
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}-
76QList<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: return arg.sizes;
arg.sizes;
never executed: return arg.sizes;
0
83}-
84QString QIconEngine::iconName() const-
85{-
86 QString name;-
87 const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::IconNameHook, reinterpret_cast<void*>(&name));-
88 return
never executed: return name;
name;
never executed: return name;
0
89}-
90-
91-
92-
93-
94-
95-
96bool QIconEngine::isNull() const-
97{-
98 bool isNull = false;-
99 const_cast<QIconEngine *>(this)->virtual_hook(QIconEngine::IsNullHook, &isNull);-
100 return
never executed: return isNull;
isNull;
never executed: return isNull;
0
101}-
102-
103-
Switch to Source codePreprocessed file

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