summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksei Nikiforov <darktemplar@basealt.ru>2018-11-07 15:07:12 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-11-27 14:53:49 +0100
commite89e3cb3933ee953eeaf555e761c653d909d6d21 (patch)
tree69b1406edf37780abcea822aff41762c0696bbea
parenttdf#120777 KDE5: Prohibit resizing windows unless they're marked resizeable (diff)
downloadcore-e89e3cb3933ee953eeaf555e761c653d909d6d21.tar.gz
core-e89e3cb3933ee953eeaf555e761c653d909d6d21.zip
tdf#120777 KDE5: Remove initial painting of widgets
Widget will be painted later, after correct widget size is set. If window is not resizeable and painted before setting correct size, it saves clipping size in function vcl::Window::ImplIntersectWindowClipRegion and never updates it when window is resized to correct size. This initial painting call causes painting issues in "File" -> "Wizard" -> "Letter" dialog: "Cancel" button is painted only partially, as well as line above that button. Other unresizeable windows with width over 640 pixels or height over 480 pixels may be affected too. Change-Id: Ieccb58368670ebbbe6d17826fafc717101309ac4 Reviewed-on: https://gerrit.libreoffice.org/63017 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--vcl/qt5/Qt5Frame.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index 315d085b0e6b..c82e4c17bb50 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -187,7 +187,6 @@ void Qt5Frame::InitSvpSalGraphics(SvpSalGraphics* pSvpSalGraphics)
m_pSvpGraphics->setSurface(m_pSurface.get(), basegfx::B2IVector(width, height));
cairo_surface_set_user_data(m_pSurface.get(), SvpSalGraphics::getDamageKey(), &m_aDamageHandler,
nullptr);
- TriggerPaintEvent();
}
SalGraphics* Qt5Frame::AcquireGraphics()
@@ -213,7 +212,6 @@ SalGraphics* Qt5Frame::AcquireGraphics()
m_pQt5Graphics.reset(new Qt5Graphics(this));
m_pQImage.reset(new QImage(m_pQWidget->size(), Qt5_DefaultFormat32));
m_pQt5Graphics->ChangeQImage(m_pQImage.get());
- TriggerPaintEvent();
}
return m_pQt5Graphics.get();
}