Advertisement
Guest User

Untitled

a guest
Dec 31st, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. From 0f68f8920573cdce1729a285a92ac8582df32841 Mon Sep 17 00:00:00 2001
  2. From: Ulf Hermann <ulf.hermann@theqtcompany.com>
  3. Date: Tue, 27 Oct 2015 15:25:42 +0100
  4. Subject: QtWidgets: Do hide/show via WA_OutsideWSRange for native widgets
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8.  
  9. If a native widget has a width or height of 0 we don't have to
  10. invalidate its backing store as that is done by the window
  11. system. Certain applications rely on ... interesting ... behavior
  12. of certain window systems in this case.
  13.  
  14. Task-number: QTBUG-48321
  15. Change-Id: I78ef29975181ee22429c9bd4b11d96d9e68b7a9c
  16. Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
  17. Reviewed-by: Alexander Volkov <a.volkov@rusbitech.ru>
  18. Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
  19. Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
  20. ---
  21. src/widgets/kernel/qwidget.cpp | 2 +-
  22. 1 file changed, 1 insertion(+), 1 deletion(-)
  23.  
  24. diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
  25. index 7734715..4286130 100644
  26. --- a/src/widgets/kernel/qwidget.cpp
  27. +++ b/src/widgets/kernel/qwidget.cpp
  28. @@ -7169,7 +7169,7 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove)
  29.  
  30. bool needsShow = false;
  31.  
  32. - if (q->isWindow()) {
  33. + if (q->isWindow() || q->windowHandle()) {
  34. if (!(data.window_state & Qt::WindowFullScreen) && (w == 0 || h == 0)) {
  35. q->setAttribute(Qt::WA_OutsideWSRange, true);
  36. if (q->isVisible() && q->testAttribute(Qt::WA_Mapped))
  37. --
  38. 2.6.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement