You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
588 B
32 lines
588 B
#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
|