summaryrefslogtreecommitdiffstats
path: root/tests/manual
Commit message (Collapse)AuthorAgeFilesLines
* Add missing qquaternion.h includesMarc Mutz5 days2-0/+6
| | | | | | | | | | | | | | | | | | | The qquaternion.h include will vanish from qmatrix4x4.h soon, but some TUs depended on on the transitive include. This patch includes qquaternion.h into all TUs that use QQuaternion, but didn't include its header. I didn't check all the individual TU's history to make a detailed "amends", so I'll just pick this all the way back, knowing there may have been more users in older branches, or some TUs don't exist there, but it since we're not picking the removal of qquaternion.h from qmatrix4x4.h further than 6.10, I don't need to do detailed checking. CI will tell me when something's wrong. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Icf0db8ba4f12421fd46f9d1041f235bf4cc2c12b Reviewed-by: Volker Hilsheimer <[email protected]>
* Reland: CMake: Annotate some qt_find_package calls with MODULEAlexandru Croitor11 days1-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A qt_find_package call first tries to find a Config package with the CONFIG mode option, and if not found, falls back to an arg-less mode which searches both Config and Find modules. For some packages, we know we want to find the Find module because there can't be a Config package, e.g our FindWrap modules or any of the other Find modules we carry in our cmake directory. So we should annotate these calls with MODULE. Aside from slightly faster configuration, there is another reason to do so. Future versions of CMake will automatically log find_package calls that have a state change (e.g. Not Found -> Found) into CMakeConfigureLog.yaml. Due to the Config-first logic in qt_find_package, we always unset the Foo_DIR variable if the Config package is not found. This means that there will be a constant build up of not-found messages in the log. Explicitly annotating the calls with MODULE will prevent this. Do that. This commit relands f1a59e974f013fcf8629d8cbacab58d895523100 This reverts commit 0ce82b78a35026cb56ff76d1c24b311008934a53. Pick-to: 6.10 Change-Id: I5d37579d2f4957215ce1475b5c0ec8509d77c83d Reviewed-by: Joerg Bornemann <[email protected]>
* Revert "CMake: Annotate some qt_find_package calls with MODULE"Alexandru Croitor2025-06-191-2/+2
| | | | | | | | | | | | | | | | | | | This breaks reconfiguring Qt in various ways, one of which is CMake Error at cmake/QtTargetHelpers.cmake:1557 (message): PkgConfig::ATSPI2 is not a valid target. This happens because pkg_check_modules sets ATSPI2_FOUND to 1, so qt_find_package thinks it shouldn't find the FindATSPI2.cmake module, which ends up not creating the ATSPI2 target. This reverts commit f1a59e974f013fcf8629d8cbacab58d895523100. Pick-to: 6.10 Fixes: QTBUG-137870 Change-Id: Ica74a236c6b1bb9d7ca9af29175cb2e84a93251b Reviewed-by: Fabian Kosmale <[email protected]> Reviewed-by: Joerg Bornemann <[email protected]>
* iOS: implement file icon providerVolker Hilsheimer2025-06-181-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | Move the existing QCocoaFileIconEngine into a separate file in the darwin platform code, from where we can use it from both the cocoa and the iOS theme. Refactor the implementation for macOS to create and retain the NSImage as a member of the engine, and cache the QPixmap when it's requested, reusing it as long as it has the correct size. The iOS implementation is similar, except we need to go through UIDocumentInteractionController to get the icons for the file's URL. Explicitly make sure that we maintain the aspect ratio of the image we get. Augment the iconbrowser manual test to generate temporary files with certain extensions, and include those in the UI, allowing us to test that the icons we get from QAbstractFileIconProvider match the file type. Fixes: QTBUG-134239 Change-Id: I8fb63b3c518a6eb200f5948a1c38fd485e3b1c6d Reviewed-by: Tor Arne Vestbø <[email protected]>
* CMake: Annotate some qt_find_package calls with MODULEAlexandru Croitor2025-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | A qt_find_package call first tries to find a Config package with the CONFIG mode option, and if not found, falls back to an arg-less mode which searches both Config and Find modules. For some packages, we know we want to find the Find module because there can't be a Config package, e.g our FindWrap modules or any of the other Find modules we carry in our cmake directory. So we should annotate these calls with MODULE. Aside from slightly faster configuration, there is another reason to do so. Future versions of CMake will automatically log find_package calls that have a state change (e.g. Not Found -> Found) into CMakeConfigureLog.yaml. Due to the Config-first logic in qt_find_package, we always unset the Foo_DIR variable if the Config package is not found. This means that there will be a constant build up of not-found messages in the log. Explicitly annotating the calls with MODULE will prevent this. Do that. Pick-to: 6.10 Change-Id: I465b015ac18f8a09b9a5c86cec7b6312a0bfbdf1 Reviewed-by: Alexey Edelev <[email protected]> Reviewed-by: Joerg Bornemann <[email protected]>
* tst_qpermissions_app_with_usage_descriptions: Force sign if already signedTor Arne Vestbø2025-06-161-1/+1
| | | | | Change-Id: I319248354780a30811d11096699aaeee9b8ba109 Reviewed-by: Alexandru Croitor <[email protected]>
* Fix build of RHI stereoscopic rendering manual test when missing VulkanTor Arne Vestbø2025-06-162-0/+6
| | | | | Change-Id: I450eee9084d20951efdde3ae24a25d5ebcc2d5a2 Reviewed-by: Eirik Aavitsland <[email protected]>
* rhi: Update the docs and manual test for geometry shadersLaszlo Agocs2025-06-117-30/+6
| | | | | | Task-number: QTBUG-137521 Change-Id: Ic9256eaaa55aef20c622429058fda9235c1f73c1 Reviewed-by: Andy Nichols <[email protected]>
* Fix various compiler warningsAhmad Samir2025-05-242-2/+1
| | | | | | | | | | | tst_QDebug: variable is only used conditionally tst_QTimeZone: fix string literal format QRhiWidgetPrivate: unused local variable `q` Change-Id: I8f9d7f86df2ff781f8ab64bee44dbebbe67eb6f3 Reviewed-by: Thiago Macieira <[email protected]>
* tests/manual/*: add missing includesAhmad Samir2025-05-242-0/+2
| | | | | Change-Id: Id3abd673d22bd6365bec4688c41c0b57d7aabc0b Reviewed-by: Thiago Macieira <[email protected]>
* wasm: Handle exceptions in promiseEven Oscar Andersen2025-05-191-0/+23
| | | | | | Fixes: QTBUG-136962 Change-Id: I2d33b0132a83945b476f0f47fa4697ddaa2374b3 Reviewed-by: Morten Johan Sørvig <[email protected]>
* Windows: Update layered state on creation instead of backingstore flushTor Arne Vestbø2025-05-181-2/+0
| | | | | | | | | | | | | | | | | | The WS_EX_LAYERED state of a window can be determined on creation, and the logic to do so should be centralized to QWindowsWindow::setWindowLayered, so that we don't have divergence. This fixes an issue where child windows would only support transparency if they had Qt::FramelessWindowHint set, as the QWindowBackingStore had a different idea about when to enable WS_EX_LAYERED than QWindowsWindow. Task-number: QTBUG-122590 Task-number: QTBUG-135859 Pick-to: 6.9 6.8 Change-Id: I453967a5a2ce8974cdd1dbf6e36327e97384c33d Reviewed-by: Oliver Wolff <[email protected]> Reviewed-by: Zhao Yuhang <[email protected]> Reviewed-by: Pavel Dubsky <[email protected]>
* For qdebug operator<< of pointer types, always check for nullptrDaniel Trevitz2025-05-171-4/+3
| | | | | | | | Also, use a consistent syntax for when the pointer is null. Fixes: QTBUG-135856 Change-Id: I2f5c80a5650b1be6cc0d70cde7cd1e1c1990df9a Reviewed-by: Christian Ehrlicher <[email protected]>
* Windows: Detect lack of WS_CLIPCHILDREN when adding child windowsTor Arne Vestbø2025-05-151-9/+0
| | | | | | | | | | | | | The lack of WS_CLIPCHILDREN will cause drawing artifacts, so ensure we have WS_CLIPCHILDREN in our native window manual tests, and warn if users inadvertently end up reparenting windows into a HWND that doesn't have WS_CLIPCHILDREN set. Change-Id: Ic4dac83882167562599d63f46232071c8c21b617 Reviewed-by: Zhao Yuhang <[email protected]> Reviewed-by: Wladimir Leuschner <[email protected]> Reviewed-by: Oliver Wolff <[email protected]> Reviewed-by: Pavel Dubsky <[email protected]>
* embeddedwindows: Build app as GUI app on WindowsTor Arne Vestbø2025-05-131-1/+1
| | | | | Change-Id: Ib5289e11ef3d53d038e01e17c76be6e14e48bf80 Reviewed-by: Volker Hilsheimer <[email protected]>
* CMake: Don't unconditionally enable the ASM languageJoerg Bornemann2025-05-022-2/+2
| | | | | | | | | | | | | CMake MR #10626 doesn't consider the MSVC compiler as valid assembler anymore, thus unconditionally requiring ASM breaks with CMake > 4.0.1 on MSVC. Enable ASM only on non-Android Unix. Remove the ASM language where it's not needed. Pick-to: 6.5 6.8 6.9 Change-Id: I5df71edfce0f4920e39262f722e4bf95a735f31b Reviewed-by: Alexandru Croitor <[email protected]>
* wasm: implement promise handler using suspendresumecontrolMorten Sørvig2025-04-151-24/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required to make sure we resume the wasm instance when a promise resolves. As a bonus QWasmSuspendResumeControl already implements the JS -> C++ callback mapping, and we can removed the fixed-4 ThunkPool which the current implementation is using. The implementation is straightforward, where the only snag is that cleanup must be done in the finally callback. Implement Promise::all by calling JS Promise.all(). This function returns a new Promise, which we can adopt. Make two changes to the test: - remove throwInThen(): We no longer support propagating JS exceptions from the then() handler to the catch function. (catching a rejected promise still works). As far as I can see this functionality is not used in qtbase. - In finallyWithThen(), change shared_ptr<bool> to plain pointer. This works around a (mysterious) issue where we were not getting the correct value when reading from the shared_ptr. Change-Id: I8fb11b66ecba74f80708bd39eeeac59bb62f3786 Reviewed-by: Lorn Potter <[email protected]>
* Include <QTest>, not <QtTest>Giuseppe D'Angelo2025-04-102-2/+2
| | | | | | | | | | Avoid module-wide inclusions for QtTest. The transitive inclusions eat a considerable amount of compilation time. Task-number: QTQAINFRA-7110 Pick-to: 6.9 6.8 Change-Id: Ic1c93b40b638ea5bff739be212f173457bae26aa Reviewed-by: Thiago Macieira <[email protected]>
* Android tests: Fix for moving file in content URI testBartlomiej Moskal2025-04-071-3/+7
| | | | | | | | | | | | | | | In Android's manual URI content test, there is a test case for moving a file to another directory. While the function works and the file is moved correctly, the URI is no longer usable after this operation. The file must be reopened with a new URI. This commit updates fileOperations test case to use the new URL after moving file to another directory Pick-to: 6.9 6.8 Fixes: QTBUG-134881 Change-Id: I114d76d6851815e7ee3d94ddc28d677d7c1ccea9 Reviewed-by: Assam Boudjelthia <[email protected]>
* CMake: Make the plugandpaint example runnable without installationJoerg Bornemann2025-04-031-1/+1
| | | | | | | | The extrafilters DLL must be placed in the plugins directory to be found. The QMake build is correct in that regard. Change-Id: Ic1652e008148f3dfa36558b82d8bc8ddb08c1e99 Reviewed-by: Oliver Wolff <[email protected]>
* windowflags: Remove unused argument in paintEventTor Arne Vestbø2025-03-171-1/+1
| | | | | Change-Id: I2deee9e334e0944913eae28a5992015a613db149 Reviewed-by: Assam Boudjelthia <[email protected]>
* windowflags manual test: Add option to force window recreationTor Arne Vestbø2025-03-172-0/+10
| | | | | | | | | | | | | Not all flags have an affect on an already created window, depending on the platform and existing flags. Add option to force recreating the window. To aid debugging we also now log platform destruction/recreation events. Pick-to: 6.9 Change-Id: I7822cb58eaed51d72ed4ea3244f1f4113964cff7 Reviewed-by: Volker Hilsheimer <[email protected]> Reviewed-by: Oliver Wolff <[email protected]>
* Make dprgadget manual test directly openable in CreatorMitch Curtis2025-03-121-0/+6
| | | | | | | | | This avoids the need to run qt-cmake-standalone-test and then import the test, as described in QTCREATORBUG-25389. Pick-to: 6.9 6.8 6.5 Change-Id: Ie9694569c24dc0c714c2538819e7d9d8ff7e44e4 Reviewed-by: Morten Johan Sørvig <[email protected]>
* wasm: add test for QWAsmSuspendResumeControlMorten Sørvig2025-03-034-0/+183
| | | | | | | Test via QWasmTimer and native timers. Change-Id: Ie1ad8517de83e4ad50a7cdc7c391c34226261aef Reviewed-by: Jøger Hansegård <[email protected]>
* Build colormanagement manual test app as application bundle on macOSTor Arne Vestbø2025-02-201-0/+1
| | | | | Change-Id: Idf98eeacad5275b006615daaf53ea38a203307a1 Reviewed-by: Allan Sandfeld Jensen <[email protected]>
* Improve hinted rendering quality on WindowsEskil Abrahamsen Blomfeldt2025-02-075-0/+447
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When rendering hinted text on Windows with DirectWrite, the goal was to keep the rendering and metrics as close to GDI as possible, minimizing the impact of changing the default font backend. Therefore, the DWRITE_RENDERING_MODE_GDI_CLASSIC was always preferred when hinting was on. However, DWRITE_RENDERING_MODE_GDI_CLASSIC only applies antialiasing in the horizontal direction, but GDI applies vertical antialiasing as well. The result is that text will look more aliased with DirectWrite than it did with GDI, which arguably looks ugly especially at large sizes and can be perceived as a regression. Microsoft documentation recommends using symmetric antialiasing when the pixel size exceeds 16, so this patch enables DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC for fonts larger than 16px regardless of whether hinting is on. It's worth noting that for fonts with heavy hinting, such as Times New Roman, the rendering using DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC is different from GDI, although more similar to Freetype. However, the impact of not having vertical antialiasing is worse and as native apps are moving towards using DirectWrite, the GDI rendering is not going to be the definition of a "native" look anymore. A second thing to note in this patch is that we always pass in false for the useGdiNatural argument in GetGdiCompatibleGlyphMetrics(). According to the documentation, we should be passing in true for text rendered with CLEARTYPE_NATURAL_QUALITY. However, doing this causes wider kerning in certain cases. Since the tighter kerning matches the layouts we get in native apps, as well as when using Freetype, I've chosen to pass false for now, to be consistent. This change also adds a manual test which can be used to switch between DirectWrite, GDI and Freetype rendering on Windows, so that it's easy to compare. [ChangeLog][Windows] Improved hinted text rendering at font sizes larger than 16px. Pick-to: 6.8 6.9 Fixes: QTBUG-131946 Change-Id: Iebbe5c7affe7df6266ade6b161c31bde3d2caa84 Reviewed-by: Eirik Aavitsland <[email protected]> Reviewed-by: Oliver Wolff <[email protected]>
* Add option to enable/disable tracking in nativetext manual testTor Arne Vestbø2025-02-041-1/+12
| | | | | | | | Only applies to Qt for now, as I didn't find a way to toggle this for CoreText. Change-Id: I79d3da1cf968bd9e5ae756f7633a0c58a227ffd2 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
* Show active font in nativetext manual testTor Arne Vestbø2025-01-311-1/+2
| | | | | Change-Id: Icdb95fd9318f2401b13aaf0b250403783d887b1d Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
* Enable emoji insertion menu item for nativetext manual testTor Arne Vestbø2025-01-311-0/+4
| | | | | Change-Id: I5a8a2179d60ca352da88dc45e42de87b81c6eca4 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
* wasm: support foreign windowsMorten Sørvig2025-01-293-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for embedding native html elements using QWindow::fromWinId(). WId is an emscripten::val *, e.g. a pointer to val which holds a html element. The element can be created either from C++ using emscripten::val, or from JavaScript. User code owns the val * as usual for WId; ownership is not passed to the QWindow instance. Set QWasmWindow::m_window to be the native element when fromWinId() is used, and skip the rest of the QWasmWindow implementation in that case: We don't need to install event handlers or provide accessibility elements. Make key and pointer event handlers stop propagation only if the event was not accepted. This makes sure that input events reach the embedded native element. Limit setPointerCapture calls to when the event is targeted for Qt elements only. Determining the true target can be a bit tricky when shadow DOM is in use since the browsers may retarget the event. Use composedPath() to get the true event target. Task-number: QTBUG-128804 Task-number: QTBUG-128732 Change-Id: I5ce66e93bacb06abfd042916687cd45fc9588c51 Reviewed-by: Morten Johan Sørvig <[email protected]>
* Make module ready for source SBOM checkingLucie Gérard2025-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This includes: - turning VERIFY_SOURCE_SBOM ON - adding exception to the licenseRule.json files - correcting the licensing given via REUSE.toml files - renaming license files not located in LICENSES folder. They need to be named LICENSE. to be ignored by reuse and excluded from the source SBOM. The name are updated in the corresponding qt_attribution.json A lot of files are skipped during the license test, but all are present in the source SBOM. This is why correction are needed before turning the source SBOM check on. [ChangeLog][Third-Party Code] Renaming the license files with prefix LICENSE. to have them ignored by reuse tool. Task-number: QTBUG-131434 Pick-to: 6.9 Change-Id: Iab517215bb10a17357d2d2436bba8d3af76e5cd1 Reviewed-by: Joerg Bornemann <[email protected]>
* rhi: Introduce a way to enumerate adapters/physical devicesLaszlo Agocs2025-01-231-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requesting a given "adapter" (or whatever the native equivalent of that is, e.g. a VkPhysicalDevice with Vulkan) has already been possible either via the index-based environment-variables (QT_D3D_ADAPTER_INDEX and QT_VK_PHYSICAL_DEVICE_INDEX), or by passing in a VkPhysicalDevice in QRhiVulkanNativeHandles or an adapter LUID in QD3D1xNativeHandles to create(). (the latter is what QQuickGraphicsDevice's fromAdapter() or fromPhysicalDevice() builds on, and is one of the enablers for the OpenXR integration in Qt Quick 3D for instance) There was however no way to enumerate the adapters via QRhi APIs, in order to implement something such as "iterate through the available adapters and choose one from the list", without resorting directly to DXGI or Vulkan. This is what enumerateAdapters() enables now. Implemented for D3D11, D3D12, and Vulkan. There are no plans to implement it for others for now. (meaning the resulting list is always empty then) For symmetry, it is also possible to get a single QRhiAdapter based on a provided native adapter identity (i.e, LUID or VkPhysicalDevice), although in practice that is just a heavier way to achieve the same that was already possible by passing those native handles directly to create() instead of going through a QRhiAdapter. [ChangeLog][RHI] Introduced enumerateAdapters() in QRhi to provide a an abstraction for enumerating adapters (physical devices) with Direct 3D and Vulkan. Fixes: QTBUG-129932 Change-Id: I072553afe594cbad6ebfa1ffe849a782c4c181db Reviewed-by: Andy Nichols <[email protected]> Reviewed-by: Kristoffer Skau <[email protected]>
* Make iconbrowser manual test directly openable in CreatorMitch Curtis2025-01-221-0/+6
| | | | | | | | | This avoids the need to run qt-cmake-standalone-test and then import the test, as described in QTCREATORBUG-25389. Pick-to: 6.9 6.8 Change-Id: I010d6613debb2e34ef3809d2da78ca33ade4d602 Reviewed-by: Volker Hilsheimer <[email protected]>
* Remove manual test Delegate as irrelevantFrédéric Lefebvre2025-01-175-103/+1
| | | | | | | | | | | Tests QLineEdit and QComboBox in a QStyledItemDelegate. Seems more like a bug reproducer. Remove delegate manual test as irrelevant. Change-Id: I17ae04716641aa4ad0ca932db640be71636ddf31 Reviewed-by: Thorbjørn Lund Martsum <[email protected]> Reviewed-by: Richard Moe Gustavsen <[email protected]>
* Remove tst_inputMethodHints manual test as brokenFrédéric Lefebvre2025-01-148-268/+0
| | | | | | | | | | | | Tests input method hints, but currently does not work and does not check these properly. Remove as broken/irrelevant Change-Id: Iad1bc2a14d2e69b13b7f882b1191d3b810c26c43 Reviewed-by: Miikka Heikkinen <[email protected]> Reviewed-by: Volker Hilsheimer <[email protected]> Reviewed-by: Edward Welbourne <[email protected]>
* Remove broken/bugged manual test setScreenFrédéric Lefebvre2025-01-095-128/+2
| | | | | | | | | Remove the broken/bugged manual test setScreen. To be determined if it should be fixed and kept or discarded. Change-Id: I036725c4b17051c49b66e29649ab14c1c23a1cb5 Reviewed-by: Volker Hilsheimer <[email protected]>
* Remove tst_manual_toplevel manual test as irrelevantFrédéric Lefebvre2025-01-095-38/+0
| | | | | | | | | | | | Top level widget that can receive paint events. This manual test seems irrelevant. Shows an empty widget topLevel. Remove tst_manual_topLevel manual test. Change-Id: Id9b037067cf79ea516e5e7d18c281f9e1d2f14c2 Reviewed-by: Richard Moe Gustavsen <[email protected]>
* Remove tst_manual_qsslsocket manual test as irrelevantFrédéric Lefebvre2025-01-065-148/+0
| | | | | | | | | | | | Tests several sockets, similar tests are done in the auto-test tst_qsslsocket. Behaves like an auto-test. Irrelevant to be kept as an individual manual test. Change-Id: I53b32463da2f2f8a8a0a13be542420a528a6895a Reviewed-by: Mårten Nordheim <[email protected]> Reviewed-by: Timur Pocheptsov <[email protected]>
* Windows: Add Key_Backtab as possible key combination for Shift+TabMorteza Jamshidi2025-01-061-0/+2
| | | | | | | | | | | In windows Backtab key event always comes as "Shift+Backtab". So in order for Backtab key to be recognized as a shortcut sequence, we also consider Backtab without shift modifier a possibility. Fixes: QTBUG-94890 Change-Id: I20a7b404b57d8df5bea23765257a178f2e098ed0 Pick-to: 6.8 Reviewed-by: Oliver Wolff <[email protected]>
* Build the manual lance testGiuseppe D'Angelo2025-01-022-5/+21
| | | | | | | | | | | It had been excluded from the manual tests with a strange comment in the CMakeLists.txt -- e0fb295aad0063410aca3b2a109a7cda15628bda already ported the code away from QGL and to QOpenGL* classes. Fix a couple of discarded QFile::open usages. Change-Id: I248dabd706f34305b7120d3aaf36120040afc08c Reviewed-by: Eirik Aavitsland <[email protected]>
* QTextStream: use new operator bool() around the codeTatiana Borisova2025-01-021-3/+2
| | | | | | | | | | | - After adding the QTextStream::operator bool(), it is not required to check the QTextStream::status(). It is enough to use the reference of stream in the statement, which returns true if stream status is OK. New operator usage makes code more convenient. Task-number: QTBUG-52189 Change-Id: Id9ecaa8a5c9cf1931dbeefa85f9d948d15379a82 Reviewed-by: Marc Mutz <[email protected]>
* Document that QPlatformTheme::standardPixmap should always be a 1x pixmapTor Arne Vestbø2024-12-161-1/+2
| | | | | | | | | | | | | | | This reverts 59bbfb17db563d7e62b9f3158dab3cc6e7e68acd and c853054910552f5fef04797222dde0d29a0c340d, as that approach was causing issues for QCommonStyle::iconFromWindowsTheme, for example in situations where the system has a 1x and 2.5x screen, and the user requests a 16x16 pixmap or icon via QStyle::standardPixmap or QStyle::standardIcon. In that situation our smallest pixmap is 40x40, and we need to downscale, causing blurred results on a 1x screen. Pick-to: 6.9 Change-Id: Ifa6e15d37d15954df689253c32eaa779885c567b Reviewed-by: Volker Hilsheimer <[email protected]>
* Remove sizeOnHide manual test as irrelevantFrédéric Lefebvre2024-12-105-117/+1
| | | | | | | | | | | Show and Hide two elements from a vertical layout, keeping the empty space when hidden. Remove sizeOnHide manual test as irrelevant. Change-Id: If833569099dbe7cf23cd06a9a768b1787c99de39 Reviewed-by: Richard Moe Gustavsen <[email protected]> Reviewed-by: Thorbjørn Lund Martsum <[email protected]>
* Remove task14109 manual test as irrelevantFrédéric Lefebvre2024-12-094-46/+0
| | | | | | | | | | | | Tests setAttribute (Qt::OpaquePaintEvent) and setAttribute (Qt::StaticContents) on a widget. Remove task14109 manual test as irrelevant. Change-Id: I2292c4b45bfadb847c23250a94d9bfeecaa47343 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]> Reviewed-by: Richard Moe Gustavsen <[email protected]> Reviewed-by: Axel Spoerl <[email protected]>
* Remove tst_manual_childwidget manual test as irrelevantFrédéric Lefebvre2024-12-095-88/+1
| | | | | | | | | | | Test child widgets (on of which is native) with set cursors. Similar test as tst_QWidget::setCursor(). Remove tst_manual_childwidget manual test. Change-Id: Id9f0cf9cdb83ad86534761cf35b5359911a5cc8f Reviewed-by: Richard Moe Gustavsen <[email protected]>
* wasm: Don't hardcode ASYNCIFY 1Morten Sørvig2024-12-023-35/+0
| | | | | | | | | Build for the "default" config only, which can be asyncyfy 0,1, or 2 depending on Qt build configuration. Change-Id: I29d9a11b30325491151fc4e621272e5390681fa7 Reviewed-by: Jøger Hansegård <[email protected]> Reviewed-by: Lorn Potter <[email protected]>
* Add Qt::Orientations based flip and flipped functionsAllan Sandfeld Jensen2024-11-2911-11/+11
| | | | | | | | Is easier to read and more bool-trap safe. Old form header deprecated from 6.10 Fixes: QTBUG-129575 Change-Id: Id785b9ce159007ce745c04120b2112c8bb9b0802 Reviewed-by: Volker Hilsheimer <[email protected]>
* iconbrowser: improve the QML UIVolker Hilsheimer2024-11-291-17/+38
| | | | | | | | | | | Set different icons on the button depending on whether it's checked or not (since in Qt Quick we always ask for QIcon's pixmap in the "Off" state), and use Qt Quick Controls and layouts instead of positioners for proper alignments of labels and text fields. Change-Id: I1c5bd368560042ec4af8cf4bf1b9104d0257ac40 Reviewed-by: Mitch Curtis <[email protected]> Reviewed-by: Tor Arne Vestbø <[email protected]>
* Remove tst_manual_scrollarea manual test as irrelevantFrédéric Lefebvre2024-11-274-49/+0
| | | | | | | | | | | | | | tst_manual_scrollarea assigns a scrollview that can receive paint events to a widget. Manual tests are seldom used and it seems irrelevant. Remove the manual test. Task-number: QTQAINFRA-6621 Change-Id: I34574424df98a949ee92291de4026a25b0592f02 Reviewed-by: Axel Spoerl <[email protected]> Reviewed-by: Richard Moe Gustavsen <[email protected]>
* QFontIconEngine: render named glyphs as icons, if possibleVolker Hilsheimer2024-11-271-1/+37
| | | | | | | | | | | | | | | | | If the QIcon::themeName matches an installed font, and if the name of the icon matches a named glyph in the font, then render that glyph as a painter path. Overrides of QFontIconEngine::text() take priority. Amend the manual test to allow specifying an icon theme on the command line, and render the named glyph also as text, as some icon fonts will define ligatures that turn the string into the corresponding icon. Task-number: QTBUG-102346 Change-Id: I788c6274322359955cbfe58175a2999a57cfce95 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>