From fdd0eec1d145fb8ac97b4cc9aaed5218214416ec Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 15 May 2008 19:55:43 +0000 Subject: [FIX] Refactored out connections made within widgets [FIX] Flag, Fractiona, and Point widgets fixed to only emit signals when actually changed [FIX] Pokemod classes now emit signals git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@138 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Item.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pokemod/Item.cpp') diff --git a/pokemod/Item.cpp b/pokemod/Item.cpp index 44962f46..777f5856 100644 --- a/pokemod/Item.cpp +++ b/pokemod/Item.cpp @@ -102,11 +102,13 @@ QDomElement Item::save() const void Item::setName(const QString& name) { m_name = name; + emit(changed()); } void Item::setSellable(const bool sellable) { m_sellable = sellable; + emit(changed()); } void Item::setType(const int type) @@ -117,6 +119,7 @@ void Item::setType(const int type) return; } m_type = type; + emit(changed()); } void Item::setPrice(const int price) @@ -127,11 +130,13 @@ void Item::setPrice(const int price) return; } m_price = price; + emit(changed()); } void Item::setDescription(const QString& description) { m_description = description; + emit(changed()); } QString Item::name() const -- cgit