mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 17:13:54 -07:00
fix cardloading on qt5 (#6790)
This commit is contained in:
parent
ac06fb9d1c
commit
2d412bfe52
2 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ CardPictureLoader::CardPictureLoader() : QObject(nullptr)
|
||||||
connect(&SettingsCache::instance(), &SettingsCache::picDownloadChanged, this,
|
connect(&SettingsCache::instance(), &SettingsCache::picDownloadChanged, this,
|
||||||
&CardPictureLoader::picDownloadChanged);
|
&CardPictureLoader::picDownloadChanged);
|
||||||
|
|
||||||
|
qRegisterMetaType<ExactCard>();
|
||||||
connect(worker, &CardPictureLoaderWorker::imageLoaded, this, &CardPictureLoader::imageLoaded);
|
connect(worker, &CardPictureLoaderWorker::imageLoaded, this, &CardPictureLoader::imageLoaded);
|
||||||
|
|
||||||
statusBar = new CardPictureLoaderStatusBar(nullptr);
|
statusBar = new CardPictureLoaderStatusBar(nullptr);
|
||||||
|
|
|
||||||
|
|
@ -114,5 +114,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void emitPixmapUpdated() const;
|
void emitPixmapUpdated() const;
|
||||||
};
|
};
|
||||||
|
Q_DECLARE_METATYPE(ExactCard)
|
||||||
|
|
||||||
#endif // EXACT_CARD_H
|
#endif // EXACT_CARD_H
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue