mirror of https://github.com/qt/qtbase.git
Windows: Do not use native dialogs for non-modal dialogs.
Windows file dialogs are always modal (inheriting IModalWindow). As the QtQuick dialog plugin has a widget-based fallback now, there is no need to use native dialogs for the non-modal case. Task-number: QTBUG-30513 Change-Id: I8b62af86fde34e8c0cf5e917d2e62260e16c82fb Reviewed-by: David Faure (KDE) <faure@kde.org> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
693a399acb
commit
653e690923
|
@ -1457,9 +1457,7 @@ class QWindowsFileDialogHelper : public QWindowsDialogHelperBase<QPlatformFileDi
|
|||
{
|
||||
public:
|
||||
QWindowsFileDialogHelper() {}
|
||||
// For Qt 4 compatibility, do not create native non-modal dialogs on widgets,
|
||||
// but only on QQuickWindows, which do not have a fallback.
|
||||
virtual bool supportsNonModalDialog(const QWindow *parent = 0) const { return isQQuickWindow(parent); }
|
||||
virtual bool supportsNonModalDialog(const QWindow * /* parent */ = 0) const { return false; }
|
||||
virtual bool defaultNameFilterDisables() const
|
||||
{ return true; }
|
||||
virtual void setDirectory(const QString &directory);
|
||||
|
@ -1853,7 +1851,7 @@ class QWindowsXpFileDialogHelper : public QWindowsDialogHelperBase<QPlatformFile
|
|||
{
|
||||
public:
|
||||
QWindowsXpFileDialogHelper() {}
|
||||
virtual bool supportsNonModalDialog(const QWindow *parent = 0) const { return isQQuickWindow(parent); }
|
||||
virtual bool supportsNonModalDialog(const QWindow * /* parent */ = 0) const { return false; }
|
||||
virtual bool defaultNameFilterDisables() const
|
||||
{ return true; }
|
||||
virtual void setDirectory(const QString &directory);
|
||||
|
|
Loading…
Reference in New Issue