mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00: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
|
class FileSystemPathEdit : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_ENUMS(Mode)
|
|
||||||
Q_PROPERTY(Mode mode READ mode WRITE setMode)
|
Q_PROPERTY(Mode mode READ mode WRITE setMode)
|
||||||
Q_PROPERTY(QString selectedPath READ selectedPath WRITE setSelectedPath NOTIFY selectedPathChanged)
|
Q_PROPERTY(QString selectedPath READ selectedPath WRITE setSelectedPath NOTIFY selectedPathChanged)
|
||||||
Q_PROPERTY(QString fileNameFilter READ fileNameFilter WRITE setFileNameFilter)
|
Q_PROPERTY(QString fileNameFilter READ fileNameFilter WRITE setFileNameFilter)
|
||||||
@ -60,6 +59,7 @@ public:
|
|||||||
DirectoryOpen, //!< selecting existing directories
|
DirectoryOpen, //!< selecting existing directories
|
||||||
DirectorySave //!< selecting directories for saving
|
DirectorySave //!< selecting directories for saving
|
||||||
};
|
};
|
||||||
|
Q_ENUM(Mode)
|
||||||
|
|
||||||
Mode mode() const;
|
Mode mode() const;
|
||||||
void setMode(Mode mode);
|
void setMode(Mode mode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user