diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-11 08:21:19 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:54 +0000 |
commit | f62c45f3aff7b5ee1438e0d2c5d975ecc06c6950 (patch) | |
tree | f2fded8ff42dad7296f64acb96895d254957d2ab /sc/source/ui/pagedlg/tphfedit.cxx | |
parent | Changed timer to idle (diff) | |
download | core-f62c45f3aff7b5ee1438e0d2c5d975ecc06c6950.tar.gz core-f62c45f3aff7b5ee1438e0d2c5d975ecc06c6950.zip |
changed timers to Idle
Change-Id: Ic7e795702618d1c623a2deeba1a86f804a249508
Diffstat (limited to 'sc/source/ui/pagedlg/tphfedit.cxx')
-rw-r--r-- | sc/source/ui/pagedlg/tphfedit.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx index 1fca515a8c79..f3a0f96266d8 100644 --- a/sc/source/ui/pagedlg/tphfedit.cxx +++ b/sc/source/ui/pagedlg/tphfedit.cxx @@ -331,7 +331,7 @@ ScExtIButton::ScExtIButton(vcl::Window* pParent, WinBits nBits ) : ImageButton(pParent,nBits), pPopupMenu(NULL) { nSelected=0; - aTimer.SetTimeout(600); + aIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST); SetDropDown(PUSHBUTTON_DROPDOWN_TOOLBOX); } @@ -347,10 +347,10 @@ void ScExtIButton::SetPopupMenu(PopupMenu* pPopUp) void ScExtIButton::MouseButtonDown( const MouseEvent& rMEvt ) { - if(!aTimer.IsActive()) + if(!aIdle.IsActive()) { - aTimer.Start(); - aTimer.SetTimeoutHdl(LINK( this, ScExtIButton, TimerHdl)); + aIdle.SetIdleHdl(LINK( this, ScExtIButton, TimerHdl)); + aIdle.Start(); } ImageButton::MouseButtonDown(rMEvt ); @@ -358,15 +358,15 @@ void ScExtIButton::MouseButtonDown( const MouseEvent& rMEvt ) void ScExtIButton::MouseButtonUp( const MouseEvent& rMEvt) { - aTimer.Stop(); - aTimer.SetTimeoutHdl(Link()); + aIdle.Stop(); + aIdle.SetIdleHdl(Link()); ImageButton::MouseButtonUp(rMEvt ); } void ScExtIButton::Click() { - aTimer.Stop(); - aTimer.SetTimeoutHdl(Link()); + aIdle.Stop(); + aIdle.SetIdleHdl(Link()); ImageButton::Click(); } |