Only update image and notify for those mouse events that we care about.
This removes the job being done twice (once on mouse pressed and once
on mouse released)
it->m_selected = (*it).m_selected || select;
select = nextSelect;
}
+ // Redraw the control
+ makeImage();
+ notifyLayout();
}
else if( rEvent.getAsString().find( "mouse:left:down:ctrl" ) !=
string::npos )
it->m_selected = !it->m_selected;
m_pLastSelected = &*it;
}
+ // Redraw the control
+ makeImage();
+ notifyLayout();
}
else if( rEvent.getAsString().find( "mouse:left:down:shift" ) !=
string::npos )
it->m_selected = select;
select = nextSelect;
}
+ // Redraw the control
+ makeImage();
+ notifyLayout();
}
else if( rEvent.getAsString().find( "mouse:left:down" ) !=
string::npos )
}
}
}
+ // Redraw the control
+ makeImage();
+ notifyLayout();
}
-
else if( rEvent.getAsString().find( "mouse:left:dblclick" ) !=
string::npos )
{
// Execute the action associated to this item
m_rTree.action( &*it );
}
+ // Redraw the control
+ makeImage();
+ notifyLayout();
}
- // Redraw the control
- makeImage();
- notifyLayout();
}
else if( rEvent.getAsString().find( "scroll" ) != string::npos )