refactor some functions of button
This commit is contained in:
parent
e47d8504ea
commit
6a93295bcf
@ -101,8 +101,6 @@ namespace nana{
|
||||
bool transparent() const;
|
||||
|
||||
button& edge_effects(bool enable);
|
||||
private:
|
||||
void _m_shortkey();
|
||||
private:
|
||||
//Overrides widget virtual functions
|
||||
void _m_complete_creation() override;
|
||||
|
@ -501,16 +501,11 @@ namespace nana{ namespace drawerbase
|
||||
return *this;
|
||||
}
|
||||
|
||||
void button::_m_shortkey()
|
||||
{
|
||||
get_drawer_trigger().emit_click();
|
||||
}
|
||||
|
||||
void button::_m_complete_creation()
|
||||
{
|
||||
events().shortkey.connect_unignorable([this]
|
||||
{
|
||||
_m_shortkey();
|
||||
get_drawer_trigger().emit_click();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user