~ubuntu-branches/ubuntu/utopic/kde4libs/utopic

« back to all changes in this revision

Viewing changes to kimgio/eps.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-10-02 15:22:43 UTC
  • mfrom: (1.14.22) (0.1.28 sid)
  • Revision ID: package-import@ubuntu.com-20121002152243-k5qvzmkyuioevedo
Tags: 4:4.9.2-0ubuntu1
* New upstream bugfix release
* New files in kdelibs5-dev.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
    psOut.setOutputFileName(tmpFile.fileName());
259
259
    psOut.setOutputFormat(QPrinter::PostScriptFormat);
260
260
    psOut.setFullPage(true);
 
261
    psOut.setPaperSize(image.size(), QPrinter::DevicePixel);
261
262
 
262
263
    // painting the pixmap to the "printer" which is a file
263
264
    p.begin( &psOut );
264
 
    // Qt uses the clip rect for the bounding box
265
 
    p.setClipRect( 0, 0, image.width(), image.height());
266
265
    p.drawImage( QPoint( 0, 0 ), image );
267
266
    p.end();
268
267