diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-11-26 11:15:11 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-11-26 13:48:21 +0000 |
commit | ed6aceab08e1c3951e1e33aa3d8070c57589b5db (patch) | |
tree | 9c2e2abc8cb129c0ed1040b536b6b11a6b87fd7d /vcl | |
parent | bc8dcb2b5db706c8c5bdd6cf3ac1311d6625d962 (diff) |
vcl: reduce pointless timer / scheduler / idle includes.
Change-Id: I8bf7f8d6ba1a54f2969e055956fadc52ff6c8673
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/edit.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index dbd8233b0040..4b1056c55fc7 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2463,6 +2463,12 @@ void Edit::EnableUpdateData( sal_uLong nTimeout ) } } +void Edit::DisableUpdateData() +{ + delete mpUpdateDataTimer; + mpUpdateDataTimer = nullptr; +} + void Edit::SetEchoChar( sal_Unicode c ) { mcEchoChar = c; diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 6b4db051f61e..4105b586a40e 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1398,8 +1398,9 @@ void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnKeyModifier = 0; mnActivateCount = 0; - maIdle.SetPriority( SchedulerPriority::RESIZE ); - maIdle.SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); + mpIdle = new Idle("toolbox update"); + mpIdle->SetPriority( SchedulerPriority::RESIZE ); + mpIdle->SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); // set timeout and handler for dropdown items mpData->maDropdownTimer.SetTimeout( 250 ); @@ -1657,6 +1658,10 @@ void ToolBox::dispose() } } mpFloatWin.clear(); + + delete mpIdle; + mpIdle = nullptr; + DockingWindow::dispose(); } |