diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-10 14:05:49 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-10 14:05:49 +0000 |
commit | 5b517719e894a179ee5df64fe5e56e26398e8512 (patch) | |
tree | 58b5c61fd566fc69ade5d862bceb42548a6bcc48 /svx/source/dialog/srchdlg.cxx | |
parent | 997654c21dd3758a58743e9eb660bf0099fd6007 (diff) |
Idle/Timer: reverted idle to timer
This task waits for user io.
Change-Id: Id5b3725b316f1bbd73e94d5368bc0d5c7d057189
Diffstat (limited to 'svx/source/dialog/srchdlg.cxx')
-rw-r--r-- | svx/source/dialog/srchdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx index 2b03bbcc9d27..8e4d3c6b47e2 100644 --- a/svx/source/dialog/srchdlg.cxx +++ b/svx/source/dialog/srchdlg.cxx @@ -22,7 +22,7 @@ #include <vcl/wrkwin.hxx> #include <vcl/morebtn.hxx> #include <vcl/msgbox.hxx> -#include <vcl/idle.hxx> +#include <vcl/timer.hxx> #include <svl/slstitm.hxx> #include <svl/itemiter.hxx> #include <svl/style.hxx> @@ -111,7 +111,7 @@ struct SearchDlg_Impl bool bSaveToModule : 1, bFocusOnSearch : 1; sal_uInt16* pRanges; - Idle aSelectionIdle; + Timer aSelectionTimer; uno::Reference< frame::XDispatch > xCommand1Dispatch; uno::Reference< frame::XDispatch > xCommand2Dispatch; @@ -365,8 +365,8 @@ void SvxSearchDialog::Construct_Impl() { // temporary to avoid incompatibility pImpl = new SearchDlg_Impl(); - pImpl->aSelectionIdle.SetPriority( SchedulerPriority::LOWEST ); - pImpl->aSelectionIdle.SetIdleHdl( + pImpl->aSelectionTimer.SetTimeout( 500 ); + pImpl->aSelectionTimer.SetTimeoutHdl( LINK( this, SvxSearchDialog, TimeoutHdl_Impl ) ); EnableControls_Impl( 0 ); @@ -409,7 +409,7 @@ void SvxSearchDialog::Construct_Impl() new SvxSearchController( SID_SEARCH_OPTIONS, rBindings, *this ); rBindings.LeaveRegistrations(); rBindings.GetDispatcher()->Execute( FID_SEARCH_ON, SfxCallMode::SLOT, ppArgs ); - pImpl->aSelectionIdle.Start(); + pImpl->aSelectionTimer.Start(); SvtCJKOptions aCJKOptions; |