From 2ca1779febc52ec1b3fd92c10c369003c694b6a4 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 3 Mar 2017 00:32:08 +0100 Subject: [PATCH] Add a way to get the PagePrivate if you have the Page --- core/page.cpp | 4 ++++ core/page_p.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/core/page.cpp b/core/page.cpp index a1d8f0fa5..3478769ea 100644 --- a/core/page.cpp +++ b/core/page.cpp @@ -90,6 +90,10 @@ PagePrivate::~PagePrivate() delete m_transition; } +PagePrivate *PagePrivate::get( Page * page ) +{ + return page->d; +} void PagePrivate::imageRotationDone( RotationJob * job ) { diff --git a/core/page_p.h b/core/page_p.h index 69a2c66c2..46daf9641 100644 --- a/core/page_p.h +++ b/core/page_p.h @@ -58,6 +58,8 @@ class PagePrivate PagePrivate( Page *page, uint n, double w, double h, Rotation o ); ~PagePrivate(); + static PagePrivate *get( Page *page ); + void imageRotationDone( RotationJob * job ); QTransform rotationMatrix() const;