summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-12 13:55:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-11 17:56:01 +0200
commitbe53f32655973c7a18824d5145eed992be788d2f (patch)
tree5ace1cd4952594b86485ecce44ea07550d78810c /svtools
parent88629b55041b9e7ff5c94afeb2aae725a5898687 (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 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx2
-rw-r--r--svtools/source/brwbox/brwhead.cxx2
-rw-r--r--svtools/source/brwbox/datwin.cxx4
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx6
-rw-r--r--svtools/source/control/scrwin.cxx4
-rw-r--r--svtools/source/control/tabbar.cxx14
6 files changed, 16 insertions, 16 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 4c548c32d2c7..cd85b2756ea1 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -950,7 +950,7 @@ long BrowseBox::ScrollColumns( long nCols )
if ( nCols )
{
pDataWin->Update();
- Update();
+ PaintImmediately();
}
bScrolling = false;
EndScroll();
diff --git a/svtools/source/brwbox/brwhead.cxx b/svtools/source/brwbox/brwhead.cxx
index 2680dfcde131..fa42bfe293c3 100644
--- a/svtools/source/brwbox/brwhead.cxx
+++ b/svtools/source/brwbox/brwhead.cxx
@@ -66,7 +66,7 @@ void BrowserHeader::EndDrag()
{
// call before other actions, it looks more nice in most cases
HeaderBar::EndDrag();
- Update();
+ PaintImmediately();
// not aborted?
sal_uInt16 nId = GetCurItemId();
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index 074ce53aec4f..f22ddb19e370 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -227,7 +227,7 @@ void BrowserDataWin::LeaveUpdateLock()
DoOutstandingInvalidations();
if (bUpdateOnUnlock )
{
- Control::Update();
+ Control::PaintImmediately();
bUpdateOnUnlock = false;
}
}
@@ -246,7 +246,7 @@ void InitSettings_Impl(vcl::Window* pWin)
void BrowserDataWin::Update()
{
if ( !nUpdateLock )
- Control::Update();
+ Control::PaintImmediately();
else
bUpdateOnUnlock = true;
}
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index ddf90b0305b4..920f0e99faf3 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -335,7 +335,7 @@ namespace svt
if ( bActiveBeforeTracking )
{
DeactivateCell();
- Update();
+ PaintImmediately();
}
BrowseBox::ImplStartTracking();
@@ -1008,7 +1008,7 @@ namespace svt
// update if requested
if (bUpdate)
- Update();
+ PaintImmediately();
// release the controller (asynchronously)
if (nEndEvent)
@@ -1207,7 +1207,7 @@ namespace svt
pCheckBoxPaint->GetBox().Enable(_bEnabled);
pCheckBoxPaint->Show();
pCheckBoxPaint->SetParentUpdateMode( false );
- pCheckBoxPaint->Update();
+ pCheckBoxPaint->PaintImmediately();
pCheckBoxPaint->Hide();
pCheckBoxPaint->SetParentUpdateMode( true );
}
diff --git a/svtools/source/control/scrwin.cxx b/svtools/source/control/scrwin.cxx
index 65754a1db569..b56fe3db82d4 100644
--- a/svtools/source/control/scrwin.cxx
+++ b/svtools/source/control/scrwin.cxx
@@ -309,7 +309,7 @@ void ScrollableWindow::Scroll( long nDeltaX, long nDeltaY, ScrollFlags )
// scrolling?
if ( nDeltaX != 0 || nDeltaY != 0 )
{
- Update();
+ PaintImmediately();
// does the new area overlap the old one?
if ( std::abs( static_cast<int>(aDeltaPix.Height()) ) < aOutPixSz.Height() ||
@@ -329,7 +329,7 @@ void ScrollableWindow::Scroll( long nDeltaX, long nDeltaY, ScrollFlags )
Invalidate();
}
- Update();
+ PaintImmediately();
}
if ( !bScrolling )
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 5164e1937268..6670f1182121 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -329,7 +329,7 @@ void ImplTabSizer::ImplTrack( const Point& rScreenPos )
if ( pParent->mnSplitSize < TABBAR_MINSIZE )
pParent->mnSplitSize = TABBAR_MINSIZE;
pParent->Split();
- pParent->Update();
+ pParent->PaintImmediately();
}
void ImplTabSizer::MouseButtonDown( const MouseEvent& rMEvt )
@@ -949,7 +949,7 @@ void TabBar::MouseButtonDown(const MouseEvent& rMEvt)
if (ImplDeactivatePage())
{
SetCurPageId(nSelId);
- Update();
+ PaintImmediately();
ImplActivatePage();
ImplSelect();
}
@@ -1037,7 +1037,7 @@ void TabBar::MouseButtonDown(const MouseEvent& rMEvt)
if (bSelectTab)
{
ImplShowPage(nPos);
- Update();
+ PaintImmediately();
ImplSelect();
}
@@ -1094,7 +1094,7 @@ void TabBar::MouseButtonDown(const MouseEvent& rMEvt)
if (ImplDeactivatePage())
{
SetCurPageId(nSelId);
- Update();
+ PaintImmediately();
ImplActivatePage();
ImplSelect();
}
@@ -2045,7 +2045,7 @@ bool TabBar::StartEditMode(sal_uInt16 nPageId)
{
ImplShowPage(nPos);
ImplFormat();
- Update();
+ PaintImmediately();
mpImpl->mpEdit.disposeAndReset(VclPtr<TabBarEdit>::Create(this, WB_CENTER));
tools::Rectangle aRect = GetPageRect( mnEditId );
@@ -2272,7 +2272,7 @@ bool TabBar::StartDrag(const CommandEvent& rCEvt, vcl::Region& rRegion)
if (ImplDeactivatePage())
{
SetCurPageId(nSelId);
- Update();
+ PaintImmediately();
ImplActivatePage();
ImplSelect();
}
@@ -2470,7 +2470,7 @@ void TabBar::SwitchPage(const Point& rPos)
if (ImplDeactivatePage())
{
SetCurPageId( mnSwitchId );
- Update();
+ PaintImmediately();
ImplActivatePage();
ImplSelect();
}