aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/imageviewer
Commit message (Collapse)AuthorAgeFilesLines
* Core/Utils: Migrate further to Utils::Idhjk2020-07-061-0/+1
| | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Various Qt6 compile fixeshjk2020-06-221-1/+2
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: Ia0fe92d82d4477bd8f14ee25754b114316fc878a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* All: Use Utils::SkipEmptyPartshjk2020-06-171-11/+10
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename PathChooser::{f,setF}ileName() to {f,setF}ilePath()hjk2020-04-092-4/+4
| | | | | | | | | | It's returning a FilePath, so it's a better fit. Keep the old versions as inline function now to ease downstream migration. Change-Id: I535887928018f42b92895c8b0c82527f0d55e5ca Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Globally disable WindowContextHelpButtonHintKai Koehne2020-02-252-4/+0
| | | | | | | | | | | Do set the global application flag AA_DisableWindowContextHelpButton to avoid having to unset the default WindowContextHelpButtonHint in every single dialog. AA_DisableWindowContextHelpButton was added in Qt 5.10. Change-Id: I21fe8bc5ddfa4c01ec7a799b04bfb6ff1c9d6d86 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Provide an empty default IPlugin::extensionsInitialized()hjk2020-02-071-1/+0
| | | | | | | And remove all empy re-implementations. Change-Id: I19f0b4e55c042c96693ecb89766f97f0a97b54ae Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Remove one IEditorFactory::addMimeType overloadhjk2020-02-061-1/+1
| | | | | | | Not overly useful in the times of QT_RESTRICTED_CAST_FROM_ASCII Change-Id: I87032b1da9cc4e8205d2a9c8596bc9ba832acf30 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Make IEditorFactory::createEditor use a function objecthjk2020-02-052-12/+3
| | | | | | | | Also, replace or remove unneeded Q_OBJECTs, and make base setters and adders protected. Change-Id: I212257ef53984d8852dc8c478537199fc9483486 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ImageViewer: Use standard plugin setup patternhjk2020-01-224-102/+98
| | | | | Change-Id: Iab9536115b243563bb9a4bfd56b9d211a45f1b0b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Replace the deprecated QWheelEvent::delta() -> QWheelEvent::angleDelta()Sona Kurazyan2019-09-021-1/+1
| | | | | | | | | | Replaced the usages of deprecated QWheelEvent::delta() with QWheelEvent::angleDelta().y(), assuming that it's acceptable to use only the vertical component of angle delta. Task-number: QTBUG-76491 Change-Id: I4aa0a5a0e9ba7f33321bdb879b66ffb589b53e42 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* connect() to ambiguous signals/slots: Replace static_cast with QOverloadAlessandro Portale2019-05-281-4/+2
| | | | | Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-283-3/+3
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Qt Creator CMake portCristian Adam2019-05-171-0/+15
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ImageViewer: Don't blur the ImageViewer background pattern on HighDpiAlessandro Portale2019-04-111-0/+1
| | | | | | | | Simply don't draw the background pattern with interpolated scaling. Task-number: QTCREATORBUG-22280 Change-Id: Iae17f4ce663ae82ee00cbebaa9830b5bb86d5735 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ImageView: ModernizeAlessandro Portale2018-11-1210-49/+49
| | | | | | | modernize-* Change-Id: I7fcffa4b455355cbcdc91f7e671e0a88f1091042 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: Change IEditor::document() to constOrgad Shaneh2018-09-262-2/+2
| | | | | | | All the implementations are const. Change-Id: Ib9753fe764dd482d4f4392eec70878d42edc737a Reviewed-by: hjk <hjk@qt.io>
* ImageView: Fix brace in stringRobert Loehning2018-07-131-1/+1
| | | | | Change-Id: I08c0b74930cccea4674ea559c64de9fff8cd1791 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* ImageView: Suppress a warning if SVG is not availablehjk2018-04-231-0/+2
| | | | | Change-Id: Ic61c61ec9f9c80c930c361e71c4d4b374aa39906 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Plugins: Re-categorize plugins which are in "Qt Creator" categoryRazi Alavizadeh2018-03-201-1/+0
| | | | | | | | | | | | | Category of DiffEditor, ImageViewer, Macros and UpdateInfo was removed, i.e., they were moved to "Utilities" category. Category of other plugins that were in "Qt Creator" category, changed to "Core". By this patch, forks of QtCreator don't need to change *.json.in files locally. Change-Id: I243c6b1831c0b880d32b2118db71f0b281590b7b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ImageViewer: Fix QBS build after adding the SVG multiexport featureFriedemann Kleint2018-02-141-0/+2
| | | | | | | Amends cd85d3aba56a142374226f5fdec8df3b6632357b. Change-Id: I8acdb94ee4b1f6a30aee2644230b4b9e297a53fb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Add SVG multi exportFriedemann Kleint2018-02-1412-36/+563
| | | | | | | | | | | | Add a second SVG export option that allows for exporting a series of icons of various size in one go. A dialog is shown that allows for entering a file name pattern with place holders and a list of sizes. Change-Id: Ic644a9d402aa44af5899c29cf83051fdd7bba3d1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Diana de Sousa <diana.desousa@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ImageViewer: Remove unneeded use of global object poolhjk2018-02-082-14/+6
| | | | | | | | Plus some code cosmetics. Change-Id: I4e10f1900a5a06bb37bc2d20f3dd776c7534011e Reviewed-by: Denis Mingulov <denis@mingulov.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Image viewer: Add include <QAction>Friedemann Kleint2018-02-061-0/+1
| | | | | | | | Fix broken build (likely introduced by e1d2d35c20163083266e2e450ef54bfb15d2b47d). Change-Id: I34024e437d4d74ebe4f712718a66cedca8a4b7ae Reviewed-by: hjk <hjk@qt.io>
* Unify zooming actions of image viewer and model editorEike Ziller2018-02-054-21/+19
| | | | | Change-Id: I5761ab579beda5b2cd0b725869ed216cb97e900c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Replace manual signal blocking/unblocking with QSignalBlockerTobias Hunger2017-10-041-4/+2
| | | | | | Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Drop unused variables and lambda capturesUlf Hermann2017-09-081-8/+8
| | | | | | | | | Also, add context to connect() expressions where we are or were capturing "this". Change-Id: I6e006ba6f83d532478018550d148ee93eca59605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Fix copyright year in plugin info, --version, and macOS infoEike Ziller2017-08-241-1/+1
| | | | | | | | By using the new QTCREATOR_COPYRIGHT_YEAR variable Task-number: QTCREATORBUG-18612 Change-Id: I3bcf0319660d210436d3130c00f43325c460a66c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Plugins: Fix that mimetype definition was not valid JSONEike Ziller2017-07-251-9/+9
| | | | | | | | | | | | | JSON officially does not support multiline strings, so we should use the same mechanism that we already use for the plugin description (i.e. additionally support arrays of strings which are interpreted as lines). This just happens to work because Qt's JSON parser eats it without choking. Change-Id: I25ef04600b209775c5a7af916c687fda4a8b1a4d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Replace include guards with #pragma onceOrgad Shaneh2017-06-281-4/+1
| | | | | | Change-Id: Ic36cf0e9cac61d4d9a7e4434192944f5301b8aaa Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Reduce usage of qApp in favor of static function callsAlessandro Portale2017-04-241-1/+1
| | | | | | | | | | | | Q*Application classes have unusually many static functions. In many cases in our code, these functions are unnecessarily called as instance functions, using the qApp helper. This patch replaces many occurencies of qApp with the according Q*Application classname. Change-Id: I6099a419fa7bf969891269c37ed7a9e817ef5124 Reviewed-by: hjk <hjk@qt.io>
* ImageViewer: De-slotOrgad Shaneh2017-03-203-16/+8
| | | | | Change-Id: If488718679d31fd184b99c9ceb5004f15fb0a90b Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Utils: Wrap MimeDatabase into static functionshjk2017-03-031-2/+1
| | | | | | | | To avoid repeating the 'MimeDatabase mdb; mdb.something(); ' mantra all over the place. Change-Id: I4bfef62e73275a991455141671d6071162788e9d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move mimetype definitions to plugin specsEike Ziller2017-02-276-22/+13
| | | | | | | | | | | | - Avoids the hassle of QRC files and manually registering mime types - Avoids performance regressions because of mime types that are registered after mime database has been used - Makes it technically possible to detect that a disabled plugin could handle a mime type if it was enabled Change-Id: I373008b1b56e9c6b4853055f20b3eeb112a6eff9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* ImageViewer: remove unnecessary class forwardTim Jenssen2016-12-121-2/+0
| | | | | Change-Id: I39df5ceeb3fb07b039d5ad1388db866e8aaccc04 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ImageViewer, ScxmlEditor: Use the new "Fit to view" iconv4.2.0-beta1Alessandro Portale2016-10-251-2/+2
| | | | | Change-Id: I4261e2a91b2c2b310b571ac2657998dcc0756be6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ImageViewer, ScxmlEditor: Use the new "Zoom In"/"Zoom Out" iconsAlessandro Portale2016-10-241-2/+2
| | | | | Change-Id: Ib01060918924644b57d35083a4269614fba900c5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Projects mode: Make plus icon dark and get rid of branch indicatorsEike Ziller2016-09-211-1/+1
| | | | | | | | | | The PLUS icon was actually PLUS_TOOLBAR, so name it that way and add an actual PLUS icon. Remove the drawing of the branch indicators from the kit tree view by overriding the method that does it. Change-Id: I395e5187c1738faaee3e122b4f3f359261b514d7 Reviewed-by: hjk <hjk@qt.io>
* Remove all QT_VERSION_CHECKOrgad Shaneh2016-08-121-5/+0
| | | | | | | We only support Qt 5.6 now. Change-Id: If94864400545b057623e3af0743c55ea1e84e33b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Move icons to UtilsUlf Hermann2016-08-051-10/+10
| | | | | | | This way we can use them from libraries, not only from plugins. Change-Id: Ic35cfd5f04d638d87606bf272b2c00ded1267c1b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Icons: Move "next/prev", "[un]locked" and "zoom" from Core to UtilsAlessandro Portale2016-05-311-1/+2
| | | | | | | | | | They are needed in the timeline view. The change in qtcreator-project.qdocconf makes sure that qdoc still finds the referenced icons. Change-Id: I812fba8e57d06d93efc00c295467c83c08cd1784 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-221-2/+2
|\ | | | | | | | | | | | | | | Conflicts: qtcreator.pri qtcreator.qbs Change-Id: I0cbc9d335073e3234f472aa43f462eef9a9178aa
| * Theme: Separate run/stop/interrupt icons in menusAlessandro Portale2016-04-211-2/+2
| | | | | | | | | | | | | | And for that, we also need separate theme color roles. Change-Id: I27bf4499acb516f7f824f5e57632797653b150ec Reviewed-by: hjk <hjk@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-203-17/+20
|\| | | | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/session.cpp src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp Change-Id: I6946139f5e5fa3a9cdbb322fd50be248e2c0133f
| * ImageViewer: Update toolbar items for split/duplicated editorsAlessandro Portale2016-04-153-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | The "export" button in a split/duplicated view was enabled for other image formats than svg. The image size label was empty. Fixes for all views (not just the split ones): The play button is now disabled instead of "empty" for non-movies. The size of svgs is displayed. Change-Id: I1f6a2c47f3aa06ed052ba78e5e2d1edd51a0ec69 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-155-11/+5
|\| | | | | | | Change-Id: Ied609608f6b12aa923c67777bc5a273c4d8fbcbb
| * Core: Fresh filesave iconAlessandro Portale2016-04-141-1/+1
| | | | | | | | | | Change-Id: Ide9d92fb6cb7b6e6af457eb8680960e2ddc5ef77 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
| * Moving desktopdevicesmall.png from projectexplorer to coreAlessandro Portale2016-04-144-5/+3
| | | | | | | | | | | | | | It is also needed by imageviewer Change-Id: Idd489ebc71768e293790e4b8f8ae9f5ede38e80d Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
| * Icons: Removing several duplicates and variations of the eye_open iconAlessandro Portale2016-04-124-5/+1
| | | | | | | | | | Change-Id: I598005ac81bd847d3d5e88c3d78a0e945c8026c5 Reviewed-by: hjk <hjk@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-127-11/+5
|\| | | | | | | | | | | | | Conflicts: src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp Change-Id: I6ae2d37290643d69390f679a54f7596782f3d97f
| * Bounding Rect Icon: Move from qmldesigner to coreAlessandro Portale2016-04-114-5/+1
| | | | | | | | | | | | | | ..and re-use it in the imageviewer plugin Change-Id: I230bdf6917203c9f4e5ed08a0fdd13dfca8b9749 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>