Improve initialization of KReportSectionData and KReportDesigner, initially clear "modified" flags for properties.
Details
Insert some elements in kreportexample or Kexi. Or open saved report in Kexi. Properties should not be marked as modified initially.
Also the recent KProperty API 3.0.91 allows for live updates of properties (for now only works for the line element) but it looks like a good start.
Diff Detail
- Repository
- R14 KReport
- Branch
- arcpatch-D8518
- Lint
No Linters Available - Unit
No Unit Test Coverage
- Add clearModifiedFlags() for more property sets on initialization (usually loading from XML)
This is how it looks now in Kexi. Notice how no properties are in bold anymore. The only exception is for the Position property for items (other than Line) - it got modified for unclear reason when are just clicked. Position is there slightly updated on click (but visually without effect since the grid is enabled).
@piggz Ready for review I think. Most of the code here is moved around so we can call clearModifiedFlags() unconditionally when we're done with initializing, no matter if we create new elements or load them from XML.