D15111: [KoUnit] Let's show pixel units

2020-05-14 Thread Noah Davis
ndavis added a comment. This does need DPI configuration for pixel units to be useful. Or maybe you could just set the DPI to 96 for pixel units since that's probably what most people want. REPOSITORY R8 Calligra REVISION DETAIL https://phabricator.kde.org/D15111 To: anthonyfieroni, bo

D15111: [KoUnit] Let's show pixel units

2020-05-14 Thread Anthony Fieroni
anthonyfieroni added inline comments. INLINE COMMENTS > KoUnit.h:59-60 > #define CC_TO_POINT(cc) qreal((cc)*12.840103) > +#define POINT_TO_PX(cc) qreal((cc)*96.0/72.0) > +#define PX_TO_POINT(px) qreal((px)*72.0/96.0) > /** @ndavis, DPI is 96, it's not configurable for now. REPOSITORY R8 Cal