canvas::CustomEvent: init bubbles member.

This commit is contained in:
Thomas Geymayer 2014-06-19 13:04:21 +02:00
parent f0a76aa918
commit 03d2a166b7
2 changed files with 8 additions and 2 deletions

View File

@ -25,16 +25,20 @@ namespace canvas
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
CustomEvent::CustomEvent( std::string const& type_str, CustomEvent::CustomEvent( std::string const& type_str,
bool bubbles,
StringMap const& data ): StringMap const& data ):
detail(data) detail(data),
bubbles(bubbles)
{ {
type = getOrRegisterType(type_str); type = getOrRegisterType(type_str);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
CustomEvent::CustomEvent( int type_id, CustomEvent::CustomEvent( int type_id,
bool bubbles,
StringMap const& data ): StringMap const& data ):
detail(data) detail(data),
bubbles(bubbles)
{ {
type = type_id; type = type_id;
// TypeMap::map_by<id>::type const& type_map = getTypeMap().by<id>(); // TypeMap::map_by<id>::type const& type_map = getTypeMap().by<id>();

View File

@ -39,6 +39,7 @@ namespace canvas
* @param data Optional user data stored in event * @param data Optional user data stored in event
*/ */
CustomEvent( std::string const& type_str, CustomEvent( std::string const& type_str,
bool bubbles = false,
StringMap const& data = StringMap() ); StringMap const& data = StringMap() );
/** /**
@ -47,6 +48,7 @@ namespace canvas
* @param data Optional user data stored in event * @param data Optional user data stored in event
*/ */
CustomEvent( int type_id, CustomEvent( int type_id,
bool bubbles = false,
StringMap const& data = StringMap() ); StringMap const& data = StringMap() );
/** /**