aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2025-03-04 16:13:14 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2025-03-06 19:23:05 +0100
commit76b51667aba24ce282e83afa65f853a1ace12333 (patch)
tree0143cd417bbcd0da6676553e59a6c41bbbaf4104 /src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp
parent91eab08183eed2dfb35e837c52aab94036b4aa1a (diff)
AbstractDialog: add property popupType
18c4bf827dabea735435887f84ad1bea4136b1ea made all non-native dialogs in QtQuick.Dialogs use `Window` as their popupType, in order to make the dialogs appear as top-level windows. However, there are some users that wish to use these non-native dialogs without them being top-level windows, like they were before 6.8. This was unfortunately not possible, since there weren't any API to customize the popupType for QtQuick.Dialogs. We were reluctant at first, to provide properties that only customize the non-native dialogs, without having any effect when native dialogs are used. However, there needs to exist some way for the popupType to be reverted back to `Item`, and thus, it makes sense to have a property for it. Fixes: QTBUG-134037 Change-Id: Idcfe4d3960c7002566f344ae32422c9cb7ce7631 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp')
-rw-r--r--src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp
index 2c2c7e57eb..624732ad13 100644
--- a/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp
+++ b/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp
@@ -43,7 +43,6 @@ void QQuickFontDialogImplPrivate::handleClick(QQuickAbstractButton *button)
QQuickFontDialogImpl::QQuickFontDialogImpl(QObject *parent)
: QQuickDialog(*(new QQuickFontDialogImplPrivate), parent)
{
- setPopupType(QQuickPopup::Window);
}
QQuickFontDialogImplAttached *QQuickFontDialogImpl::qmlAttachedProperties(QObject *object)