mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Don't use deprecated Q_ENUMS
See: https://doc.qt.io/qt-5/qobject-obsolete.html#Q_ENUMS
This commit is contained in:
parent
c8b66b25e8
commit
0f34e3bed9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user