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 /svtools | |
parent | 484129d08cc48595fe735f77bc3a30b5b8c3475a (diff) |
changed timers to idle
Change-Id: I5846940cc45781f4a0264047107dbb568604d543
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/wizdlg.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx index ed8e29051e8e..eb2e62d0cd0e 100644 --- a/svtools/source/dialogs/wizdlg.cxx +++ b/svtools/source/dialogs/wizdlg.cxx @@ -61,8 +61,8 @@ void WizardDialog::ImplInitData() mbEmptyViewMargin = false; mnLeftAlignCount = 0; - maWizardLayoutTimer.SetTimeout(50); - maWizardLayoutTimer.SetTimeoutHdl( LINK( this, WizardDialog, ImplHandleWizardLayoutTimerHdl ) ); + maWizardLayoutIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + maWizardLayoutIdle.SetIdleHdl( LINK( this, WizardDialog, ImplHandleWizardLayoutTimerHdl ) ); } @@ -113,7 +113,7 @@ void WizardDialog::ImplCalcSize( Size& rSize ) bool WizardDialog::hasWizardPendingLayout() const { - return maWizardLayoutTimer.IsActive(); + return maWizardLayoutIdle.IsActive(); } void WizardDialog::queue_resize(StateChangedType /*eReason*/) @@ -122,7 +122,7 @@ void WizardDialog::queue_resize(StateChangedType /*eReason*/) return; if (IsInClose()) return; - maWizardLayoutTimer.Start(); + maWizardLayoutIdle.Start(); } IMPL_LINK( WizardDialog, ImplHandleWizardLayoutTimerHdl, void*, EMPTYARG ) @@ -263,7 +263,7 @@ void WizardDialog::ImplPosTabPage() return; } - // ButtonBar-Hoehe berechnen + // calculate height of ButtonBar long nMaxHeight = 0; ImplWizButtonData* pBtnData = mpFirstBtn; while ( pBtnData ) @@ -276,7 +276,7 @@ void WizardDialog::ImplPosTabPage() if ( nMaxHeight ) nMaxHeight += WIZARDDIALOG_BUTTON_OFFSET_Y*2; - // TabPage positionieren + // position TabPage Size aDlgSize = GetOutputSizePixel(); aDlgSize.Height() -= nMaxHeight; long nOffX = 0; @@ -363,7 +363,7 @@ WizardDialog::WizardDialog( vcl::Window* pParent, const OUString& rID, const OUS WizardDialog::~WizardDialog() { - maWizardLayoutTimer.Stop(); + maWizardLayoutIdle.Stop(); // Remove all buttons while ( mpFirstBtn ) |