update pixmap cache

This commit is contained in:
Max-Wilhelm Bruker 2009-08-01 15:48:30 +02:00
parent dfaa6b1d95
commit d6ec869c23
2 changed files with 18 additions and 10 deletions

View file

@ -169,6 +169,13 @@ void CardInfo::clearPixmapCache()
}
}
void CardInfo::updatePixmapCache()
{
qDebug(QString("Updating pixmap cache for %1").arg(name).toLatin1());
clearPixmapCache();
loadPixmap();
}
QXmlStreamWriter &operator<<(QXmlStreamWriter &xml, const CardInfo *info)
{
xml.writeStartElement("card");

View file

@ -67,6 +67,7 @@ public:
QPixmap *loadPixmap();
QPixmap *getPixmap(QSize size);
void clearPixmapCache();
void updatePixmapCache();
};
class CardDatabase : public QObject {