diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-17 09:25:25 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:58 +0000 |
commit | d9f9cb96c9874767656bcb02dfdc661336afbddf (patch) | |
tree | a6bc8a858071c793bd81ccee7bfb231e44dfbb6e /sfx2 | |
parent | d843f3de731667a298a83fc66637c7f983f3b24d (diff) |
changed timers to idles
Change-Id: Icb6e3e72939ab0d04d9f099f1e476131a223de48
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index bf2124e0295c..ff0b5b593282 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1426,10 +1426,10 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent, Application::GetSettings().GetLanguageTag().getLanguageType() ) { - m_aEditLoseFocusTimer.SetTimeout( 300 ); - m_aEditLoseFocusTimer.SetTimeoutHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) ); - m_aBoxLoseFocusTimer.SetTimeout( 300 ); - m_aBoxLoseFocusTimer.SetTimeoutHdl( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) ); + m_aEditLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); + m_aEditLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) ); + m_aBoxLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); + m_aBoxLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) ); m_aNameBox.add_mnemonic_label(m_pHeaderAccName); m_aNameBox.SetAccessibleName(m_pHeaderAccName->GetText()); @@ -1454,8 +1454,8 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent, CustomPropertiesWindow::~CustomPropertiesWindow() { - m_aEditLoseFocusTimer.Stop(); - m_aBoxLoseFocusTimer.Stop(); + m_aEditLoseFocusIdle.Stop(); + m_aBoxLoseFocusIdle.Stop(); ClearAllLines(); } @@ -1531,7 +1531,7 @@ IMPL_LINK( CustomPropertiesWindow, EditLoseFocusHdl, CustomPropertiesEdit*, pEdi if ( !pLine->m_bTypeLostFocus ) { m_pCurrentLine = pLine; - m_aEditLoseFocusTimer.Start(); + m_aEditLoseFocusIdle.Start(); } else pLine->m_bTypeLostFocus = false; @@ -1544,7 +1544,7 @@ IMPL_LINK( CustomPropertiesWindow, BoxLoseFocusHdl, CustomPropertiesTypeBox*, pB if ( pBox ) { m_pCurrentLine = pBox->GetLine(); - m_aBoxLoseFocusTimer.Start(); + m_aBoxLoseFocusIdle.Start(); } return 0; |