Add a way to get the PagePrivate if you have the Page

This commit is contained in:
Albert Astals Cid 2017-03-03 00:32:08 +01:00
parent 1d2dd42c67
commit 2ca1779feb
2 changed files with 6 additions and 0 deletions

View file

@ -90,6 +90,10 @@ PagePrivate::~PagePrivate()
delete m_transition;
}
PagePrivate *PagePrivate::get( Page * page )
{
return page->d;
}
void PagePrivate::imageRotationDone( RotationJob * job )
{

View file

@ -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;