From 1fe11fc794783370d8a03a93979b27508278b113 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 27 Aug 2008 04:26:53 +0000 Subject: [FIX] Fixed method in SoundWrapper to be more accurate [FIX] QImage is now used internally instead of QPixmap [FIX] Template specialization moved to header file for Object (makes MinGW happy) git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@246 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokescripting/SoundWrapper.cpp | 2 +- pokescripting/SoundWrapper.h | 2 +- pokescripting/SpriteWrapper.cpp | 2 +- pokescripting/SpriteWrapper.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pokescripting') diff --git a/pokescripting/SoundWrapper.cpp b/pokescripting/SoundWrapper.cpp index 7754048d..ebecdfc2 100644 --- a/pokescripting/SoundWrapper.cpp +++ b/pokescripting/SoundWrapper.cpp @@ -60,7 +60,7 @@ Pokemod::Sound::Type Pokescripting::SoundWrapper::type() const return m_sound->type(); } -Phonon::MediaObject* Pokescripting::SoundWrapper::data() +Phonon::MediaObject* Pokescripting::SoundWrapper::audio() { Phonon::MediaObject* media = new Phonon::MediaObject(this); QBuffer* buffer = new QBuffer(media); diff --git a/pokescripting/SoundWrapper.h b/pokescripting/SoundWrapper.h index b6209d96..54ac3f38 100644 --- a/pokescripting/SoundWrapper.h +++ b/pokescripting/SoundWrapper.h @@ -43,7 +43,7 @@ class POKESCRIPTING_EXPORT SoundWrapper : public ObjectWrapper Q_SCRIPTABLE QString name() const; Q_SCRIPTABLE Pokemod::Sound::Type type() const; - Q_SCRIPTABLE Phonon::MediaObject* data(); + Q_SCRIPTABLE Phonon::MediaObject* audio(); private: SoundWrapper(const Pokemod::Sound* sound, PokemodWrapper* parent); SoundWrapper& operator=(const SoundWrapper& rhs); diff --git a/pokescripting/SpriteWrapper.cpp b/pokescripting/SpriteWrapper.cpp index 47fd585b..0233e996 100644 --- a/pokescripting/SpriteWrapper.cpp +++ b/pokescripting/SpriteWrapper.cpp @@ -39,7 +39,7 @@ QString Pokescripting::SpriteWrapper::name() const return m_sprite->name(); } -QPixmap Pokescripting::SpriteWrapper::sprite() const +QImage Pokescripting::SpriteWrapper::sprite() const { return m_sprite->sprite(); } diff --git a/pokescripting/SpriteWrapper.h b/pokescripting/SpriteWrapper.h index cae7ae1f..77db2e47 100644 --- a/pokescripting/SpriteWrapper.h +++ b/pokescripting/SpriteWrapper.h @@ -34,7 +34,7 @@ class POKESCRIPTING_EXPORT SpriteWrapper : public ObjectWrapper static SpriteWrapper* create(const Pokemod::Sprite* sprite, PokemodWrapper* parent); Q_SCRIPTABLE QString name() const; - Q_SCRIPTABLE QPixmap sprite() const; + Q_SCRIPTABLE QImage sprite() const; private: SpriteWrapper(const Pokemod::Sprite* sprite, PokemodWrapper* parent); SpriteWrapper& operator=(const SpriteWrapper& rhs); -- cgit