summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc
Commit message (Collapse)AuthorAgeFilesLines
...
* Doc: Fix TypoOrkun Tokdemir2023-12-161-1/+1
| | | | | Change-Id: I2fd0e00358cfacb86f0d40109e7bac31354c86a5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Doc: fix links in QString::toLocal8Bit()Christian Ehrlicher2023-12-151-2/+2
| | | | | | | | | | \l must not be preceded by \c - qdoc will ignore \l otherwise. This amends 349bd4db22d057f3fc633f5522c53ad0bfb7bd6f Pick-to: 6.7 6.6 Task-number: QTBUG-111443 Change-Id: Ia1ab7c6bfe88c288ea14ee307c6a39c1c304ee6f Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Replace QPair with std::pair in the docsMarc Mutz2023-12-133-3/+3
| | | | | | | | | | | | | QPair _is_ std::pair. It's confusing that debuggers consistently show the real name, std::pair, while the API and docs continue to maintain the illusion that there is such a thing as QPair. Use std::pair everywhere. Pick-to: 6.7 6.6 6.5 Task-number: QTBUG-115841 Change-Id: I009e2fc415a79a74b583a13cf11e4ff9483a7f6b Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
* Doc: QIdentityProxyModel::itemData() should be reimplemented tooDavid Faure2023-12-111-1/+7
| | | | | | | | | | | | | | | | This is a "regression" (voluntary, known) from commit c27d2a57a441f9a1ce760e71635bd4c96882249d which changed QAbstractProxyModel::itemData() to call the source model's itemData(), so our data() reimplementation is no longer used. Of course this only matters if itemData() is actually called, which isn't the case in Qt itself. People will likely skip this if they don't care - but if itemData() is used in the project, then this shows how to reimplement it correctly. Pick-to: 6.7 6.6 Change-Id: I3acea16c05d30d7526bac32fd6cce42b5ad4b617 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add documentation for the private API QAtomicScopedValueRollbackRym Bouabid2023-12-071-0/+1
| | | | | | | | Task-number: QTBUG-115107 Pick-to: 6.6 6.5 Change-Id: Icdb09d803f1d789b91ae5c1806470d71adb59067 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* CMake: Add a way to pass additional arguments to win/macdeployqtJoerg Bornemann2023-12-072-0/+8
| | | | | | | | | | | | | | [ChangeLog][CMake] Added the DEPLOY_TOOL_OPTIONS argument to the functions qt_generate_deploy_app_script and qt_deploy_runtime_dependencies. It doesn't make sense to map every option of the deployment tools to arguments in our CMake deployment API. Allow the user to specify extra arguments to windeployqt or macdeployqt. Task-number: QTBUG-116551 Change-Id: I4cc67ab03f19101b695281e8c80f8af825bab7f6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QObject: allow calling findChild() without a nameRym Bouabid2023-11-221-1/+1
| | | | | | | | | | | Add an overload of findChild() without a name argument to be able to call the function with options value only. [ChangeLog][QtCore][QObject] Added findChild() overload taking no name. Task-number: QTBUG-103986 Change-Id: Id06b6041408fcf4cc1eeba975afce03f3a28f858 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Doc: Fix highlighting of serialization converter exampleKai Köhne2023-11-201-1/+1
| | | | | | | | | | Example got renamed in a9c47dde501d0e Pick-to: 6.5 6.6 Task-number: QTBUG-117220 Change-Id: Ia0f04332b189c163c6da38eee2aded4837512376 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Android: add opt-out for release package signingLaszlo Agocs2023-11-171-3/+28
| | | | | | | | | | | | | | | | Release and RelWithDebInfo builds always default to passing --release to androiddeployqt. There is an opt-in variable (QT_ANDROID_DEPLOY_RELEASE), presumably for Debug builds, but there is no opt-out for non-Debug builds. Instead, there is a hack for autotests. In addition to tests, there are situations during development where we want to deploy a release build, but do not have or want to set up the release signing infrastructure. Having a variable to opt-out is then very useful. Change-Id: I6c6b9aaccad7d9d4f86745f3ed7d3c475b383ad3 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* CMake: Document Android per-abi limitation of QT_ANDROID_EXTRA_LIBSAlexandru Croitor2023-11-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the per-abi external projects are built, specifying a dynamic path in QT_ANDROID_EXTRA_LIBS based on CMAKE_ANDROID_ARCH_ABI would not propagate that value back to the main project's deployment json file. While the actual library files would be copied into the apk, they would not be loaded because the generated libs.xml file would be missing per-abi entries in the 'bundled_libs' array (except for the main abi). Document that project developers should explicitly specify all the libraries in the property. androiddeployqt then takes care to filter out unsupported architecture libraries in each abi build dir, but it will still copy all of them into the final apk, as well as list all the architectures in libs.xml. A proper fix would be to generate additional files with information from each per-abi external project, that would then be read by androiddeployqt (basically merge specific target property info from each sub-project). Hopefully this can be done without introducing new API. Pick-to: 6.5 6.6 Fixes: QTBUG-117206 Task-number: QTBUG-118838 Change-Id: I181a170cffdb49b0b0d455d997cfae90ada312f0 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Mention QT_FORCE_FIND_TOOLS in QT_HOST_PATHAlexey Edelev2023-11-021-1/+4
| | | | | | | | | | | | Document requirement of setting the QT_FORCE_FIND_TOOLS option to ON to reuse the pre-installed Qt version when not cross-compiling. Task-number: QTBUG-118211 Pick-to: 6.5 6.6 Change-Id: Ia02abeaede583ca01f10187158da0f4bc86f9d1a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Dimitrios Apostolou <jimis@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Highlight some examples for 'Data Processing & IO' categoryKai Köhne2023-10-311-0/+6
| | | | | | | Pick-to: 6.5 6.6 Task-number: QTBUG-117220 Change-Id: I1bf8d36ae93b96da55d18c9545c942707834c114 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Rename Convert Example to Serialization ConverterEdward Welbourne2023-10-301-1/+1
| | | | | | | | | | | | The old name didn't say what sort of thing it was converting; and our guidelines for examples discourage using the word Example in the title. Also reword the description of the tool in the command-line parser and an assertion. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I6f52f5227362b4b807c8aabfd2103287af42bca0 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* QStringList: add filter(QStringMatcher) overloadAhmad Samir2023-10-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that users can pass a QStringMatcher to do the matching, change the existing overload to not use QStringMatcher. Thanks to Giuseppe D'Angelo for the idea of passing a QStringMatcher to filter instead of using a magic number to decide whether to use QStringMatcher or not. Results of running filter() and filter_stringMatcher, times are in msecs and this was compiled with gcc -O3: Without With QStringMatcher list10 0.00022 0.000089 list20 0.00040 0.00014 list30 0.00058 0.00018 list40 0.000770 0.00023 list50 0.00094 0.00027 list70 0.0012 0.00037 list80 0.0014 0.00041 list100 0.0018 0.00050 list300 0.0054 0.0014 list500 0.0091 0.0023 list700 0.012 0.0032 list900 0.016 0.0041 list10000 0.17 0.045 Drive-by change: optimize tst_QStringList::populateList(). [ChangeLog][QtCore][QStringList] Added filter(const QStringMatcher &) overload, which may be faster for large lists and/or lists with very long strings. [ChangeLog][Possible Performance Changes][QtCore][QStringList] Changed the implementation of filter(QStringView) overload to not use QStringMatcher by default. Using QStringMatcher adds overhead, so it is beneficial/faster when searching for a pattern in large lists and/or lists with long strings, otherwise using plain string comparison is faster. If using QStringMatcher makes a difference in your code, you can use the newly added filter(QStringMatcher) overload. Change-Id: I7bb1262706d673f0ce0d9b7699f03c995ce28677 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Rename the JSON Save Game Example to Saving a Game to FileEdward Welbourne2023-10-202-4/+2
| | | | | | | | | | | Partly because it also saves to CBOR, but also because our guidelines say to avoid using "Example" in the title. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Id858475a6b0474228cfe8044e188cc763f56e3a8 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* doc: improve property example slotSamuel Gaist2023-10-142-1/+7
| | | | | | | | | | | The current example shows a minimal implementation. However, neither this example nor the documentation explains what happens without the guard. Although it's not mandatory, the large majority of the time it's a good practice to have it. This patch improves this part. Change-Id: I411a9d66bd7d8ba16aac87e28b5cab219fd71a5d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Improve documentation for qInstallMessageHandler()Kai Köhne2023-10-131-23/+12
| | | | | | | | | | | | | | | | | | Mention that QtMessageHandler needs to be reentrant, as well as other caveats. Mention QLoggingCategory, so people do know that they don't have to necessarily implement their own handler to filter messages (and that not all messages reach the handler). Also mention qFormatLogMessage(). Finally, give a more useful example for a custom message handler that logs to a file. Note that the example leaks a file handle at exit, but that is arguably not that bad. Pick-to: 6.5 6.6 Change-Id: I5be44167b266c9bbdbb0e94806bb024c9b352a32 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Doc: Fix warnings and linking issuesTopi Reinio2023-10-093-5/+4
| | | | | | | | | | | | | | | | | | | | Remove or replace links to examples that were removed or moved under manual tests. Replace code snippets that were quoting the now-missing examples. Fix documentation of QSet::removeIf(). Fix typo in documentation macro: Unknown command '\examplecateogry'. Add qtopengl, qtshadertools dependencies to Qt Widgets documentation project to enable correct linking to those topics. Mark all documentation sets in qtbase as free of warnings. Pick-to: 6.6 6.5 Change-Id: I058cd5f2063aa933ea310bceff906f05422a7cb2 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* QStringConverter: clarify decode()/encode() API docsAhmad Samir2023-10-061-0/+24
| | | | | | | | | | | These methods return a struct which is implicitly convertible to QString/QByteArray respectively. Don't hide the return type from QDoc, this simplifies telling users what those methods return exactly. Fixes: QTBUG-117705 Pick-to: 6.6 6.5 Change-Id: Ibb22a1e54fffce8f5f20aaabe47983870ccfba1e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Revamp Bindable Properties exp: Revisit documentationRym Bouabid2023-10-051-1/+1
| | | | | | | | | | Remove "Example" from the title. Add \examplecategory Data Processing & I/O Fixes: QTBUG-114689 Pick-to: 6.6 6.5 Change-Id: I695df195819cc371d404c4c5f01a0c4830d9c438 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Remove Custom Type Example and Custom Type Sending ExampleRym Bouabid2023-10-042-12/+104
| | | | | | | | | | | | | | | | | | | | | The whole Q_DECLARE_METATYPE part is superfluous in these two examples, as QVariant works with any type as long as it is copy-constructible. And QVariant will call the equivalent of qRegisterMetaType, so that doesn't need to happen, either. Showing how to integrate the type with qDebug is fine in theory, but also a repetition of content that can be found in other places. Given that there isn't much else being shown in these two examples, it's better to remove them from examples and move them to manual tests. Some parts of "Custom Type Example" were used as snippets in other documentations under qtbase/src/corelib. So, they were added in customtypeexample.cpp file in the snippets folder. Fixes: QTBUG-117001 Pick-to: 6.6 6.5 Change-Id: I45b16338912e3f7394cbb5169642bd31af32d5e1 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Qt container documenation: Misc fix for std comparisonChristian Ehrlicher2023-10-031-4/+4
| | | | | | | | | std::map/multimap/unordered_map/unordered:multimap also need a 'Key'. Fixes: QTBUG-89904 Pick-to: 6.6 6.5 6.2 Change-Id: Ib653c941b671905762270c82218e50dfed8fc8c6 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Doc: QtCore: Fix documentation issuesTopi Reinio2023-10-021-1/+1
| | | | | | | | | | | | | | | * Fix references to Wait Conditions Example, Semaphores Example, and MIME Type Browser Example as they were renamed. * Rename 'Shared Memory' example as its title clashes with the title of another page (sharedmemory.html). src/corelib/global/qfloat16.cpp: * warning: Invalid '\relates' (already a member of 'qfloat16') Pick-to: 6.5 6.6 Change-Id: Ia28be8e3882a7ad1fadcdbd50a657705d58526bd Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
* Revamp Queued Custom Type Ex: Revisit the documentationRym Bouabid2023-10-021-4/+3
| | | | | | | | | | Remove "Example" from the title. Add \examplecategory {Data Processing & I/O}. Task-number: QTBUG-117147 Pick-to: 6.6 6.5 Change-Id: Ieaab75dedb60329dcdcbbcfe6e2ad360df4d98df Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Doc: state that models are not thread-safeMitch Curtis2023-10-021-0/+14
| | | | | | | Fixes: QTBUG-107598 Pick-to: 5.15 6.2 6.5 6.6 Change-Id: I0e7ea8d4b2094d92b3cad5eec5b30e6e3ac64018 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QSignalMapper: Fix compile error in snippetsTasuku Suzuki2023-09-261-1/+1
| | | | | | | Change-Id: I676cf8e120aedddc2565d2b08dae3f5ec612c1ec Pick-to: 6.6 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Doc: Fix typoPaul Wicking2023-09-251-1/+1
| | | | | | | | Pick-to: 6.6 6.5 Fixes: QTBUG-117482 Change-Id: I033b5bda78482a7b43fac365d5a781bc3fa27fad Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* QDataStream: Documentation fixChristian Ehrlicher2023-09-251-4/+4
| | | | | | | Fix the code snippets to match the Qt coding style. Change-Id: Id65d2253e620d217fa3ada7b82e28f4939336543 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Edit docs for QtCore QT_I18N_ CMake variables added in Qt 6.7Leena Miettinen2023-09-221-7/+7
| | | | | | | | - Fix punctuation and link errors. - Make wording more consistent. Change-Id: I5954a5c3129fdaf524918b2f1c60cc510374c505 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Doc: Edit CMake Qt6 Core variable docsLeena Miettinen2023-09-221-33/+33
| | | | | | | | Edit the docs for style and consistency. Pick-to: 6.6.0 6.6 6.5 Change-Id: I24fb7f8b833ae7e5adaca31811bd171d892c5907 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Un-deprecate qSwap()Marc Mutz2023-09-221-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems to have fallen prey to the mass-deprecation of <QtAlgorithms> in Qt 5.2. Since it didn't actually duplicate STL functionality, that was uncalled-for: Unlike std::swap(), it's ADL-enabled, so the docs were wrong to suggest replacing it with std::swap instead. In fact, the tony-table that 5957f245c6c77c98d7e90d614c9fe2cdbfe7e8e6 added to qalgorithms.qdoc didn't include qSwap(), yet, qSwap() was marked as deprecated. Un-deprecate and expand the discussion to more faithfully represent its value, without going into the depths of teaching how to swap correctly in C++ (link to boost.org and cppreference.com for that instead). Remove the example that used qSwap() on doubles, which is precisely _not_ how you should use it. Amends 5957f245c6c77c98d7e90d614c9fe2cdbfe7e8e6(!). [ChangeLog][QtCore] Un-deprecated qSwap(). Pick-to: 6.6 6.5 6.2 5.15 Change-Id: I4981005ba71b0d1824f2a46897145255fa66a7ea Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* CMake: Add I18N_NATIVE_LANGUAGE keyword to qt_standard_project_setupJoerg Bornemann2023-09-212-0/+28
| | | | | | | | | | | | | | [ChangeLog][CMake] Added variable QT_I18N_NATIVE_LANGUAGE to specify the native language that is used in the source code for translatable strings. [ChangeLog][CMake] Added keyword I18N_NATIVE_LANGUAGE to qt_standard_project_setup to conveniently set QT_I18N_NATIVE_LANGUAGE. Task-number: QTBUG-115845 Change-Id: I079256507685afe5eccda78beffff819292494bf Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Add I18N_LANGUAGES keyword to qt_standard_project_setupJoerg Bornemann2023-09-192-0/+36
| | | | | | | | | | | | | | | | | | | | | | [ChangeLog][CMake] Added variable QT_I18N_LANGUAGES to specify the languages that are used for i18n in the project. [ChangeLog][CMake] Added keyword I18N_LANGUAGES to qt_standard_project_setup to conveniently set QT_I18N_LANGUAGES. The call qt_standard_project_setup(I18N_LANGUAGES hi ho) sets the variable QT_I18N_LANGUAGES. The target finalizers use this variable to set up CFBundleLocalizations on Apple platforms. qt_add_translations will be extended to read QT_I18N_LANGUAGES as well to determine the names of .ts files if TS_FILES is not given. Fixes: QTBUG-116716 Change-Id: I76f0753d10efb9c32947d9239e43382c9d85eb51 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
* Doc: All overviews list categorizationJaishree Vyas2023-09-116-7/+6
| | | | | | | | | | | | The \generate list names are added for each categorized section with some explanation. Here, calling the overviews as explanations-(name of the section). The idea is to give general terms instead of specific phrases like 'core' etc, for better understanding. Task-number: QTBUG-115347 Pick-to: 6.5 6.6 Change-Id: I673e38c0e9193b7f7d54008bfcf82c2d3a10be3f Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Add static constexpr Boyer-Moore Latin-1 string matcherØystein Heskestad2023-09-071-0/+8
| | | | | | | | | | | | | | | | | | | | QStaticLatin1StringMatcher is a static templated Latin-1 Boyer-Moore string matcher which can be case sensitive or not. It should be used when the needle is known at compile time so there is no run-time overhead when generating the skip table. The convenience functions qMakeStaticCaseSensitiveLatin1StringMatcher and qMakeStaticCaseInsensitiveLatin1StringMatcher should be used to construct the matcher objects. Green Hills Optimizing Compilers are currently not supported. [ChangeLog][QtCore] Added QStaticLatin1StringMatcher, which can be used to create a static constexpr string matcher for Latin-1 content. Task-number: QTBUG-100236 Change-Id: I8b8eed1e88e152f29cbf8d36d83e410fafc5ca2c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Doc: remove erroneous statement that signals can't have return typesThiago Macieira2023-09-061-2/+1
| | | | | | | | | They can (it's just very, very unusual). Fixes: QTBUG-116695 Pick-to: 6.5 6.6 Change-Id: I2b24e1d3cad44897906efffd178178f1542e67f2 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Mark all of Qt as free of Q_FOREACH, except where it isn'tMarc Mutz2023-08-196-0/+12
| | | | | | | | | | | | | | | | | | | | | | The density of Q_FOREACH uses in this and some other modules is still extremely high, too high for anyone to tackle in a short amount of time. Even if they're not concentrated in just a few TUs, we need to make progress on a global QT_NO_FOREACH default, so grab the nettle and stick to our strategy: Mark the whole of Qt with QT_NO_FOREACH, to prevent new uses from creeping in, and whitelist the affected TUs by #undef'ing QT_NO_FOREACH locally, at the top of each file. For TUs that are part of a larger executable, this requires these files to be compiled separately, so add them to NO_PCH_SOURCES (which implies NO_UNITY_BUILD_SOURCES, too). In tst_qglobal.cpp and tst_qcollections.cpp change the comment on the #undef QT_NO_FOREACH to indicate that these actually test the macro. Task-number: QTBUG-115839 Change-Id: Iecc444eb7d43d7e4d037f6e155abe0e14a00a5d6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Doc: Fix introduction version of QT_DISCARD_FILE_CONTENTSUlf Hermann2023-08-181-1/+1
| | | | | | | | | | | It didn't actually land in 6.5. Amends commit 5a0dcda171772e75eeb22f719cec36ef8efe355d. Pick-to: 6.6 Change-Id: I8d63f0e5019c37dbbc02294515444dd8e901dd6f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* _qt_internal_create_moc_command: Fix genex parseOrkun Tokdemir2023-08-172-3/+43
| | | | | | | | | The function was replacing the `>` character in generator expressions coming from `add_compile_definitions`. This was creating generator expression syntax errors. Discard generator expressions from character replacing. Add tests for the three cases. Fixes: QTBUG-111717 Change-Id: I694d2908738085fdf15112834f20183a9f393422 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* [Doc] Clarify caller expectations for IPC Cross-platform safe key formatJøger Hansegård2023-08-151-1/+4
| | | | | | | | | | Clarify that Qt will silently truncate oversized keys for QSystemSemaphore and QSharedMemory. This can have implications for some use-cases, for example if an absolute path file name is used as a key name to synchronize access to files. Change-Id: I74742d11fd72139ff69d033e611904dcf0e9e822 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Modernize snippetFabian Kosmale2023-08-141-4/+4
| | | | | | | | It referenced QDeclarativeComponent, which has been gone for a very long time. Also replace the foreach with a proper for loop. Change-Id: I7f30ca10a235137dbdf34b7684e2c38610242b17 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
* Fix typo in core animation docsAlexey Edelev2023-08-091-1/+1
| | | | | | Pick-to: 6.2 6.5 6.6 Change-Id: I9fdab0e3969a4d89695c70c4e44a8018a141c6bb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Consider BUILD_SHARED_LIBS when adding libraries using _qt_internal_add_libraryAlexey Edelev2023-08-041-2/+3
| | | | | | | | | | | | | | | | | It does look safe to consider the value of BUILD_SHARED_LIBS in _qt_internal_add_library. Current behavior might confuse users that specify BUILD_SHARED_LIBS explicitly but get the library types according to Qt build type. [ChangeLog][CMake] qt6_add_library now considers the value of the BUILD_SHARED_LIBS variable. If the variable is DEFINED it has higher priority than the library type detecting logic in qt6_add_library when adding the library targets. Change-Id: I1c40e887c4e481424a596c870a8ff2784b08fcbb Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Specify correct \since version for android variableAlexandru Croitor2023-07-191-1/+1
| | | | | | | | | | | | | | The QT_ANDROID_DEPLOY_RELEASE variable was added in 6.5.1, not 6.5.2. Amends 64db65ae907b2d987c01768438dcae9643ceac96 Pick-to: 6.5 6.6 Fixes: QTBUG-115318 Task-number: QTBUG-112921 Task-number: QTBUG-108132 Task-number: COIN-882 Change-Id: I912fecfc918914709aa5cb9c42c67317f7d3dc89 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Doc: List of all Qt overviews which are now termed as explanationJaishree Vyas2023-07-196-3/+6
| | | | | | | | | | | | | The autogenerated list of overviews was adding the \group command which included all the groups instead of overviews. The idea here is to categorize the overviews later on once we have the list of all overviews. Task-number: QTBUG-114762 Pick-to: 6.5 6.6 Change-Id: I3cf53886be277abc86b5ec54d399cd6933fbe882 Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Introduce macro.qtpolicydeprecatedbehavior for Qt CMake PolicyAmir Masoud Abdol2023-07-102-4/+2
| | | | | | | | | Added a template that we can use instead of rewriting the message for every policy. Pick-to: 6.6 Change-Id: I13cc182244d5f092e3d5677664bc149c6b126da5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* ipc.qdoc: fix typo in API docsAhmad Samir2023-07-091-1/+1
| | | | | | | Change-Id: Ifb999b7b96583c7ffa42b91078535b4bfa91616f Pick-to: 6.6 Task-number: QTBUG-2443 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QString docs: miscellanea improvements around string constructionGiuseppe D'Angelo2023-07-071-3/+3
| | | | | | | | | | * Correct the semantics of the QString(const char *) constructor * Mention operator"" * Get rid of QLatin1StringView * Improve QStringBuilder docs Change-Id: I80a0833a6d31fae1b05ee49bdb9d2dc6baf84cf0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move tetrix example to manual testTor Arne Vestbø2023-06-291-1/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ie73d9e35df8513d05d55ffbad1f02584359e3bd0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Fix qdoc link warnings after moving a few examples to manual testsTor Arne Vestbø2023-06-271-1/+1
| | | | | | Pick-to: 6.5 6.6 Change-Id: I81a6e9d52e858c3f733d4c527c70408772813b56 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>