diff options
| author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2024-11-28 14:23:34 +0100 |
|---|---|---|
| committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2024-12-05 16:53:27 +0100 |
| commit | 9a6d405cd639f839752a41b8b95627a9627ab0c7 (patch) | |
| tree | f992a74fbfee0e79e43a4d087ffbfaa23cb84563 /src/labs/platform/qquicklabsplatformfolderdialog.cpp | |
| parent | 8ae5d081c5d81336fc15c5f8b3ac0bf579dca0d2 (diff) | |
Deprecate the dialogs in Qt.labs.platform
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>
Diffstat (limited to 'src/labs/platform/qquicklabsplatformfolderdialog.cpp')
| -rw-r--r-- | src/labs/platform/qquicklabsplatformfolderdialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/labs/platform/qquicklabsplatformfolderdialog.cpp b/src/labs/platform/qquicklabsplatformfolderdialog.cpp index dfe7945ce3..c8af04bff8 100644 --- a/src/labs/platform/qquicklabsplatformfolderdialog.cpp +++ b/src/labs/platform/qquicklabsplatformfolderdialog.cpp @@ -3,6 +3,8 @@ #include "qquicklabsplatformfolderdialog_p.h" +#if QT_DEPRECATED_SINCE(6, 9) + QT_BEGIN_NAMESPACE /*! @@ -11,6 +13,7 @@ QT_BEGIN_NAMESPACE //! \nativetype QQuickLabsPlatformFolderDialog \inqmlmodule Qt.labs.platform \since 5.8 + \deprecated [6.9] Use QtQuick.Dialogs::FolderDialog instead. \brief A native folder dialog. The FolderDialog type provides a QML API for native platform folder dialogs. @@ -57,7 +60,7 @@ QT_BEGIN_NAMESPACE \labs - \sa FileDialog, StandardPaths + \sa QtQuick.Dialogs::FolderDialog, FileDialog, StandardPaths */ QQuickLabsPlatformFolderDialog::QQuickLabsPlatformFolderDialog(QObject *parent) @@ -251,3 +254,5 @@ void QQuickLabsPlatformFolderDialog::accept() QT_END_NAMESPACE #include "moc_qquicklabsplatformfolderdialog_p.cpp" + +#endif // QT_DEPRECATED_SINCE(6, 9) |
