summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Port pdfviewer example to QPdfView widgetTobias Koenig2018-02-1810-479/+311
| | | | | Change-Id: Id651a2c179628506f0955751abda57cbae569ee9 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Fix compilation with custom Qt namespaceTobias Koenig2018-02-043-0/+8
| | | | | | | | Fix the compilation of QtPdf examples when compiled against a Qt version that uses a custom namespace. Change-Id: I3bd8d89a3ad1e270ed1d54c2b0a458e967f21cca Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* Add support for render rotation and flagsTobias Koenig2017-04-131-1/+1
| | | | | | | | | Extend the QPdfDocument::render() method with a parameter of new type QPdfDocumentRenderOptions to specify the rotation and additional render flags. Change-Id: I354acc7fad4d094a96cefcea4dfa3513f4955c47 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
* Add bookmarks view to pdfviewer exampleTobias Koenig2017-02-213-20/+121
| | | | | | | | Add a treeview to the pdfviewer example to show the usage of QPdfBookmarkModel Change-Id: Ia93d868655a74ea6c41bb28945fe16d0cc740410 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Improve the PDF viewer example aestheticsJake Petroules2017-01-302-7/+39
| | | | | | | | | | | Sets the window title as the title of the PDF document, enlarges the default window size, uses unified toolbars on macOS, extends the viewer area to the edges of the containing window, and removes the Windows 95 style shrunken frame around the PDF viewer. Change-Id: I38753a2b5492ac0cc0d2a11ae62011ac595a0e70 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
* install the pdfviewer example; provide examples subdirs .pro filesShawn Rutledge2017-01-2720-0/+8
| | | | | | | | | | | | Actually moving the files is unfortunately necessary because of a rule about having the source directory structure match the intended installation directory structure. It was intended to differentiate widget examples from future QtQuick examples, but now that distiction is being unfortunately lost in order to keep the directory structure as shallow as it can still be, after having to comply with the first rule. Change-Id: I831227d2be3c8f5cab55a98a531e16bcb3aa0303 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* change the license to LGPLv3 (with the commercial option)Shawn Rutledge2016-12-207-42/+147
| | | | | | Change-Id: I2caed38ece8067ecdad877dcc278f7828a3cb0bb Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* example: QVector instead of QListShawn Rutledge2016-12-161-1/+1
| | | | | | Change-Id: I8610d9962298c65358e3d16403208eca4e2060c7 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* replace Q_NULLPTR and Q_DECL_OVERRIDEShawn Rutledge2016-12-161-1/+1
| | | | | Change-Id: Icf33776f70bdde71f320de0a129361ac28fd18c8 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
* pdfviewer: Move QPdfDocument to MainWindowTobias Koenig2016-08-246-46/+68
| | | | | | | | | | | Move the QPdfDocument out of PageRenderer into MainWindow, since the document is needed there to get more information. This patch ignores the locking for now, since QPdfDocument::render() seem to be a read-only action anyway. Change-Id: Idd322bcb87a296a70a04b60984378049e6c4e4fb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* pdfviewer: Draw white background behind pageTobias Koenig2016-08-241-0/+1
| | | | | Change-Id: I50e85b8d135dc4fa93211567d195229cd3892086 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* pdfviewer: Fix zooming of contentTobias Koenig2016-08-241-0/+1
| | | | | | | | Clear the page cache after zoom level has changed, otherwise the page content won't be rerendered with new zoom level. Change-Id: If374d65570c0ecce3a94d496d57a8e28dcbf8e0a Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Add license header boilerplateSimon Hausmann2016-07-257-0/+147
| | | | | | | Commercial until we have figured out the licensing :) Change-Id: Ibf60ca98cf04ee23928794a96ae33f87608c3236 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
* QScroller doesn't work unless a gesture is grabbedShawn Rutledge2014-12-161-0/+1
| | | | | | correction to 0108ecad44e04be9d0b60f4b6b7e0fceb69ea034 QScroller was working because of a subsequent patch that tried to add pinch zooming.
* pdfviewer example: page cache has a page count limitShawn Rutledge2014-12-162-0/+6
| | | | to limit memory usage
* pdfviewer example: QScroller makes kinetic flicking workShawn Rutledge2014-12-162-5/+3
|
* Fix build with MSVCSimon Hausmann2014-12-161-1/+1
| | | | Q_DECL_OVERRIDE comes last in the declaration
* Fix small memory leak, don't leak the QPdfDocumentSimon Hausmann2014-12-163-8/+7
|
* pdfviewer example: PageRenderer owns document and thread. SmoothShawn Rutledge2014-12-167-140/+136
| | | | | | | PageCache renamed to PageRenderer and minimized to just being a worker thread. The UI is finally responsive, biecause the locking in QPdfDocument is isolated behind PageRenderer. ATM only renders visible pages though.
* pdfviewer example: stop creating placeholder images in PageCacheShawn Rutledge2014-12-164-18/+14
|
* Fix compilationSimon Hausmann2014-12-161-3/+0
|
* pdfviewer example: direct inheritance from QThreadShawn Rutledge2014-12-152-11/+8
| | | | | But either way, the UI is not as responsive as one could wish for during background rendering.
* pdfviewer example: add threaded PageCacheShawn Rutledge2014-12-157-35/+172
| | | | thread fixes
* pdfviewer example: add rendering statsShawn Rutledge2014-12-152-1/+27
|
* pdf viewer example: more typical featuresShawn Rutledge2014-12-1514-6/+230
| | | | | | | zooming field for setting zoom, up/down buttons field for setting and viewing page number, up/down actions icons for toolbar actions
* pdfviewer example: can scroll through pages and render on demandShawn Rutledge2014-12-155-19/+87
|
* initial single-threaded implementation of pdfviewer exampleShawn Rutledge2014-12-157-0/+264