aboutsummaryrefslogtreecommitdiffstats
path: root/src/labs/platform/qquicklabsplatformfiledialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* doc: Fix links from Qt.labs.platform dialogs to QtQuick.Dialogs dialogsOliver Eftevaag6 days1-1/+1
| | | | | | | | | The links were broken. This will hopefully make them work, by referencing QtQuickDialogs in the square brackets. Pick-to: 6.11 Change-Id: Iad32d85d94caa9624213d07d1da85fbdd6a24e6d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Fix links to replacement dialogsDavid Boddie2025-10-241-1/+1
| | | | | Change-Id: Ifd85cfa7567aee1e13369b1d16ac0da7bd69a860 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Mark security header for the qt labs platformSanthosh Kumar2025-09-181-0/+1
| | | | | | | | | | No security critical issues identified for the qt labs platform. QUIP: 23 Task-number: QTBUG-136184 Pick-to: 6.10 6.9 6.8 Change-Id: If2d0e6991463ed9994fba8adbc3eef848984ab45 Reviewed-by: MohammadHossein Qanbari <mohammad.qanbari@qt.io>
* Doc: Add textual descriptions for QtLabsPlatform documentation imagesDheerendra Purohit2025-07-111-1/+1
| | | | | | | | | | | Added textual descriptions for all images in the QtLabsPlatform documentation to ensure QDoc generates appropriate alt text. Pick-to: 6.10 6.9 Fixes: QTBUG-136147 Change-Id: Ice484beaa12e2169923a84181257562b720ad61e Reviewed-by: Alexei Cazacov <alexei.cazacov@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Deprecate the dialogs in Qt.labs.platformOliver Eftevaag2024-12-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With recent improvements made to our dialogs in QtQuick.Dialogs, it would make sense to deprecate our dialogs in labs platform. As I've understood it, this has been the plan all along. Our documentation should also become less confusing as a result. In Qt 6.8, we made all dialogs in QtQuick.Dialogs use top-level popup windows (18c4bf827dabea735435887f84ad1bea4136b1ea), which improves the usability on desktop systems. This was the advantage that the Qt.labs.platform dialogs had over QtQuick.Dialogs, due to the Qt.labs.platform dialogs using our standard dialogs in QtWidgets as fallback, which has always been top-level windows. In Qt 6.9, we're also adding a sidebar to the QtQuick.Dialogs file and font dialogs. [ChangeLog][QtLabsPlatform] FileDialog, FontDialog, FolderDialog, MessageDialog and ColorDialog are now deprecated. Use QtQuick.Dialogs instead. Task-number: QTBUG-130864 Change-Id: I38a5bd66d50a12973607777b4e40f2ae85c98b5d Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Replace \instantiates with \nativetypePaul Wicking2024-08-201-1/+1
| | | | | | | | | | | Since the implementation of the `\nativetype`-command in QDoc, the `\instantiates`-command is deprecated. Replace the use of the deprecated command in favor of its replacement. Pick-to: 6.8 Task-number: QTBUG-128216 Change-Id: I23d9f66d3f6db2e5f827d7868497a432bb9b0626 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* doc: update list of supported native dialogsOliver Eftevaag2022-12-021-0/+1
| | | | | | | | Qt 6.5 introduces a few more native dialogs, speficially the message dialog for macOS and the font dialog and color dialog for iOS. Change-Id: I78bd3df1777b0fad891fd66f442e1075a95a7bd5 Reviewed-by: Doris Verria <doris.verria@qt.io>
* Port from container::count() and length() to size()Marc Mutz2022-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | This is a semantic patch using ClangTidyTransformator as in qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8: auto QtContainerClass = anyOf( expr(hasType(cxxRecordDecl(isSameOrDerivedFrom(hasAnyName(classes))))).bind(o), expr(hasType(namedDecl(hasAnyName(<classes>)))).bind(o)); makeRule(cxxMemberCallExpr(on(QtContainerClass), callee(cxxMethodDecl(hasAnyName({"count", "length"), parameterCountIs(0))))), changeTo(cat(access(o, cat("size"), "()"))), cat("use 'size()' instead of 'count()/length()'")) a.k.a qt-port-to-std-compatible-api with config Scope: 'Container', with the extended set of container classes recognized. Change-Id: Idb1f75dfe2323bd1d9e8b4d58d54f1b4b80c7ed7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-111-38/+2
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Replace uses of deprecated _qs with _s/QStringLiteralSona Kurazyan2022-04-291-1/+3
| | | | | | Task-number: QTBUG-101408 Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Qtqtlabsplatformplugin: includemocsMarc Mutz2022-04-291-0/+2
| | | | | | | | | | | Including moc files directly into their classes' TU tends to improve codegen and enables extended compiler warnings, e.g. about unused private functions or fields. Pick-to: 6.3 6.2 5.15 Task-number: QTBUG-102948 Change-Id: I57a2897de9178a9facbf3d7a4a9b47be3cfc3ef3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* FileDialog: do not add default suffix when content scheme is usedIvan Solovev2022-03-171-1/+6
| | | | | | | | | | | | | | | | | | | On Android when a file is selected using the default file manager, the selected file is reported using the url with "content" scheme. This url does not use file suffixes. Before this patch, if the FileDialog had a defaultSuffix specified, that suffix was added to the returned content url, and as a result the file could not be found. This problem exists FileDialog from both QtQuick.Dialogs and Qt.labs.platforms, so this patch implements the similar fix in both of them. Fixes: QTBUG-94391 Pick-to: 6.3 6.2 Change-Id: Ic6ba95e301857d9b72ee6f5ddb819b9aae9e66e3 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Use up-to date LGPL license headerKai Köhne2021-11-291-11/+14
| | | | | | | | Remove usages of outdated LGPL3 header that references LICENSES.LGPLv3 instead of LICENSES.LGPL3. Change-Id: If7a90ec18331a68491c5a740f131a5e7b3f37df4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Rename labs platform types to avoid duplicate type namesMitch Curtis2021-10-261-0/+662
Qt Labs Platform and Qt Quick Dialogs contain the same type names, which may cause issues when both modules are imported from QML. This may be the cause of the linker error when building Qt for Web Assembly: wasm-ld: error: duplicate symbol: vtable for QQuickPlatformFontDialog >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/./qml/Qt/labs/platform/libqtlabsplatformplugin.a(mocs_compilation.cpp.o) >>> defined in /home/qt/RTA/qt5/6.2.1/wasm_32/lib/libQt6QuickDialogs2QuickImpl.a(mocs_compilation.cpp.o) Fixes: QTBUG-97465 Pick-to: 6.2 Change-Id: I43dfab7cf4f56e4bfcdd4262dcf7d99f82351434 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>