Commit e50d0c6d authored by Fabio Bas's avatar Fabio Bas
Browse files

get cardback image from theme

parent 15e8121c
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <QDirIterator> #include <QDirIterator>
#include <QFile> #include <QFile>
#include <QTextStream> #include <QTextStream>
#include <QSvgRenderer>
#include <QPainter> #include <QPainter>
#include <QUrl> #include <QUrl>
#include <QSet> #include <QSet>
...@@ -657,11 +656,7 @@ void CardInfo::getPixmap(QSize size, QPixmap &pixmap) ...@@ -657,11 +656,7 @@ void CardInfo::getPixmap(QSize size, QPixmap &pixmap)
loadPixmap(bigPixmap); loadPixmap(bigPixmap);
if (bigPixmap.isNull()) { if (bigPixmap.isNull()) {
if (getName().isEmpty()) { if (getName().isEmpty()) {
QSvgRenderer svg(QString("theme:back.svg")); pixmap = themeManager->getCardBackPixmap();
bigPixmap = QPixmap(svg.defaultSize());
bigPixmap.fill(Qt::transparent);
QPainter painter(&bigPixmap);
svg.render(&painter);
} else { } else {
pixmap = QPixmap(); // null pixmap = QPixmap(); // null
return; return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment