diff options
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/ListBox.cxx | 16 | ||||
-rw-r--r-- | forms/source/component/ListBox.hxx | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 11de5a7dcdf6..3235ffe814ce 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -1789,8 +1789,8 @@ namespace frm doSetDelegator(); - m_aChangeTimer.SetTimeout(500); - m_aChangeTimer.SetTimeoutHdl(LINK(this,OListBoxControl,OnTimeout)); + m_aChangeIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST); + m_aChangeIdle.SetIdleHdl(LINK(this,OListBoxControl,OnTimeout)); } @@ -1866,13 +1866,13 @@ namespace frm // and do the handling for the ChangeListeners ::osl::ClearableMutexGuard aGuard(m_aMutex); - if ( m_aChangeTimer.IsActive() ) + if ( m_aChangeIdle.IsActive() ) { Reference<XPropertySet> xSet(getModel(), UNO_QUERY); m_aCurrentSelection = xSet->getPropertyValue(PROPERTY_SELECT_SEQ); - m_aChangeTimer.Stop(); - m_aChangeTimer.Start(); + m_aChangeIdle.Stop(); + m_aChangeIdle.Start(); } else { @@ -1902,7 +1902,7 @@ namespace frm if (bModified) { m_aCurrentSelection = aValue; - m_aChangeTimer.Start(); + m_aChangeIdle.Start(); } } } @@ -1935,8 +1935,8 @@ namespace frm void OListBoxControl::disposing() { - if (m_aChangeTimer.IsActive()) - m_aChangeTimer.Stop(); + if (m_aChangeIdle.IsActive()) + m_aChangeIdle.Stop(); EventObject aEvent( *this ); m_aChangeListeners.disposeAndClear( aEvent ); diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx index 991627ca50dd..85b380c497fb 100644 --- a/forms/source/component/ListBox.hxx +++ b/forms/source/component/ListBox.hxx @@ -255,7 +255,7 @@ private: ::cppu::OInterfaceContainerHelper m_aItemListeners; ::com::sun::star::uno::Any m_aCurrentSelection; - Timer m_aChangeTimer; + Idle m_aChangeIdle; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XListBox > m_xAggregateListBox; |