summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/asynchronousimagecache-test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/10.0' into qds/devTim Jenßen2023-03-261-1/+1
|\ | | | | | | | | | | | | | | bigger conflicts resolved at: src/plugins/qmldesigner/CMakeLists.txt src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: I08e2a109d8e37cbd77225129854e9e633725bfc7
| * Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | QmlDesigner: Add midSize image to cacheMarco Bubke2023-01-261-3/+171
|/ | | | | | | | | | | There is now a mid size image in the image cache. It's logical size is 150x150, so it is 300x300 for HighDPI. Task-number: QDS-8918 Change-Id: I6586b2e82b9e74737f46b67c441201ad4964fca0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix warningsMarco Bubke2022-06-231-2/+2
| | | | | Change-Id: I49dc38853df77bcc4d72c64132700c6059fbd5d7 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Add AsynchronousImageFactoryMarco Bubke2022-01-041-5/+3
| | | | | | | | Task-number: QDS-5861 Change-Id: I3d938b3ddaa965da2105a326ea68f498dbb60fa0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Use optional for ImageCache*Marco Bubke2022-01-041-10/+10
| | | | | | | | There are now matcher in google test for optional. Change-Id: Ib3389fb0f537fd19a2930e7108483736bbba1628 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Sqlite: Remove flacky testMarco Bubke2021-12-141-28/+0
| | | | | | | | | Because we don't use the function we can remove it. Change-Id: I273a9b56589257b17499f41df02d5e40345f2d4b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Add an reason parameter to the image cache abort callbackMarco Bubke2021-02-011-8/+11
| | | | | | | | | | | Sometimes we abort the request, sometimes it failed. In the first case we maybe want the cancel the imageprovider request, in the second we return an empty image. Fixes: QDS-3388 Change-Id: Iaef76aa09ac734795f86447e1a7cf6a5c7b5ae81 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* QmlDesigner: Fix flacky test AsynchronousImageCache.WaitForFinishedMarco Bubke2021-02-011-1/+6
| | | | | Change-Id: I94afa8ec2925b85f5dbf44e7b2ad5db484f48148 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Improve imagecacheMarco Bubke2021-01-211-0/+467
Instead of coding some arguments to extraId(state) we provide now a std::variant there extra arguments can be saved. Because it's a std::variant it can be easlily extended by new structs. There is a new synchronous interface too. It has an extra method for QIcon which saves icons in an extra table. It would be even nicer if we would have a mipmap image too. So we could do it asynchonously too but so far it works only in the main thread. Task-number: QDS-3579 Fixes: QDS-3584 Change-Id: If368d84d82308a91a5f4f037021e749c9ef868ed Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>