API: Clean up KReportUnit

Authored by staniek on Jul 17 2017, 4:01 PM.

Description

API: Clean up KReportUnit

Summary:

  • remove KReportUnit::ListOption (T4967), add Invalid type, better support descriptions and symbols
  • mark default constants as extern to avoid copying, add DEFAULT_UNIT_TYPE

FIXED-IN:3.1.0

Test Plan:
Build KReport with tests enabled, run tests, run KReportExample, try the Unit combo for the page units.

(switching units for page is still broken but this is not related to this very patch)

Reviewers: piggz

Tags: KReport

Maniphest Tasks: T4967

Differential Revision: https://phabricator.kde.org/D6756

Details

Committed
staniekJul 17 2017, 4:25 PM
Differential Revision
D6756: Clean up KReportUnit
Parents
R14:77812dc41761: Make page break related enums enum-classes, fix API
Branches
Unknown
Tags
Unknown
References
D6756