-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Diagram::PaintDiagram visibility #739
fix Diagram::PaintDiagram visibility #739
Conversation
um, this is practically a revert of c9fcce6#diff-12763b2bbd1d04ec7aa8054d6f637f86 and so brings back this issue |
perhaps its best to revert the full commit then. i was wondering wtf this split into paintThis and paintThat is trying to achieve. |
Hum. It seams that the direct calls to paintMarkers was needed to sort out the printing, update it maybe? Could be an issue of bounding box, but could also related with current implementation of the rendering loop. See postPaintEvent. Every drawStuff() is added to a list and rendered in order. Maybe, if things are out of order they could be hidden or clipped out during print (even if shown properly on the screen). The above paintMarker hack changes the order on postPaintEvent. The following is not going to help, but I must mention. |
cant fix the rendering loop before fixing the basics.
this sounds promising, thanks for mentioning. in particular that means that we will end up with exactly one "paint" method. close to what i want to achieve with this PR, no? |
IIRC, in origin it was a wrong boundary box issue but while fixing that the ability to print a Diagram with or without Markers was added (depending whether the Markers were selected with the Diagram or not) and this led to splitting the |
so that splitting is only needed internally, right? (i did not touch it, and i do not have a problem with that) |
well, it depends on the exact meaning of "internally"; the Schematic needs to be able to select printing/showing a Diagram with or without Markers. |
if somebody wants to hide markers, then (s)he should implement diagram::(un)hideMarkers. not part of this PR. |
or... if markers need to be top-level objects in the schematic, no problem. it does not require paint hacks either. |
I've added a couple of commits that fixes the issue with printing and undoes the artificial splitting of |
marker::isHidden looks weird to me, particularly in public. why not
(in addition, flag access must go through function calls) |
yep, it's better if Regarding the flag access, you mean we should have something like
in |
code rearranged to let |
to allow easily excluding them from printing
between paintDiagram() and paintMarker() that was introduced to handle marker hiding during printing. This is now handled differently (see previous commit) so there can be just a single paint() routine now.
7b07f5f
to
a231efb
Compare
done in refactor branch |
this fixes one of the problems addressed in #370