canvas::CustomEvent: init bubbles member.
This commit is contained in:
parent
f0a76aa918
commit
03d2a166b7
@ -25,16 +25,20 @@ namespace canvas
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
CustomEvent::CustomEvent( std::string const& type_str,
|
||||
bool bubbles,
|
||||
StringMap const& data ):
|
||||
detail(data)
|
||||
detail(data),
|
||||
bubbles(bubbles)
|
||||
{
|
||||
type = getOrRegisterType(type_str);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
CustomEvent::CustomEvent( int type_id,
|
||||
bool bubbles,
|
||||
StringMap const& data ):
|
||||
detail(data)
|
||||
detail(data),
|
||||
bubbles(bubbles)
|
||||
{
|
||||
type = type_id;
|
||||
// TypeMap::map_by<id>::type const& type_map = getTypeMap().by<id>();
|
||||
|
@ -39,6 +39,7 @@ namespace canvas
|
||||
* @param data Optional user data stored in event
|
||||
*/
|
||||
CustomEvent( std::string const& type_str,
|
||||
bool bubbles = false,
|
||||
StringMap const& data = StringMap() );
|
||||
|
||||
/**
|
||||
@ -47,6 +48,7 @@ namespace canvas
|
||||
* @param data Optional user data stored in event
|
||||
*/
|
||||
CustomEvent( int type_id,
|
||||
bool bubbles = false,
|
||||
StringMap const& data = StringMap() );
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user