summaryrefslogtreecommitdiffstats
path: root/pokemodr/SpriteUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-07-20 05:57:23 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-07-20 05:57:23 +0000
commita44d3c2ebd20e05c7c574cd3a13888fc471067b9 (patch)
treeed5b1750e4e074eb1cf01a59913b97d9e9ce2f43 /pokemodr/SpriteUI.cpp
parentac55d15e484e2357954af3a6a3573c79fbbd88d8 (diff)
downloadsigen-a44d3c2ebd20e05c7c574cd3a13888fc471067b9.tar.gz
sigen-a44d3c2ebd20e05c7c574cd3a13888fc471067b9.tar.xz
sigen-a44d3c2ebd20e05c7c574cd3a13888fc471067b9.zip
[ADD] Added pokescripting to the spec file
[FIX] Added status tips and whats this tags to widgets in pokemodr [FIX] Removed the list sprite for the species [FIX] No more nidoran group needed (scripts should take care of it) [FIX] Height no longer broken between feet and inches [FIX] Fixed a bug in the TeamMember stat generation [FIX] No more global skins; should be scripted [FIX] Missed somt COPY() macros git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@227 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/SpriteUI.cpp')
-rw-r--r--pokemodr/SpriteUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/pokemodr/SpriteUI.cpp b/pokemodr/SpriteUI.cpp
index f4bd492c..9e45bb77 100644
--- a/pokemodr/SpriteUI.cpp
+++ b/pokemodr/SpriteUI.cpp
@@ -39,8 +39,10 @@ Pokemodr::SpriteUI::~SpriteUI()
void Pokemodr::SpriteUI::setGui()
{
+ const QPixmap sprite = qobject_cast<Pokemod::Sprite*>(modified())->sprite();
varName->setText(qobject_cast<Pokemod::Sprite*>(modified())->name());
- varSprite->setIcon(qobject_cast<Pokemod::Sprite*>(modified())->sprite());
+ varSprite->setIcon(sprite);
+ varSprite->setMinimumSize(sprite.size());
}
void Pokemodr::SpriteUI::apply()