From 0f34e3bed9636b6b0221213a0e0e8e2a4cebc823 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 28 Nov 2021 19:51:47 +0800 Subject: [PATCH] Don't use deprecated Q_ENUMS See: https://doc.qt.io/qt-5/qobject-obsolete.html#Q_ENUMS --- src/gui/fspathedit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/fspathedit.h b/src/gui/fspathedit.h index 25e747500..d9f9d5e63 100644 --- a/src/gui/fspathedit.h +++ b/src/gui/fspathedit.h @@ -44,7 +44,6 @@ namespace Private class FileSystemPathEdit : public QWidget { Q_OBJECT - Q_ENUMS(Mode) Q_PROPERTY(Mode mode READ mode WRITE setMode) Q_PROPERTY(QString selectedPath READ selectedPath WRITE setSelectedPath NOTIFY selectedPathChanged) Q_PROPERTY(QString fileNameFilter READ fileNameFilter WRITE setFileNameFilter) @@ -60,6 +59,7 @@ public: DirectoryOpen, //!< selecting existing directories DirectorySave //!< selecting directories for saving }; + Q_ENUM(Mode) Mode mode() const; void setMode(Mode mode);