diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-10-13 21:05:50 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-10-13 21:05:50 +0000 |
| commit | 460e7bdf3f6c1de69f41b02a16deb85522ae3c49 (patch) | |
| tree | 3b80ad00d5f021f63d3f890af2e017af314d2106 /sigmodr/SpeciesUI.cpp | |
| parent | b427a8cdf13aabe59af60acf0a4264d84ae3ff7a (diff) | |
| download | sigen-460e7bdf3f6c1de69f41b02a16deb85522ae3c49.tar.gz sigen-460e7bdf3f6c1de69f41b02a16deb85522ae3c49.tar.xz sigen-460e7bdf3f6c1de69f41b02a16deb85522ae3c49.zip | |
[FIX] Sprite no longer stores a QImage, but a QByteArray
[FIX] Preparing for move to a collaged map instead of a tiled map
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@278 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmodr/SpeciesUI.cpp')
| -rw-r--r-- | sigmodr/SpeciesUI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sigmodr/SpeciesUI.cpp b/sigmodr/SpeciesUI.cpp index 0ad403e0..69e77757 100644 --- a/sigmodr/SpeciesUI.cpp +++ b/sigmodr/SpeciesUI.cpp @@ -98,7 +98,8 @@ void Sigmodr::SpeciesUI::refreshGui() for (int i = 0; i < sigmod()->spriteCount(); ++i) { const Sigmod::Sprite* sprite = sigmod()->sprite(i); - const QPixmap& icon = QPixmap::fromImage(sprite->sprite()); + QPixmap icon; + icon.loadFromData(sprite->sprite()); maxHeight = qMax(maxHeight, icon.height()); maxWidth = qMax(maxWidth, icon.width()); varMaleFront->addItem(icon, sprite->name(), sprite->id()); |
