diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-06 14:18:54 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:51 +0000 |
commit | 7523b588f16e14f87c8146118a1f050f680795fa (patch) | |
tree | c66173cd0a556ebae6bc4a08c1aa7d4f768cf91c /basctl | |
parent | 18102201f4a68bc41f7caa21fc22ec761812b70b (diff) |
changed timers to idles
Change-Id: Ic045e0c066ff1f607f0582b88e72375efaaa708f
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 8 | ||||
-rw-r--r-- | basctl/source/inc/dlged.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 5a00fc4fcd17..2ba6fcff1fcf 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -220,8 +220,8 @@ DlgEditor::DlgEditor ( m_ClipboardDataFlavorsResource[1].HumanPresentableName = "Dialog 8.0" ; m_ClipboardDataFlavorsResource[1].DataType = ::getCppuType( (const Sequence< sal_Int8 >*) 0 ); - aMarkTimer.SetTimeout( 100 ); - aMarkTimer.SetTimeoutHdl( LINK( this, DlgEditor, MarkTimeout ) ); + aMarkIdle.SetPriority(VCL_IDLE_PRIORITY_LOW); + aMarkIdle.SetIdleHdl( LINK( this, DlgEditor, MarkTimeout ) ); rWindow.SetMapMode( MapMode( MAP_100TH_MM ) ); pDlgEdPage->SetSize( rWindow.PixelToLogic( Size(DLGED_PAGE_WIDTH_MIN, DLGED_PAGE_HEIGHT_MIN) ) ); @@ -247,7 +247,7 @@ DlgEditor::DlgEditor ( DlgEditor::~DlgEditor() { - aMarkTimer.Stop(); + aMarkIdle.Stop(); ::comphelper::disposeComponent( m_xControlContainer ); } @@ -1079,7 +1079,7 @@ void DlgEditor::ShowProperties() void DlgEditor::UpdatePropertyBrowserDelayed() { - aMarkTimer.Start(); + aMarkIdle.Start(); } diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index 5204262df2cb..cd722fed6846 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -129,7 +129,7 @@ private: bool bCreateOK; Rectangle aPaintRect; bool bDialogModelChanged; - Timer aMarkTimer; + Idle aMarkIdle; long mnPaintGuard; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > m_xDocument; |