[poppler] poppler/qt: poppler-page.cc,1.1,1.2 poppler-qt.h,1.1,1.2
Jeff Muizelaar
jrmuizel at freedesktop.org
Wed Apr 6 13:35:05 PDT 2005
Update of /cvs/poppler/poppler/qt
In directory gabe:/tmp/cvs-serv26044/qt
Modified Files:
poppler-page.cc poppler-qt.h
Log Message:
2005-04-06 Jeff Muizelaar <jrmuizel at nit.ca>
* poppler-page.cc (Page::Page, Page::~Page):
Construct and deconstruct the PageData object.
Patch from Albert Astals Cid.
Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt/poppler-page.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- poppler-page.cc 6 Apr 2005 14:39:40 -0000 1.1
+++ poppler-page.cc 6 Apr 2005 20:35:03 -0000 1.2
@@ -36,10 +36,16 @@
};
Page::Page(Document *doc, int index) {
+ data = new PageData();
data->index = index;
data->doc = doc;
}
+Page::~Page()
+{
+ delete data;
+}
+
void Page::renderToPixmap(QPixmap **q, int x, int y, int w, int h)
{
SplashOutputDev *output_dev;
Index: poppler-qt.h
===================================================================
RCS file: /cvs/poppler/poppler/qt/poppler-qt.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- poppler-qt.h 6 Apr 2005 14:39:40 -0000 1.1
+++ poppler-qt.h 6 Apr 2005 20:35:03 -0000 1.2
@@ -29,6 +29,7 @@
class Page {
friend class Document;
public:
+ ~Page();
void renderToPixmap(QPixmap **q, int x, int y, int w, int h);
private:
Page(Document *doc, int index);
More information about the poppler
mailing list