aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickdialogs/quickdialogsutils/qquickdialogtype_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickdialogs/quickdialogsutils/qquickdialogtype_p.h')
-rw-r--r--src/quickdialogs/quickdialogsutils/qquickdialogtype_p.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/quickdialogs/quickdialogsutils/qquickdialogtype_p.h b/src/quickdialogs/quickdialogsutils/qquickdialogtype_p.h
new file mode 100644
index 0000000000..1778ef3a14
--- /dev/null
+++ b/src/quickdialogs/quickdialogsutils/qquickdialogtype_p.h
@@ -0,0 +1,35 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QQUICKDIALOGTYPE_P_H
+#define QQUICKDIALOGTYPE_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/qnamespace.h>
+#include <QtCore/private/qglobal_p.h>
+
+QT_BEGIN_NAMESPACE
+
+// We need our own type for the extra FolderDialog value, so that we can load FolderDialog.qml,
+// otherwise we would just use QPlatformTheme::DialogType and then we wouldn't need this.
+enum class QQuickDialogType {
+ FileDialog,
+ ColorDialog,
+ FontDialog,
+ MessageDialog,
+ FolderDialog
+};
+
+QT_END_NAMESPACE
+
+#endif // QQUICKDIALOGTYPE_P_H