|
From: Matchman <mat...@gm...> - 2010-06-14 04:30:57
|
On Fri, Jun 11, 2010 at 4:36 PM, Dragos Tarcatu <tar...@ya...> wrote: > I took a brief look over the tasks you suggested and it looks to me that > deleting graphics objects from the document page was already implemented. > About the other thing - the one for adding pages: I need some advice about > the GUI part. Is it ok to add a new button for it in the main toolbar or > should I do something else? I would prefer to add an "Insert page" item to the Edit menu. > On the other hand, I'm still working on the 4.5.3 Qt version and I'm getting > a new error: > > /home/dragosh/workspace/libpdfxx/sumpdf/src/graphics/ImageObject.cc: In > member function ‘QImage pdf::ImageObject::ToQImage(const > pdf::Image*)’: > /home/dragosh/workspace/libpdfxx/sumpdf/src/graphics/ImageObject.cc:81: > error: ‘class QImage’ has no member named > ‘setColorCount’ > make[2]: *** [CMakeFiles/sumpdf.dir/src/graphics/ImageObject.cc.o] Error 1 > > I haven't checked the Qt documentation yet, but I'm guessing that > setColorCount() was added in the 4.6 version of the Qt library. > I'm planning to move to KUbuntu 10.0.4 anyway, so I'll update my Qt version > too and I'm guessing I won't have any weird problems after that. This one doesn't seem easy to be fixed. setColorCount() is used to set the number of color entries in the color map of an image. I guess Qt 4.5 the number is hard coded to be 256. We set it to 256 anyway. Would you please add an #ifdef around it to skip it in 4.5? Please send a patch if it works. Ah please do test with a PDF file that contains an image to really check if it works. Hehe... I know kubuntu 10.4 is much more interesting, but we really appreciate a developer with a native Qt 4.5 environment to test things out... Match |