summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Nikiforov <darktemplar@basealt.ru>2018-11-07 15:07:12 +0300
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-11-08 15:57:50 +0100
commit97cba40765d3178fecd463879304bac7da0efa59 (patch)
treeec25aa35060e2e433c088d886576d246fcdabc2c
parentbb9ddf256452a3fe5aec2f638335453063449f5f (diff)
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 70c3de1abcc9..f6428af8b91c 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();
}