aboutsummaryrefslogtreecommitdiffstats
path: root/src/labs/platform/qquicklabsplatformfontdialog.cpp
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2024-11-28 14:23:34 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2024-12-05 16:53:27 +0100
commit9a6d405cd639f839752a41b8b95627a9627ab0c7 (patch)
treef992a74fbfee0e79e43a4d087ffbfaa23cb84563 /src/labs/platform/qquicklabsplatformfontdialog.cpp
parent8ae5d081c5d81336fc15c5f8b3ac0bf579dca0d2 (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/qquicklabsplatformfontdialog.cpp')
-rw-r--r--src/labs/platform/qquicklabsplatformfontdialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/labs/platform/qquicklabsplatformfontdialog.cpp b/src/labs/platform/qquicklabsplatformfontdialog.cpp
index 3d34bbe77e..b182ae4453 100644
--- a/src/labs/platform/qquicklabsplatformfontdialog.cpp
+++ b/src/labs/platform/qquicklabsplatformfontdialog.cpp
@@ -3,6 +3,8 @@
#include "qquicklabsplatformfontdialog_p.h"
+#if QT_DEPRECATED_SINCE(6, 9)
+
QT_BEGIN_NAMESPACE
/*!
@@ -11,6 +13,7 @@ QT_BEGIN_NAMESPACE
//! \nativetype QQuickLabsPlatformFontDialog
\inqmlmodule Qt.labs.platform
\since 5.8
+ \deprecated [6.9] Use QtQuick.Dialogs::FontDialog instead.
\brief A native font dialog.
The FontDialog type provides a QML API for native platform font dialogs.
@@ -53,6 +56,8 @@ QT_BEGIN_NAMESPACE
\input includes/widgets.qdocinc 1
\labs
+
+ \sa QtQuick.Dialogs::FontDialog
*/
QQuickLabsPlatformFontDialog::QQuickLabsPlatformFontDialog(QObject *parent)
@@ -176,3 +181,5 @@ void QQuickLabsPlatformFontDialog::accept()
QT_END_NAMESPACE
#include "moc_qquicklabsplatformfontdialog_p.cpp"
+
+#endif // QT_DEPRECATED_SINCE(6, 9)