diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-13 14:50:26 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:57 +0000 |
commit | ea6399b837f1cd4fb28be91b8e311e9378988fc5 (patch) | |
tree | ded5273991f72512d5283962311fb1ba02f5d4be /forms/source | |
parent | e5f67b2e943366042bed9995327840c5a71eae2a (diff) |
changed timers to idles
Change-Id: Ic0d7730f7880dfe2e83c84e773b8cc420249b269
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; |