| Summary: | What to do about the lines between connected pieces? | ||
|---|---|---|---|
| Product: | [Applications] palapeli | Reporter: | Stefan Majewsky <majewsky> |
| Component: | general | Assignee: | Stefan Majewsky <majewsky> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde-games-bugs-null |
| Priority: | LO | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | 1.0 | ||
| Platform: | openSUSE | ||
| OS: | Unspecified | ||
| Latest Commit: | Version Fixed In: | ||
| Sentry Crash Report: | |||
|
Description
Stefan Majewsky
2009-10-26 00:32:31 UTC
Naively perhaps, this might be related to a similar problem KGoldrunner had, where all tiles unexpectedly received an unpainted outline-area after a new version of Qt 4 came out. The solution was to get the bounding QRectF of the pixmap and use QRectF::adjust to add 0.5 of a pixel on all four sides before rendering the graphics object into it. See trunk/KDE/kdegames/kgoldrunner/kgrtheme.cpp at KGrTheme::loadGraphic() for details. @Ian: Nope, QGraphicsPixmapItem does that automatically. Because the pieces are not layed out relative to each other, but relative to the top-left corner to the puzzle, such an outline should not cause any problems. SVN commit 1045065 by majewsky: Finally fix the ugly-lines-between-pieces bug: I forgot that QPens are cosmetic by default. BUG: 211873 M +1 -1 slicer-jigsaw.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1045065 |