Commit 11c441c
Take into account the space between above or below a QQuickWidget
Applications such as KDE Plasma's System Settings or the simpler Qt's
Quick Widgets Example are cases where there's space around the
QQuickWidget. For System Settings there is a toolbar below the widget,
and in the Qt example it's an MDI window. GammaRay failed at capturing
both of these, but this is easy to fix.
If we detect that we're inside a bigger window, take the height
difference into account. This completely fixes the capture of the
aforementioned examples, and doesn't seem to regress in other cases.
I only changed and tested on the >=6.8 ifdef branch, since I assume this
was broken when porting for the single surface changes.1 parent ee964e7 commit 11c441c
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
630 | 635 | | |
631 | 636 | | |
632 | | - | |
| 637 | + | |
633 | 638 | | |
634 | 639 | | |
635 | 640 | | |
| |||
0 commit comments