Themes: remove all hardcoded extensions

This commit is contained in:
Fabio Bas 2015-09-13 00:14:36 +02:00
parent 226a8cc017
commit 00e3e63f41
27 changed files with 348 additions and 419 deletions

View file

@ -625,7 +625,7 @@ void CardInfo::loadPixmap(QPixmap &pixmap)
pixmap = QPixmap();
if (getName().isEmpty()) {
pixmap = themeManager->getCardBackPixmap();
pixmap = QPixmap("theme:cardback");
return;
}
@ -656,7 +656,7 @@ void CardInfo::getPixmap(QSize size, QPixmap &pixmap)
loadPixmap(bigPixmap);
if (bigPixmap.isNull()) {
if (getName().isEmpty()) {
pixmap = themeManager->getCardBackPixmap();
pixmap = pixmap = QPixmap("theme:cardback");
} else {
pixmap = QPixmap(); // null
return;