diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-02-22 01:39:13 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-02-22 01:39:13 +0000 |
commit | 8082fda92a86b34a37fe386266efbde5e30bca16 (patch) | |
tree | 85713a913062b8c851de806e2ad0fe26adaa7e03 /pokemodr/MoveUI.cpp | |
parent | 88b11f136c7a4b287ac44e3ec8e671cf17ab8319 (diff) | |
download | sigen-8082fda92a86b34a37fe386266efbde5e30bca16.tar.gz sigen-8082fda92a86b34a37fe386266efbde5e30bca16.tar.xz sigen-8082fda92a86b34a37fe386266efbde5e30bca16.zip |
[FIX] Frac now makes sure that the denominator is positive
[FIX] Sprite-containing classes less repetative with determining paths
[FIX] More include cleanup in pokemodr
[FIX] Precision of Frac decimal equivalents now use a define
[FIX] Species UI form is now more compact and complete
[ADD] SpeciesUI.{h, cpp} (again; wasn't actually included last time and got lost)
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@68 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MoveUI.cpp')
-rw-r--r-- | pokemodr/MoveUI.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp index 072a431e..b1a0c51e 100644 --- a/pokemodr/MoveUI.cpp +++ b/pokemodr/MoveUI.cpp @@ -21,9 +21,12 @@ ///////////////////////////////////////////////////////////////////////////// #include <QMetaObject> -#include "../general/BugCatcher.h" -#include "../general/Exception.h" -#include "../pokemod/Pokemod.h" + +#include <BugCatcher.h> +#include <Exception.h> + +#include <Pokemod.h> + #include "MoveUI.h" MoveUI::MoveUI(Move* m, QWidget* parent) : @@ -57,7 +60,7 @@ void MoveUI::setGui() varAccuracyNum->setValue(move_mod->getAccuracy().getNum()); varAccuracyDenom->setValue(move_mod->getAccuracy().getDenom()); varAccuracyNum->setMaximum(move_mod->getAccuracy().getDenom()); - varAccuracy->setText(QString::number(move_mod->getAccuracy(), 'g', 15)); + varAccuracy->setText(QString::number(move_mod->getAccuracy(), 'g', DBL_PREC)); varType->setCurrentIndex(varType->findData(move_mod->getType())); varTarget->setCurrentIndex(move_mod->getTarget()); varNumTargets->setValue(move_mod->getNumTargets()); |