diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-12 13:55:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-11 17:56:01 +0200 |
commit | be53f32655973c7a18824d5145eed992be788d2f (patch) | |
tree | 5ace1cd4952594b86485ecce44ea07550d78810c /basctl | |
parent | 88629b55041b9e7ff5c94afeb2aae725a5898687 (diff) |
rename vcl::Window::Update to PaintImmediately
To make the code easier to read.
Change-Id: Iebc648150391939fba5d1cd815c72dbcf02ceec6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90378
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 4 | ||||
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 4 | ||||
-rw-r--r-- | basctl/source/dlged/dlgedview.cxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/IDEComboBox.hxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/propbrw.hxx | 1 |
6 files changed, 6 insertions, 9 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index f9e8b2674eba..2aa29d74df71 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -437,7 +437,7 @@ void ModulWindow::LoadBasic() GetEditEngine()->SetUpdateMode( false ); GetEditView()->Read( *pStream ); GetEditEngine()->SetUpdateMode( true ); - GetEditorWindow().Update(); + GetEditorWindow().PaintImmediately(); GetEditorWindow().ForceSyntaxTimeout(); GetEditorWindow().DestroyProgress(); ErrCode nError = aMedium.GetError(); diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index b8bdd5628726..83f09d64297e 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1002,7 +1002,7 @@ void EditorWindow::CreateEditEngine() rModulWindow.GetBreakPointWindow().GetCurYOffset() = 0; rModulWindow.GetLineNumberWindow().GetCurYOffset() = 0; pEditEngine->SetUpdateMode(true); - rModulWindow.Update(); // has only been invalidated at UpdateMode = true + rModulWindow.PaintImmediately(); // has only been invalidated at UpdateMode = true pEditView->ShowCursor(); @@ -1412,7 +1412,7 @@ void BreakPointWindow::DoScroll( long nVertScroll ) void BreakPointWindow::SetMarkerPos( sal_uInt16 nLine, bool bError ) { if ( SyncYOffset() ) - Update(); + PaintImmediately(); nMarkerPos = nLine; bErrorMarker = bError; diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 771823a2895d..26f5446227ad 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -308,7 +308,7 @@ void DlgEditor::DoScroll() if( !nX && !nY ) return; - rWindow.Update(); + rWindow.PaintImmediately(); // #i31562# // When scrolling, someone was rescuing the Wallpaper and forced the window scroll to @@ -321,7 +321,7 @@ void DlgEditor::DoScroll() rWindow.Scroll( -nX, -nY, ScrollFlags::Children); aMap.SetOrigin( Point( -aScrollPos.Width(), -aScrollPos.Height() ) ); rWindow.SetMapMode( aMap ); - rWindow.Update(); + rWindow.PaintImmediately(); DlgEdHint aHint( DlgEdHint::WINDOWSCROLLED ); Broadcast( aHint ); diff --git a/basctl/source/dlged/dlgedview.cxx b/basctl/source/dlged/dlgedview.cxx index 3ec0f72e1fda..754ef71a7cc3 100644 --- a/basctl/source/dlged/dlgedview.cxx +++ b/basctl/source/dlged/dlgedview.cxx @@ -106,7 +106,7 @@ void DlgEdView::MakeVisible( const tools::Rectangle& rRect, vcl::Window& rWin ) nScrollY = -nVisTop; // scroll window - rWin.Update(); + rWin.PaintImmediately(); rWin.Scroll( -nScrollX, -nScrollY ); aMap.SetOrigin( Point( aOrg.X() - nScrollX, aOrg.Y() - nScrollY ) ); rWin.SetMapMode( aMap ); diff --git a/basctl/source/inc/IDEComboBox.hxx b/basctl/source/inc/IDEComboBox.hxx index 155256279906..2a9c46609fc2 100644 --- a/basctl/source/inc/IDEComboBox.hxx +++ b/basctl/source/inc/IDEComboBox.hxx @@ -137,7 +137,6 @@ public: virtual ~LibBox() override; virtual void dispose() override; - using Window::Update; /*! * Update selection in ComboBox of macro and dialog Library * @@ -242,7 +241,6 @@ public: virtual ~LanguageBox() override; virtual void dispose() override; - using Window::Update; /*! * Update selection in ComboBox of macro and dialog Library * diff --git a/basctl/source/inc/propbrw.hxx b/basctl/source/inc/propbrw.hxx index 4f21e2ec7cfd..eb0f5be21eed 100644 --- a/basctl/source/inc/propbrw.hxx +++ b/basctl/source/inc/propbrw.hxx @@ -71,7 +71,6 @@ public: explicit PropBrw (DialogWindowLayout&); virtual ~PropBrw() override; virtual void dispose() override; - using Window::Update; // note: changing the Context document to an instance other than the one given in the ctor is not supported // currently void Update( const SfxViewShell* pShell ); |