blob: 42764c04f578ea20356e7f564d101fdcba507b53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __PIXMAP_H__
#define __PIXMAP_H__
#include <qpixmap.h>
#include <qdict.h>
#include <qstring.h>
class LayoutIcon {
private:
static LayoutIcon* instance;
static const QString flagTemplate;
QDict<QPixmap> m_pixmapCache;
QFont m_labelFont;
LayoutIcon();
QPixmap* createErrorPixmap();
void dimPixmap(QPixmap& pixmap);
QString getCountryFromLayoutName(const QString& layoutName);
public:
static const QString& ERROR_CODE;
static LayoutIcon& getInstance();
const QPixmap& findPixmap(const QString& code, bool showFlag, const QString& displayName="");
};
#endif
|