From e0383af6dd4c481a9ddb74a465fc99b051806ed8 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 22 Sep 2015 23:57:39 +0200 Subject: [PATCH] workaround "Signals are protected in qt4" --- cockatrice/src/carddatabase.h | 1 + cockatrice/src/pictureloader.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/carddatabase.h b/cockatrice/src/carddatabase.h index e60c594b..096bbc8f 100644 --- a/cockatrice/src/carddatabase.h +++ b/cockatrice/src/carddatabase.h @@ -137,6 +137,7 @@ public: void setCustomPicURL(const QString &_set, const QString &_customPicURL) { customPicURLs.insert(_set, _customPicURL); } void setMuId(const QString &_set, const int &_muId) { muIds.insert(_set, _muId); } void addToSet(CardSet *set); + void emitPixmapUpdated() { emit pixmapUpdated(); } /** * Simplify a name to have no punctuation and lowercase all letters, for diff --git a/cockatrice/src/pictureloader.cpp b/cockatrice/src/pictureloader.cpp index 5bf85041..2b81c502 100644 --- a/cockatrice/src/pictureloader.cpp +++ b/cockatrice/src/pictureloader.cpp @@ -415,7 +415,7 @@ void PictureLoader::imageLoaded(CardInfo *card, const QImage &image) QPixmapCache::insert(card->getPixmapCacheKey(), QPixmap::fromImage(image)); } - emit card->pixmapUpdated(); + card->emitPixmapUpdated(); } void PictureLoader::clearPixmapCache(CardInfo *card)