Don't use deprecated Q_ENUMS

See: https://doc.qt.io/qt-5/qobject-obsolete.html#Q_ENUMS
This commit is contained in:
Chocobo1 2021-11-28 19:51:47 +08:00
parent c8b66b25e8
commit 0f34e3bed9
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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);