Disable copy, move constructors when inheriting from QObject

This commit is contained in:
Chocobo1
2022-05-18 13:43:04 +08:00
parent 7764169aa3
commit c8b4611d8d
32 changed files with 48 additions and 10 deletions

View File

@@ -47,6 +47,7 @@ namespace Private
class FileSystemPathValidator final : public QValidator
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(FileSystemPathValidator)
public:
FileSystemPathValidator(QObject *parent = nullptr);
@@ -147,6 +148,7 @@ namespace Private
class FileComboEdit final : public QComboBox, public FileEditorWithCompletion
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(FileComboEdit)
public:
FileComboEdit(QWidget *parent = nullptr);