summaryrefslogtreecommitdiffstats
path: root/examples/svg/svgviewer
Commit message (Collapse)AuthorAgeFilesLines
* Move QSvgWidget and QGraphicsSvgItem into separate moduleVolker Hilsheimer2020-05-291-1/+1
| | | | | | | | Long live QtSvgWidgets. This makes QtSvg independent of QtWidgets. Fixes: QTBUG-41884 Change-Id: I421d27d35b651ee8cdf1a5280d5594b82359ddab Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* svgviewer: Add a dependency on Qt OpenGLWidgetsJohan Klokkhammer Helsing2020-02-241-1/+1
| | | | | | | | | OpenGLWidgets was moved to a new module and this fixes the build issues. Task-number: QTBUG-74409 Change-Id: I047e21f0ba04a8949c06c283e8d26da2e0293f58 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Update dependencies on 'dev' in qt/qtsvgQt Submodule Update Bot2019-12-172-5/+2
| | | | | | | | | | | Remove the framebufferobject example as it still relied on the now removed QGL* classes. Ported the svgviewer example over to use QOpenGLWidget. Change-Id: Idfb1ea7bcb0c8ba7f3f97b4b2d26603f4f7ec96a Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Johan Helsing <johan.helsing@qt.io>
* Remove usages of deprecated APIs of QDesktopWidgetSona Kurazyan2019-09-112-3/+3
| | | | | | | | | Replaced: QDesktopWidget::availableGeometry(QWidget*) -> QWidget::screen()->availableGeometry() Task-number: QTBUG-76491 Change-Id: Icfda5c8f046652f30eb123be3a377da2e8ecc11c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Replace the deprecated QWheelEvent::delta() -> QWheelEvent::angleDelta()Sona Kurazyan2019-08-261-1/+1
| | | | | | | | | | Replaced the deprecated QWheelEvent::delta() with the vertical component of angle delta, assuming that it's acceptable to have a single-dimension mouse wheel in the example code. Task-number: QTBUG-76491 Change-Id: I404d0bf80e22ef4ec3a11aa962f0389c150081cb Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* QtSvg: remove deprecated functions and enumerationsChristian Ehrlicher2019-05-274-18/+8
| | | | | | | | Replace QPainter::HighQualityAntialiasing with Antialiasing and remove defines needed for Qt4. Change-Id: I866decad7d9c10da15e5b0e0bd79033d574f6a08 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* SVG viewer example: Improve zoom facilityv5.11.0-beta3v5.11.0-beta2Friedemann Kleint2018-03-014-2/+67
| | | | | | | | | | | Add a label displaying the current zoom with a tooltip. Add menu actions for ZoomIn/ZoomOut and Reset. Task-number: QTBUG-60653 Change-Id: I7569427345737024b7a3191677e54c83673bb40e Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Fix outdated FDL license headerv5.9.3Kai Koehne2017-10-171-5/+5
| | | | | Change-Id: I2a2501a61107717b8e1adacad064664cf54cd972 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Fix outdated BSD license headerKai Koehne2017-10-177-21/+91
| | | | | Change-Id: I3917e7ab180b49c77bff0d071eca10f8bc7f33c7 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-freeMarc Mutz2016-09-131-1/+2
| | | | | | | | | | | | | | | | | | | | In BearerCloud::timerEvent(), bite the bullet and use a std::vector instead of a QList to avoid repeated qAsConst() applications. In BearerCloud::configurationRemoved() and configurationChanged(), instead of iterating over QMultiMap::uniqueKeys() and QMap::remove(), iterate directly over the QMultiMap and remove the desired elements. Cache a QString. In BearerCloud::updateConfigurations(), instead of using while !isEmpty() takeFirst() on a local copy of a QList, simply iterate over the QList (now made const) using C++11 ranged for. In tst_QSvgGenerator, replace a QList of statically-known size with a C array. Change-Id: Ic0dd1c67d0819fe6167f2bce248f9b910be65803 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-05-241-11/+0
|\ | | | | | | Change-Id: I02f07888db8531778c1e28aa3da6d2166c7b8c8a
| * Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-rc1Liang Qi2016-05-191-11/+0
| |\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I55408b98072be007247bca4fa61f1a62ce32e7ca
| | * delete .desktop files of examplesOswald Buddenhagen2016-04-281-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | they were added without an explanation, and they can't be particularly useful (because they contain hard-coded paths and refer to non-existing icons). Change-Id: I5f0bb2efbdfa296c07a65afacac5fb1d80490037 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-04-088-85/+457
|\| | | | | | | | | | | Change-Id: I8226348c242d0d5bf1f78adc376ecbe26215445e
| * | SVG viewer: Add export option.Friedemann Kleint2016-03-157-6/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add an option to export an image giving a size. This can be used for creating High DPI icons from SVG files among other things. Task-number: QTBUG-49374 Change-Id: I0437889961bc6e646667c5165584002f7ab4d952 Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
| * | Polish the SVG viewer example.Friedemann Kleint2016-03-115-87/+102
| |/ | | | | | | | | | | | | | | | | | | | | | | - Use Qt 5 connection syntax, demonstrating lambdas. - Use QCommandLineParser. - Improve error handling. - Use Mime API of QFileDialog, point to pictures location initially. - Prevent the application from shrinking when loading small images. - Minor polishing, status messages on loading, About Qt dialog. Change-Id: I76f14001c9ab12cbfaaacc2ca4828b404e4b13b2 Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
* / Remove Windows CE.Friedemann Kleint2016-03-101-6/+0
|/ | | | | | | | | Remove #ifdef sections for Q_OS_WINCE, wince .pro file clauses and Windows CE-specific files. Task-number: QTBUG-51673 Change-Id: I07ea3a9522d5b6bd8cce6f5256d92e65a699e3f5 Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
* Fixed BSD licensed file headersJani Heikkinen2015-02-135-15/+15
| | | | | Change-Id: Id2a266b2ec46761769a6bb220cb84dd70fec0817 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-116-31/+31
| | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Ie7d37928ebd680c6f1b20045de11abcd5595c73f Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Remove obsolete dependency on QtXmlv5.3.1Alessandro Portale2014-05-201-1/+1
| | | | | | | | | | | | A while a go, QtSvg was changed to use the QXmlStream* classes from QtCore. Now, only tests/auto/qsvggenerator is left with a QtXml dependency. This patch also reverts commit b719b93770393bbf20251e1dffc70498061e612c Change-Id: I67417a27aa66a2db6d1985cad73e5bab806ad7d2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Doc: Fix module name formatSze Howe Koh2013-01-261-1/+1
| | | | | | | | Follow the conventions at http://qt-project.org/wiki/Spelling_Module_Names_in_Qt_Documentation Change-Id: Iec74520d922bf87241eca8e12698ed3fbff84367 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* make use of qtHaveModule()Oswald Buddenhagen2013-01-111-1/+1
| | | | | Change-Id: Idd8bca1e8e9bb183bc6725b9a9d6a220d609869d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-106-6/+6
| | | | | | Change-Id: Icf9d15a0f1f38ab60f0dd8fc2bc6ac936dd7dc62 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* clean up example project files wrt QT+=widgetsOswald Buddenhagen2013-01-041-3/+1
| | | | | Change-Id: Ie39fa6ef364320842e8efe30594f9cfad39fce26 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Centralize and fixup qtsvg example sources install targetshjk2012-12-061-4/+2
| | | | | | | This follows suit with aeb036e in qtbase. Change-Id: I2e64dcce15b3b39f98395df5627cf0839debdf99 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Fix building of installed examples.Friedemann Kleint2012-11-211-2/+2
| | | | | | | | | - Correct install paths - Add missing resources. Task-number: QTBUG-27977 Change-Id: Ie31cc31a208393dd8dfce87b067b81d986dc946e Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Doc: Modularized Qt Svg documentationGeir Vattekar2012-10-2513-0/+1028
Change-Id: I2b503ec04a0a4bf800f62c8d3dc2bf1675293add Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>