summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* QtPrivate::ResultIteratorBase: use modernize comparisonsTatiana Borisova17 hours2-12/+22
| | | | | | | | | | | | | Replace class operators operator==(), operator!=() of QtPrivate::ResultIteratorBase to friend method comparesEqual() and Q_DECLARE_EQUALITY_COMPARABLE macro. Use QT_CORE_REMOVED_SINCE and removed_api.cpp to get rid of current comparison methods and replace them with a friend. Task-number: QTBUG-120304 Change-Id: Ib9a50a400df86d1dc034d2a0cfee804109a2b93f Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* QElapsedTimer: use new comparison helper macrosTatiana Borisova17 hours2-4/+20
| | | | | | | | | | | | | | | Replace public friend operators operator==(), operator!=(), of QElapsedTimer to the friend method comparesEqual(). Add compareThreeWay() for the <=> operator. Save friend bool Q_CORE_EXPORT operator<() method and add defined(__cpp_lib_three_way_comparison) condition for the C++20 spaceship operator. Task-number: QTBUG-120304 Change-Id: I575865403f4e333578ff174e8e6879e8925d4b09 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Add way to override when to show context menuVolodymyr Zibarov17 hours1-0/+40
| | | | | | | | | | | | | | | | Add Qt::ContextMenuTrigger enum used with QStyleHints::setContextMenuTrigger() to override default platform behavior when to trigger context menu event. The default is to show context menu on mouse press on UNIX systems and on mouse release on Windows. Give developer a possibility to override platform default behavior to make cross platform application that behaves the same way on all platforms Task-number: QTBUG-93486 Change-Id: Ic832d3d8a7c355a8adb46868fff9cfd19988cf3c Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Fix moc include for tst_qcomparehelpersMårten Nordheim26 hours1-1/+1
| | | | | | | The Q_OBJECT is in the header so it should use the moc_*.cpp form. Change-Id: I1aa91d9fd0013d7270d551326334ed4ee35f3c64 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* tst_qcomobject: Reduce size of Qt-namespaceMårten Nordheim26 hours1-2/+1
| | | | | | | | It is including the full test, which we normally don't do, and additionally included the main and the moc-include. Change-Id: I651d71848f070a9d0fd62e56ebd204f4c1ae232c Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
* CMake: Remove mention of tests/auto/other/atwrapperJoerg Bornemann3 days1-3/+0
| | | | | | | | This test was removed in commit eee4167a90c54fa48fb12252741720d9c56f5ec5. Change-Id: Id42634450242a0658bac603d7973b8f1e0e5b6c0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QDBusSignature: accept empty strings as validThiago Macieira4 days2-5/+14
| | | | | | | | | | | | | | | | QDBusSignature holds a D-Bus value of type SIGNATURE, which is zero or more signatures, not one or more. This changes the default constructor to create a valid signature, which we denote by not being a null QString. That means we need to use something other than the default constructor in our tests for attempting to pass invalid signatures. [ChangeLog][QtDBus][QDBusSignature] Fixed a bug that caused the class not to accept an empty string as a valid D-Bus SIGNATURE value. Fixes: QTBUG-124919 Pick-to: 6.5 6.7 Change-Id: I262c3499666e4f4fbcfbfffd17cb3793dcf2eae3 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* QMetaType: use modern comparisonsTatiana Borisova4 days3-11/+16
| | | | | | | | | | | | | Internal QPropertyBindingPrivatePtr, QArgumentType classes also have been updated; Replace class operators operator==(), operator!=() of QRegularExpression to friend method comparesEqual() and Q_DECLARE_EQUALITY_COMPARABLE macro. Task-number: QTBUG-120304 Change-Id: I010617cbcb8bd6afb7c21ee4345398648821f72c Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* QEasingCurve: use comparison helper macrosIvan Solovev4 days2-9/+18
| | | | | | | | | | | | Like with the QLine(F) case, we have to use QT_CORE_REMOVED_SINCE to remove the old member operators, but also need to guard the new friend functions with !(QT_CORE_REMOVED_SINCE), because QEasingCurve is also one of the core types, and on Windows the metatype interface for it is instantiated in removed_api.cpp. Task-number: QTBUG-120308 Change-Id: I1bd66f7230afd3eba868d05fd496ab13a0331178 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
* QMarginsF: add qFuzzyCompare and qFuzzyIsNull overloadsIvan Solovev4 days1-0/+45
| | | | | | | | | [ChangeLog][QtCore][QMarginsF] Added qFuzzyCompare and qFuzzyIsNull overloads for QMarginsF Task-number: QTBUG-120308 Change-Id: I7c1ceaa9ba544458738b71bf326395eef59e7a54 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QMargins(F): use comparison helper macrosIvan Solovev4 days1-0/+8
| | | | | | | | | | | | Also explicitly add QMarginsF vs QMargins comparison. Previously such comparison was implicitly converting QMargins to QMarginsF, and doing the fuzzy comparison. We have to keep the old behavior to avoid breaking user code, so use fuzzy comparison in the new operators as well. Task-number: QTBUG-120308 Change-Id: Ic82f64078cd991859b851f24aa7017ef0b91a4e1 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
* Fix QMarginsF::operator==() for zero marginsIvan Solovev4 days2-0/+48
| | | | | | | | | | | | | | | The (in)equality operators for QMarginsF are documented to use fuzzy comparison. However, the implementation unconditionally used qFuzzyCompare which is incorrect for the case of 0 margins. Update the implementation to use a combination of qFuzzyIsNull and qFuzzyCompare, like it's done for QPointF. [ChangeLog][QtCore][QMarginsF] Fixed a bug when equality comparison returned incorrect results if one of the margins was zero. Task-number: QTBUG-120308 Change-Id: I6e785fe8b523f6aa5f5317fb75877fdbf4e086c2 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
* QRectF: add qFuzzyCompare and qFuzzyIsNull overloadsIvan Solovev4 days1-0/+25
| | | | | | | | | [ChangeLog][QtCore][QRectF] Added qFuzzyCompare and qFuzzyIsNull overloads for QRectF Task-number: QTBUG-120308 Change-Id: Ie2eee0a28b902bdfeb91be45a164be659aef1a20 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QRect(F): use comparison helper macrosIvan Solovev4 days2-0/+69
| | | | | | | | | | | | | | Also explicitly add QRectF vs QRect comparison. Previously such comparison was implicitly converting QRect to QRectF, and doing the fuzzy comparison. The new operators are directly calling operator==(QPointF, QPoint), which also does the fuzzy comparison, so the old behavior is preserved. As a drive-by: move the operators into the private section. Task-number: QTBUG-120308 Change-Id: I9b96ed4266e6a6c02a52c8cfff6ec1b2d036a7ca Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
* QLineF: add qFuzzyCompare and qFuzzyIsNull overloadsIvan Solovev4 days1-0/+27
| | | | | | | | | [ChangeLog][QtCore][QLineF] Added qFuzzyCompare and qFuzzyIsNull overloads for QLineF Task-number: QTBUG-120308 Change-Id: I3d032f47851d886adce95ac72109fde169892688 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Fix QLineF::isNull behavior when handling zero pointsIvan Solovev4 days1-2/+28
| | | | | | | | | | | | | | | | | QLineF::isNull was using qFuzzyCompare on the x and y components of its points, which was not working correctly if some of the components was equal to zero. The correct approach is to use qFuzzyIsNull togeter with qFuzzyCompare. This approach is already implemented in qFuzzyCompare() overload for QPointF, so just use it. Add unit-tests for QLine(F)::isNull. [ChangeLog][QtCore][QLineF] Fixed a bug when QLineF::isNull() returned incorrect result if the start or end point contained a zero component. Change-Id: I3cfe6406b1299de32fe82b1fcbfb0416f0eaac15 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QLine(F): use comparison helper macrosIvan Solovev4 days2-0/+74
| | | | | | | | | | | | | | | | | | | | | | | Also explicitly add QLineF vs QLine comparison. Previously such comparison was implicitly converting QLine to QLineF, and doing the fuzzy comparison. The new operators are directly calling operator==(QPointF, QPoint), which also does the fuzzy comparison, so the old behavior is preserved. Remove the old relational operators using QT_CORE_REMOVED_SINCE, but also wrap the new operators in !defined(QT_CORE_REMOVED_SINCE). That is required, because on Windows the instantiation of QMetaTypeInterface<QLine(F)> happens in removed_api.cpp (as both qline.h and qmetatype.h are already included there). If we just add removed member operators into removed_api.cpp, the metatype interface will not be able to create an equals() function, because of the ambiguity in equality operators (member vs friend). That's why we have to exclude the new friend operators from removed_api.cpp. Done-with: Fabian Kosmale <fabian.kosmale@qt.io> Task-number: QTBUG-120308 Change-Id: Ibbf5ec077f69c75da0d36a8be5596acd0fcd44d0 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
* Add qFuzzyCompare() and qFuzzyIsNull() overloads for QPointFIvan Solovev4 days1-0/+21
| | | | | | | | | | | Use the new qFuzzyCompare() overload in op==(QPointF, QPointF). [ChangeLog][QtCore][QPointF] Added qFuzzyCompare() and qFuzzyIsNull() overloads for QPointF. Task-number: QTBUG-120308 Change-Id: I522164acb65432bf55c58b55575f25535d27e27a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QPoint(F): use comparison helper macrosIvan Solovev4 days4-17/+39
| | | | | | | | | | | | | | | Explicitly add QPointF vs QPoint comparison. Previously such comparison was implicitly converting QPoint to QPointF, and doing the fuzzy comparison. We have to keep the old behavior to avoid breaking user code, so explicitly use fuzzy comparison in the new operators. As a drive-by: move the friend functions into the private section, so that they are actually hidden friends. Task-number: QTBUG-120308 Change-Id: I471a890b8332455e8b2dc1b99e5fba4ada168a30 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
* wasm: Allow fetching from background threadPiotr Wierciński4 days1-2/+0
| | | | | | | | | | | | | | | | | Allow network request from background thread by proxing it to main thread if needed. Introduce "fetchHelper" which is stored on heap and owns "outgoingData" which must be valid during entire fetch operation. It is also used for synchronization between thread that has scheduled fetch operation and the one that is executing it. Enable the test that was skipped before fix. Fixes: QTBUG-124111 Change-Id: Ifafa4c40fa435122639fa861a61fbf96340a7747 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
* Improve test compilation setup with QtLite configurationJari Helaakoski4 days4-6/+64
| | | | | | | | Functional fix will come later via separate tasks. Task-number: QTBUG-122999 Change-Id: Ib805740c87ff21cea5a186add71cc594ab4d4df1 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* ptests: Change qdbusconnection to search testdata from parent pathAri Parkkila4 days1-1/+1
| | | | | | | | | | | | The qdbusconnection_spyhook test includes qdbusconnection which uses QFINDTESTDATA to find qdbusconnection.conf, but TESTDATA search path is not valid when qdbusconnection_spyhook is installed via packaging. Because the qdbusconnection and qdbusconnection_spyhook tests have common parent folder use it as base for TESTDATA search. Task-number: QTBUG-118680 Change-Id: I6657ddb0e650d49f214c5651ee8bcf8ca03db4e2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* ColorScheme: make QStyleHints::colorScheme writable for applicationsVolker Hilsheimer5 days1-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applications can request the color scheme to be either explicitly light or dark, or to follow the system default by setting the scheme to Qt::ColorScheme::Unknown. Setting the color scheme will make the request to the QPlatformTheme implementation, which can then use the appropriate implementation to set the application's appearance so that both palette and window decoration follow the requested color scheme. This should trigger theme change and palette change events. A change to the effective scheme should then call back into QStyleHintsPrivate::updateColorScheme, which will emit the changed signal for the property. Implement this for macOS (Cocoa), iOS, Android, and Windows. On macOS, we have to use deprecated AppKit APIs; the replacements for those APIs are not suitable for this use case. On iOS, the setting is for each UIWindow, which we can update or initialize based on an explicitly requested scheme. On Android we can piggy-back on the logic added when dark theme support was introduced in b4a9bb1f6a40e6d504c1f48f0d9ea2b70ab1a9f0. On Windows, we have to fake a dark palette if the dark scheme is requested on a light system, as there is no API to read a dark palette. However, we also have to ignore any application preference if a high- contrast accessibility theme is selected by the user (we report the color scheme as unknown; there are both light and dark high-contrast themes), and read the system palette using the GetSysColor API, which is used for light mode. And we need to initialize windows with the correct frame if the application explicitly overrides the system color scheme. Add an auto-test to the QApplication test, as that gives us the most coverage to confirm that QStyleHints emits the changed signal, and that Theme- and PaletteChange events are received by the toplevel widget when the color scheme actually changes. This test has to be skipped on platforms where we cannot set the color scheme programmatically. Add the option to explicitly select the color scheme to the widget gallery example, and default it to dark mode. Fixes: QTBUG-124490 Change-Id: I7302993c0121284bf9d3b72e3149c6abbe6bd261 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* tst_QDnsLookup: add debugging information with the query timeThiago Macieira5 days1-0/+3
| | | | | Change-Id: I455fe22ef4ad4b2f9b01fffd17c805aa76d2b314 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* QDnsLookup: add support for TLSA recordsThiago Macieira5 days1-1/+17
| | | | | | | | | [ChangeLog][QtNetwork][QDnsLookup] Added support for querying records of type TLSA, which are useful in DNS-based Authentication of Named Entities (DANE). Change-Id: I455fe22ef4ad4b2f9b01fffd17c723aa6ab7f278 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* QDnsLookup: implement DNS-over-TLSThiago Macieira5 days1-16/+71
| | | | | | | | | | | | | | | For the libresolv (Unix) implementation, we already had the packet prepared by res_nmkquery(). This commit moves the res_nsend() to a separate function so QDnsLookupRunnable::query() can be more concise. On the Windows side, this commit creates a separate function for the DoT case, because we now need to use two other functions from WinDNS so we can create a query and parse the reply. The rest is just QSslSocket. Change-Id: I455fe22ef4ad4b2f9b01fffd17c805a3cb0466eb Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* QDnsLookup: add initial support for DNS-over-TLS (DoT)Thiago Macieira5 days1-10/+45
| | | | | | | | | | | | | This is just an empty shell for now. The implementation will come in the next commit. [ChangeLog][QtNetwork][QDnsLookup] The class now supports DNS-over-TLS and some other DNSSEC experimental features, on some platforms. Use QDnsLookup::isProtocolSupported to know if the protocol is supported on a given platform. Change-Id: I455fe22ef4ad4b2f9b01fffd17c7e034dee75533 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* QStaticLatin1StringMatcher: add indexIn(QStringView)Ahmad Samir6 days1-0/+124
| | | | | | | | ... mirroring the same change in QLatin1StringMatcher. Task-number: QTBUG-117054 Change-Id: I8d1f4ed01ee75a51e3d99a165dbb35ae7dae5886 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* QFuture::const_iterator: use modernize comparisonsTatiana Borisova6 days2-10/+19
| | | | | | | | | | Replace class operators operator==(), operator!=() of QFuture::const_iterator: to friend method comparesEqual() and Q_DECLARE_EQUALITY_COMPARABLE macro. Task-number: QTBUG-120304 Change-Id: Ifa264b83f4d5623db99820847ab9a800cca99be2 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* QWidget: fix render() in RTL modeChristian Ehrlicher6 days1-0/+42
| | | | | | | | | | | | | | | Rendering a widget to a paintdevice via QWidget::render() did not pass the LayoutDirection mode of the widget to the paintdevice which lead to wrong rendering of text. This is especially visible with the windows 11 style which does not draw some widgets directly on the screen but through a QGraphicsEffect on a QImage. Pick-to: 6.7 6.5 6.2 Fixes: QTBUG-124931 Change-Id: If2cfa326d2ca45c42e203a4ae91fd857afa5c69c Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Wladimir Leuschner <wladimir.leuschner@qt.io>
* iOS: Always call setParent during QIOSWindow constructionTor Arne Vestbø6 days1-0/+6
| | | | | | | | | | | | | We rely on setParent for parenting top level windows into our desktop manager view, so we can't condition the call on having a parent window, like we do on other platforms. This was a regression from 988039729f55a5e62e32b82c6f29ff7457e91d9d. Fixes: QTBUG-125142 Pick-to: 6.7 Change-Id: I2884d77db09cba5371ccd77eabda7ce38c0292de Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* QLatin1StringMatcher: add indexIn(QStringView) overloadAhmad Samir6 days1-17/+58
| | | | | | | | | | | | Drive-by changes, remove a redundant typedef. [ChangeLog][QtCore][QLatin1StringMatcher] Added indexIn(QStringView) overload. Task-number: QTBUG-117054 Change-Id: I5a8426cb0f9d9111f086015902ffe2185a267c86 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>
* tst_QApplication::focusWidget() remove setActiveWindow() child sectionFrédéric Lefebvre6 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ib3b39f4bd51c87eeeebe329ada163f24390f6bc3 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Add copyright and licensing to .bat files missing themLucie Gérard6 days3-2/+8
| | | | | | Task-number: QTBUG-124453 Change-Id: I8bd48ab5d5b18197ef5bf9a46edf49da86374bee Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add REUSE ignore commentLucie Gérard6 days1-1/+1
| | | | | | | | For those files, reuse fails to process the copyright and licensing information. The information is written to .reuse/dep5 file and reuse is told to ignore what is in the file. Task-number: QTBUG-124453 Change-Id: If593c713026d9d349055cb6e8e73500966a05d9b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Correct license for test filesLucie Gérard6 days18-18/+18
| | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Task-number: QTBUG-121787 Change-Id: I1da572cca6151d5fc6105f774731d11417025341 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* tst_QApplication::focusWidget() remove setActiveWindow()Frédéric Lefebvre6 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I160e71302b40777d13e2481447bc47ebfc1a784c Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QSpinBox::editingFinished() remove setActiveWindow()Frédéric Lefebvre6 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ib08791375e3984e7eda5b25ec6bac0b283ed80cc Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* SQL tests: Fix dropping procedures Firebird/IBaseChristian Ehrlicher6 days1-1/+4
| | | | | | | | | Firebird can not handle 'DROP PROCEDURE IF EXISTS' - need to call it unconditional without 'IF EXISTS'. Pick-to: 6.7 6.5 Change-Id: I530bcc2c756eed680a6fdaf27b3e3a0715f96bd4 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QThread/Unix: make QThreadPrivate::finish() be called much laterThiago Macieira7 days1-15/+59
| | | | | | | | | | | | | | | | | | | | We need it to run after all the thread-local destructors have run, to ensure that some user code hasn't run after QThreadPrivate::finish() has finished. We achieve that by making it get called from a thread-local destructor itself, in the form of a qScopeGuard. This ought to have been done since C++11 thread_local with non-trivial destructors became available. However, it only started showing up after commit 4a93285b166ceceaea2e10c8fc6a254d2f7093b9 began using thread_local inside Qt itself. The visible symptom was that QThreadPrivate::finish() had already destroyed the thread's event dispatcher, but some user code ran later and expected it to still exist (or, worse, recreated it, via QEventLoop → QThreadData::ensureEventDispatcher). Fixes: QTBUG-117996 Pick-to: 6.7 Change-Id: I8f3ce163ccc5408cac39fffd178d682e5bfa6955 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* QTextDocument: Add support for responsive imagesCarl Schwan7 days1-1/+65
| | | | | | | | | | | | | | | | Add support for the max-width css attribute in image. This allows images to be responsive: it adapts their size to the size of the QTextDocument so that they never grow bigger than the QTextDocument pageSize. This is implemented for the image handler used in QTextEdit and other QtWidget text related classes. [ChangeLog][QtGui][CSS] The max-width style can now be applied to <img/> to set the maximum width in pixels or percentage. Task-number: QTBUG-12283 Change-Id: Ic94e16279a1240ab4a509823de59dc0bfc920bb9 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* tst_QNetworkRequest: add test for operator==()Lena Biliaieva7 days1-0/+127
| | | | | | Task-number: QTBUG-107751 Change-Id: I4ed77b022f9e576f1363d55a05de6f6fad5b01dc Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
* CMake: Add `qt_add_ui` APIOrkun Tokdemir7 days44-0/+2242
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a new `qt_add_ui` CMake API to be used instead of AUTOUIC, due to several hard-to-fix bugs it has. * Resolves the issue where Ninja required two passes to correctly build `.ui` files. * Avoids build folder leakage, in contrast to `AUTOUIC` * Prevents unnecessary recompilation of unchanged source files when a `.ui` file is modified with Ninja. * Since `qt_add_ui` does not scan source files, it provides a faster build than `AUTOUIC`. These changes aim to streamline the build process and improve efficiency when working with `.ui` files. This addresses the following issues: https://gitlab.kitware.com/cmake/cmake/-/issues/16776 https://gitlab.kitware.com/cmake/cmake/-/issues/25436 https://gitlab.kitware.com/cmake/cmake/-/issues/25195 Task-number: QTBUG-110369 Fixes: QTBUG-114563 Change-Id: I34cd3df70542becf6e08502f0cbcd1c11eeeadd6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Exclude sync() usage from VxWorks platformTomasz Kozłowski7 days1-0/+2
| | | | | | | | | | This function is not available in VxWorks libraries and it is not mandatory for proper qstorageinfo test execution. Pick-to: 6.7 Task-number: QTBUG-115777 Change-Id: Ic503c776002087d461c32f890795c27be4b1ca34 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* tst_QGraphicsProxyWidget::tooltip_basic() remove setActiveWindow()Frédéric Lefebvre7 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I842e1c01007cc56e07a27a6e15ff173c4f6aece2 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Use QHttpHeaders: Update internal users of QNRequest, QNReply, QNProxyLena Biliaieva7 days2-53/+57
| | | | | | | | | | | | | Replace QNetworkHeadersPrivate's main headers storage, which was RawHeadersList, with QHttpHeaders. Replace internal usage of raw and cooked header methods with the QHttpHeaders API. [ChangeLog][QtNetwork][QNetworkRequest] Header value added by QNetworkRequest::setRawHeader() method is trimmed now. Task-number: QTBUG-107751 Change-Id: I8882978afa430651e6c798a4fed00beef6c4cfd2 Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
* tst_QResourceEngine: use both ways of registering dynamic resourcesThiago Macieira8 days1-2/+15
| | | | | | | | | So we test both the mmap()ed and non-mmap()ed versions. Will be important in the next commit. Change-Id: I6979d02a7395405cbf23fffd17c98f0e207477e6 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
* QVersionNumber: use new comparison helper macrosTatiana Borisova8 days2-154/+78
| | | | | | | | | | Replace public friend operators operator==(), operator!=(), operator<(), etc of QVersionNumber to friend methods comparesEqual() / compareThreeWay(). Task-number: QTBUG-120304 Change-Id: Ib94a1a28ca9843ca5d5a8d07f41c63de9fe584bb Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* tst_QTextBrowser::TextBrowser() remove setActiveWindow()Frédéric Lefebvre8 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ia006f35177f3c8b2cb3d7b8c6bbe3f24eb24d934 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* tst_QGraphicsProxyWidget::setFocus_simpleWidget remove setActiveWindowFrédéric Lefebvre8 days1-1/+0
| | | | | | | | | | | 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I3819874c2fdd78d733707a375a849a7876a30d9d Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>