update pixmap cache
This commit is contained in:
parent
dfaa6b1d95
commit
d6ec869c23
2 changed files with 18 additions and 10 deletions
|
@ -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");
|
||||
|
|
|
@ -67,6 +67,7 @@ public:
|
|||
QPixmap *loadPixmap();
|
||||
QPixmap *getPixmap(QSize size);
|
||||
void clearPixmapCache();
|
||||
void updatePixmapCache();
|
||||
};
|
||||
|
||||
class CardDatabase : public QObject {
|
||||
|
|
Loading…
Reference in a new issue