summaryrefslogtreecommitdiffstats
path: root/examples/svg/svgviewer/mainwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SvgViewer example: fix deprecation warningsIvan Solovev2022-07-151-2/+2
| | | | | | | | | | * Use std::unique_ptr instead of QScopedPointer * Use operator| instead of operator+ for constructing a QKeyCombination Change-Id: Ide03258f8078f68f758ed92812daea8665f548ba Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> (cherry picked from commit 88ae0af3f3aa3bbedccc967436afdc05e6f68aeb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-06-131-49/+2
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Ie5a75414af5fda27f5b5f527f3543b088b674677 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit eb733a078b728e56bbfef7ab395a5de645aa2dd4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add qtsvg examples to cmakeAllan Sandfeld Jensen2021-03-101-2/+2
| | | | | | | | | | Note svggenerator is skipped because something is wrong with its generated cmake files that I didn't recognize. Pick-to: 6.1 Change-Id: I406fa45916148a10ae7b06e8853205d33011757f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Remove usages of deprecated APIs of QDesktopWidgetSona Kurazyan2019-09-111-1/+1
| | | | | | | | | Replaced: QDesktopWidget::availableGeometry(QWidget*) -> QWidget::screen()->availableGeometry() Task-number: QTBUG-76491 Change-Id: Icfda5c8f046652f30eb123be3a377da2e8ecc11c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtSvg: remove deprecated functions and enumerationsChristian Ehrlicher2019-05-271-10/+4
| | | | | | | | 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-011-0/+20
| | | | | | | | | | | 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 BSD license headerKai Koehne2017-10-171-3/+13
| | | | | Change-Id: I3917e7ab180b49c77bff0d071eca10f8bc7f33c7 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* SVG viewer: Add export option.Friedemann Kleint2016-03-151-3/+60
| | | | | | | | | 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-111-64/+57
| | | | | | | | | | | | - 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>
* Fixed BSD licensed file headersJani Heikkinen2015-02-131-3/+3
| | | | | Change-Id: Id2a266b2ec46761769a6bb220cb84dd70fec0817 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Update copyright headersJani Heikkinen2015-02-111-5/+5
| | | | | | | | | | 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>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: Icf9d15a0f1f38ab60f0dd8fc2bc6ac936dd7dc62 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Doc: Modularized Qt Svg documentationGeir Vattekar2012-10-251-0/+163
Change-Id: I2b503ec04a0a4bf800f62c8d3dc2bf1675293add Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>