diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-10 14:57:14 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:54 +0000 |
commit | 9824b78dd4ac44fe61d194854a4bc0e98015b4b2 (patch) | |
tree | 1f6ef6221f76c492a386e2bedb7b59fbe1978557 /svx/source/sidebar/PanelLayout.cxx | |
parent | 484129d08cc48595fe735f77bc3a30b5b8c3475a (diff) |
changed timers to idle
Change-Id: I5846940cc45781f4a0264047107dbb568604d543
Diffstat (limited to 'svx/source/sidebar/PanelLayout.cxx')
-rw-r--r-- | svx/source/sidebar/PanelLayout.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx index 08256d180236..6630d7ae55ba 100644 --- a/svx/source/sidebar/PanelLayout.cxx +++ b/svx/source/sidebar/PanelLayout.cxx @@ -20,14 +20,14 @@ PanelLayout::PanelLayout(vcl::Window* pParent, const OString& rID, const OUStrin { SetStyle(GetStyle() | WB_DIALOGCONTROL); m_pUIBuilder = new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID, rFrame); - m_aPanelLayoutTimer.SetTimeout(50); - m_aPanelLayoutTimer.SetTimeoutHdl( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) ); + m_aPanelLayoutIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + m_aPanelLayoutIdle.SetIdleHdl( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) ); } PanelLayout::~PanelLayout() { m_bInClose = true; - m_aPanelLayoutTimer.Stop(); + m_aPanelLayoutIdle.Stop(); } Size PanelLayout::GetOptimalSize() const @@ -40,7 +40,7 @@ Size PanelLayout::GetOptimalSize() const bool PanelLayout::hasPanelPendingLayout() const { - return m_aPanelLayoutTimer.IsActive(); + return m_aPanelLayoutIdle.IsActive(); } void PanelLayout::queue_resize(StateChangedType /*eReason*/) @@ -51,7 +51,7 @@ void PanelLayout::queue_resize(StateChangedType /*eReason*/) return; if (!isLayoutEnabled(this)) return; - m_aPanelLayoutTimer.Start(); + m_aPanelLayoutIdle.Start(); } IMPL_LINK( PanelLayout, ImplHandlePanelLayoutTimerHdl, void*, EMPTYARG ) |