diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-04-22 17:31:28 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-04-22 17:31:28 +0000 |
| commit | 35efee2103faadc0aa7fdb42decbdba440a5fbe8 (patch) | |
| tree | 47cd2b1cd11d67c5db109b91e46806a48745df97 /general | |
| parent | dcb77408505e5fb40f064dd05aaf39f27dcdd524 (diff) | |
[FIX] Fraction can now be used in QVariant
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@103 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'general')
| -rw-r--r-- | general/Fraction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/general/Fraction.h b/general/Fraction.h index 0eef9d71..ff2b678b 100644 --- a/general/Fraction.h +++ b/general/Fraction.h @@ -21,6 +21,7 @@ // Qt includes #include <QtGlobal> #include <QFile> +#include <QMetaType> #include <QString> class Fraction @@ -68,5 +69,6 @@ class Fraction int m_numerator; int m_denominator; }; +Q_DECLARE_METATYPE(Fraction) #endif |
