equal
deleted
inserted
replaced
42 #ifndef QPIXMAPCACHE_H |
42 #ifndef QPIXMAPCACHE_H |
43 #define QPIXMAPCACHE_H |
43 #define QPIXMAPCACHE_H |
44 |
44 |
45 #include <QtGui/qpixmap.h> |
45 #include <QtGui/qpixmap.h> |
46 |
46 |
|
47 #ifdef Q_TEST_QPIXMAPCACHE |
|
48 #include <QtCore/qpair.h> |
|
49 #endif |
|
50 |
47 QT_BEGIN_HEADER |
51 QT_BEGIN_HEADER |
48 |
52 |
49 QT_BEGIN_NAMESPACE |
53 QT_BEGIN_NAMESPACE |
50 |
54 |
51 QT_MODULE(Gui) |
55 QT_MODULE(Gui) |
81 static Key insert(const QPixmap &pixmap); |
85 static Key insert(const QPixmap &pixmap); |
82 static bool replace(const Key &key, const QPixmap &pixmap); |
86 static bool replace(const Key &key, const QPixmap &pixmap); |
83 static void remove(const QString &key); |
87 static void remove(const QString &key); |
84 static void remove(const Key &key); |
88 static void remove(const Key &key); |
85 static void clear(); |
89 static void clear(); |
|
90 |
|
91 #ifdef Q_TEST_QPIXMAPCACHE |
|
92 static void flushDetachedPixmaps(); |
|
93 static int totalUsed(); |
|
94 static QList< QPair<QString,QPixmap> > allPixmaps(); |
|
95 #endif |
86 }; |
96 }; |
87 |
97 |
88 QT_END_NAMESPACE |
98 QT_END_NAMESPACE |
89 |
99 |
90 QT_END_HEADER |
100 QT_END_HEADER |