Use Q_DISABLE_COPY_MOVE for private classes

Change-Id: I3cfcfba892ff4a0ab4e31f308620b445162bb17b
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Friedemann Kleint 2018-10-16 15:29:58 +02:00
parent b28502182b
commit e209321966
88 changed files with 97 additions and 98 deletions

View File

@ -208,7 +208,7 @@ protected:
QScopedPointer<QAbstractFileEnginePrivate> d_ptr;
private:
Q_DECLARE_PRIVATE(QAbstractFileEngine)
Q_DISABLE_COPY(QAbstractFileEngine)
Q_DISABLE_COPY_MOVE(QAbstractFileEngine)
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractFileEngine::FileFlags)
@ -245,7 +245,7 @@ protected:
virtual QVariant entryInfo(EntryInfoType type) const;
private:
Q_DISABLE_COPY(QAbstractFileEngineIterator)
Q_DISABLE_COPY_MOVE(QAbstractFileEngineIterator)
friend class QDirIterator;
friend class QDirIteratorPrivate;
void setPath(const QString &path);

View File

@ -96,7 +96,7 @@ private:
int lastError;
#endif
Q_DISABLE_COPY(QFileSystemIterator)
Q_DISABLE_COPY_MOVE(QFileSystemIterator)
};
QT_END_NAMESPACE

View File

@ -97,7 +97,7 @@ private:
class Overlapped : public OVERLAPPED
{
Q_DISABLE_COPY(Overlapped)
Q_DISABLE_COPY_MOVE(Overlapped)
public:
explicit Overlapped(QWindowsPipeReader *reader);
void clear();

View File

@ -134,7 +134,7 @@ private:
class Overlapped : public OVERLAPPED
{
Q_DISABLE_COPY(Overlapped)
Q_DISABLE_COPY_MOVE(Overlapped)
public:
explicit Overlapped(QWindowsPipeWriter *pipeWriter);
void clear();

View File

@ -76,7 +76,7 @@ public:
private:
friend class QAndroidJniEnvironment;
Q_DISABLE_COPY(QJNIEnvironmentPrivate)
Q_DISABLE_COPY_MOVE(QJNIEnvironmentPrivate)
JNIEnv *jniEnv;
};

View File

@ -184,7 +184,7 @@ public:
#endif
private:
Q_DISABLE_COPY(QMetaObjectBuilder)
Q_DISABLE_COPY_MOVE(QMetaObjectBuilder)
QMetaObjectBuilderPrivate *d;

View File

@ -407,7 +407,7 @@ private:
class QBoolBlocker
{
Q_DISABLE_COPY(QBoolBlocker)
Q_DISABLE_COPY_MOVE(QBoolBlocker)
public:
explicit inline QBoolBlocker(bool &b, bool value=true):block(b), reset(b){block = value;}
inline ~QBoolBlocker(){block = reset; }

View File

@ -395,7 +395,7 @@ namespace QtPrivate {
protected:
~QSlotObjectBase() {}
private:
Q_DISABLE_COPY(QSlotObjectBase)
Q_DISABLE_COPY_MOVE(QSlotObjectBase)
};
// implementation of QSlotObjectBase for which the slot is a pointer to member function of a QObject

View File

@ -119,7 +119,7 @@ Q_SIGNALS:
private:
Q_DECLARE_PRIVATE(QPpsObject)
Q_DISABLE_COPY(QPpsObject)
Q_DISABLE_COPY_MOVE(QPpsObject)
};
QT_END_NAMESPACE

View File

@ -74,7 +74,7 @@ class QMimeProviderBase;
class QMimeDatabasePrivate
{
public:
Q_DISABLE_COPY(QMimeDatabasePrivate)
Q_DISABLE_COPY_MOVE(QMimeDatabasePrivate)
QMimeDatabasePrivate();
~QMimeDatabasePrivate();

View File

@ -64,7 +64,7 @@ class QIODevice;
class QMimeTypeParserBase
{
Q_DISABLE_COPY(QMimeTypeParserBase)
Q_DISABLE_COPY_MOVE(QMimeTypeParserBase)
public:
QMimeTypeParserBase() {}

View File

@ -746,7 +746,7 @@ public:
bool valid() const;
private:
Q_DISABLE_COPY(Data)
Q_DISABLE_COPY_MOVE(Data)
};
}

View File

@ -71,7 +71,7 @@ private:
void execute(void **_a);
private:
Q_DISABLE_COPY(QSignalEventGenerator)
Q_DISABLE_COPY_MOVE(QSignalEventGenerator)
};
QT_END_NAMESPACE

View File

@ -121,7 +121,7 @@ public:
void cleanup();
private:
Q_DISABLE_COPY(QCollatorPrivate)
Q_DISABLE_COPY_MOVE(QCollatorPrivate)
};
class QCollatorSortKeyPrivate : public QSharedData
@ -138,7 +138,7 @@ public:
CollatorKeyType m_key;
private:
Q_DISABLE_COPY(QCollatorSortKeyPrivate)
Q_DISABLE_COPY_MOVE(QCollatorSortKeyPrivate)
};

View File

@ -187,7 +187,7 @@ class QFreeList
QAtomicInt _next;
// QFreeList is not copyable
Q_DISABLE_COPY(QFreeList)
Q_DISABLE_COPY_MOVE(QFreeList)
public:
Q_DECL_CONSTEXPR inline QFreeList();

View File

@ -155,7 +155,7 @@ public:
bool skipSignature;
private:
Q_DISABLE_COPY(QDBusMarshaller)
Q_DISABLE_COPY_MOVE(QDBusMarshaller)
};
class QDBusDemarshaller: public QDBusArgumentPrivate
@ -208,7 +208,7 @@ public:
QDBusDemarshaller *parent;
private:
Q_DISABLE_COPY(QDBusDemarshaller)
Q_DISABLE_COPY_MOVE(QDBusDemarshaller)
QString toStringUnchecked();
QDBusObjectPath toObjectPathUnchecked();
QDBusSignature toSignatureUnchecked();

View File

@ -94,7 +94,7 @@ class QDBusServer;
class QDBusErrorInternal
{
mutable DBusError error;
Q_DISABLE_COPY(QDBusErrorInternal)
Q_DISABLE_COPY_MOVE(QDBusErrorInternal)
public:
inline QDBusErrorInternal() { q_dbus_error_init(&error); }
inline ~QDBusErrorInternal() { q_dbus_error_free(&error); }

View File

@ -103,7 +103,7 @@ protected:
QPicturePaintEngine(QPaintEnginePrivate &dptr);
private:
Q_DISABLE_COPY(QPicturePaintEngine)
Q_DISABLE_COPY_MOVE(QPicturePaintEngine)
void writeCmdLength(int pos, const QRectF &r, bool corr);
};

View File

@ -210,7 +210,7 @@ static QImage copyImageData(const BITMAPINFOHEADER &header, const RGBQUAD *color
class DisplayHdc
{
Q_DISABLE_COPY(DisplayHdc)
Q_DISABLE_COPY_MOVE(DisplayHdc)
public:
DisplayHdc() : m_displayDc(GetDC(nullptr)) {}
~DisplayHdc() { ReleaseDC(nullptr, m_displayDc); }

View File

@ -110,7 +110,7 @@ private:
QDrag *m_object;
static QDragManager *m_instance;
Q_DISABLE_COPY(QDragManager)
Q_DISABLE_COPY_MOVE(QDragManager)
};
QT_END_NAMESPACE

View File

@ -76,7 +76,7 @@ public:
private:
friend QKeyMapperPrivate *qt_keymapper_private();
Q_DECLARE_PRIVATE(QKeyMapper)
Q_DISABLE_COPY(QKeyMapper)
Q_DISABLE_COPY_MOVE(QKeyMapper)
};
struct KeyboardLayoutItem;

View File

@ -97,7 +97,7 @@ private:
friend class QOpenGLContextGroupPrivate;
friend class QOpenGLMultiGroupSharedResource;
Q_DISABLE_COPY(QOpenGLSharedResource)
Q_DISABLE_COPY_MOVE(QOpenGLSharedResource)
};
class Q_GUI_EXPORT QOpenGLSharedResourceGuard : public QOpenGLSharedResource

View File

@ -508,7 +508,7 @@ public:
}
}
private:
Q_DISABLE_COPY(WindowSystemEventList)
Q_DISABLE_COPY_MOVE(WindowSystemEventList)
};
static WindowSystemEventList windowSystemEventQueue;

View File

@ -80,7 +80,7 @@ protected:
private:
QOpenGLCustomShaderStagePrivate* d_ptr;
Q_DISABLE_COPY(QOpenGLCustomShaderStage)
Q_DISABLE_COPY_MOVE(QOpenGLCustomShaderStage)
};

View File

@ -166,7 +166,7 @@ public:
bool shouldDrawCachedGlyphs(QFontEngine *, const QTransform &) const override;
private:
Q_DISABLE_COPY(QOpenGL2PaintEngineEx)
Q_DISABLE_COPY_MOVE(QOpenGL2PaintEngineEx)
friend class QOpenGLEngineShaderManager;
};

View File

@ -60,7 +60,7 @@ QT_BEGIN_NAMESPACE
template <typename Type> class QDataBuffer
{
Q_DISABLE_COPY(QDataBuffer)
Q_DISABLE_COPY_MOVE(QDataBuffer)
public:
QDataBuffer(int res)
{

View File

@ -157,7 +157,7 @@ public:
QVectorPath path;
private:
Q_DISABLE_COPY(QVectorPathConverter)
Q_DISABLE_COPY_MOVE(QVectorPathConverter)
};
class QPainterPathData : public QPainterPathPrivate

View File

@ -86,7 +86,7 @@ public:
static QPainterPath intersect(const QPainterPath &path, const QRectF &rect);
private:
Q_DISABLE_COPY(QPathClipper)
Q_DISABLE_COPY_MOVE(QPathClipper)
enum ClipperMode {
ClipMode, // do the full clip

View File

@ -196,7 +196,7 @@ public:
private:
Q_DISABLE_COPY(QVectorPath)
Q_DISABLE_COPY_MOVE(QVectorPath)
const QPainterPath::ElementType *m_elements;
const qreal *m_points;

View File

@ -165,7 +165,7 @@ public:
QFontEngine *engines[QChar::ScriptCount];
private:
Q_DISABLE_COPY(QFontEngineData)
Q_DISABLE_COPY_MOVE(QFontEngineData)
};

View File

@ -109,7 +109,7 @@ public:
uint importedFromPlainText : 1;
private:
Q_DISABLE_COPY(QTextDocumentFragmentPrivate)
Q_DISABLE_COPY_MOVE(QTextDocumentFragmentPrivate)
};
#ifndef QT_NO_TEXTHTMLPARSER

View File

@ -104,7 +104,7 @@ public:
private:
QFont defaultFnt;
Q_DISABLE_COPY(QTextFormatCollection)
Q_DISABLE_COPY_MOVE(QTextFormatCollection)
};
QT_END_NAMESPACE

View File

@ -116,7 +116,7 @@ public:
private:
QZipReaderPrivate *d;
Q_DISABLE_COPY(QZipReader)
Q_DISABLE_COPY_MOVE(QZipReader)
};
Q_DECLARE_TYPEINFO(QZipReader::FileInfo, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QZipReader::Status, Q_PRIMITIVE_TYPE);

View File

@ -108,7 +108,7 @@ public:
void close();
private:
QZipWriterPrivate *d;
Q_DISABLE_COPY(QZipWriter)
Q_DISABLE_COPY_MOVE(QZipWriter)
};
QT_END_NAMESPACE

View File

@ -89,7 +89,7 @@ public:
void clear();
private:
Q_DISABLE_COPY(BitOStream);
Q_DISABLE_COPY_MOVE(BitOStream);
std::vector<uchar> &buffer;
quint64 bitsSet;

View File

@ -227,7 +227,7 @@ private:
mutable QByteArray dummyDst;
Q_DISABLE_COPY(FieldLookupTable);
Q_DISABLE_COPY_MOVE(FieldLookupTable);
};
}

View File

@ -158,7 +158,7 @@ Q_SIGNALS:
void done(bool);
private:
Q_DISABLE_COPY(QFtp)
Q_DISABLE_COPY_MOVE(QFtp)
Q_DECLARE_PRIVATE(QFtp)
Q_PRIVATE_SLOT(d_func(), void _q_startNextCommand())

View File

@ -87,7 +87,7 @@ private:
QVector<QHstsPolicy> observedPolicies;
QSettings store;
Q_DISABLE_COPY(QHstsStore)
Q_DISABLE_COPY_MOVE(QHstsStore)
};
QT_END_NAMESPACE

View File

@ -156,7 +156,7 @@ public:
private:
Q_DECLARE_PRIVATE(QHttpNetworkConnection)
Q_DISABLE_COPY(QHttpNetworkConnection)
Q_DISABLE_COPY_MOVE(QHttpNetworkConnection)
friend class QHttpThreadDelegate;
friend class QHttpNetworkReply;
friend class QHttpNetworkReplyPrivate;

View File

@ -97,7 +97,7 @@ public:
static Q_CONSTEXPR int DefaultTimeout = 30000;
private:
Q_DISABLE_COPY(QNetworkConfigurationPrivate)
Q_DISABLE_COPY_MOVE(QNetworkConfigurationPrivate)
};
QT_END_NAMESPACE

View File

@ -370,7 +370,7 @@ static QList<QNetworkProxy> parseServerList(const QNetworkProxyQuery &query, con
#if !defined(Q_OS_WINRT)
namespace {
class QRegistryWatcher {
Q_DISABLE_COPY(QRegistryWatcher)
Q_DISABLE_COPY_MOVE(QRegistryWatcher)
public:
QRegistryWatcher() = default;
@ -425,7 +425,7 @@ private:
class QWindowsSystemProxy
{
Q_DISABLE_COPY(QWindowsSystemProxy)
Q_DISABLE_COPY_MOVE(QWindowsSystemProxy)
public:
QWindowsSystemProxy();
~QWindowsSystemProxy();

View File

@ -215,7 +215,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QAbstractSocketEngine)
Q_DISABLE_COPY(QAbstractSocketEngine)
Q_DISABLE_COPY_MOVE(QAbstractSocketEngine)
};
class QAbstractSocketEnginePrivate : public QObjectPrivate

View File

@ -160,7 +160,7 @@ private:
bool readHttpHeader();
Q_DECLARE_PRIVATE(QHttpSocketEngine)
Q_DISABLE_COPY(QHttpSocketEngine)
Q_DISABLE_COPY_MOVE(QHttpSocketEngine)
};

View File

@ -196,7 +196,7 @@ public Q_SLOTS:
private:
Q_DECLARE_PRIVATE(QNativeSocketEngine)
Q_DISABLE_COPY(QNativeSocketEngine)
Q_DISABLE_COPY_MOVE(QNativeSocketEngine)
};
class QSocketNotifier;

View File

@ -188,7 +188,7 @@ private slots:
private:
Q_DECLARE_PRIVATE(QNativeSocketEngine)
Q_DISABLE_COPY(QNativeSocketEngine)
Q_DISABLE_COPY_MOVE(QNativeSocketEngine)
};
class QNativeSocketEnginePrivate : public QAbstractSocketEnginePrivate

View File

@ -127,7 +127,7 @@ public:
private:
Q_DECLARE_PRIVATE(QSocks5SocketEngine)
Q_DISABLE_COPY(QSocks5SocketEngine)
Q_DISABLE_COPY_MOVE(QSocks5SocketEngine)
Q_PRIVATE_SLOT(d_func(), void _q_controlSocketConnected())
Q_PRIVATE_SLOT(d_func(), void _q_controlSocketReadNotification())
Q_PRIVATE_SLOT(d_func(), void _q_controlSocketError(QAbstractSocket::SocketError))

View File

@ -130,7 +130,7 @@ public:
QAtomicInt ref;
private:
Q_DISABLE_COPY(QSslKeyPrivate)
Q_DISABLE_COPY_MOVE(QSslKeyPrivate)
};
QT_END_NAMESPACE

View File

@ -89,7 +89,7 @@ struct EphemeralSecKeychain
~EphemeralSecKeychain();
SecKeychainRef keychain = nullptr;
Q_DISABLE_COPY(EphemeralSecKeychain)
Q_DISABLE_COPY_MOVE(EphemeralSecKeychain)
};
EphemeralSecKeychain::EphemeralSecKeychain()

View File

@ -75,7 +75,7 @@ public:
private:
SSLContextRef context;
Q_DISABLE_COPY(QSecureTransportContext)
Q_DISABLE_COPY_MOVE(QSecureTransportContext)
};
class QSslSocketBackendPrivate : public QSslSocketPrivate
@ -129,7 +129,7 @@ private:
QSecureTransportContext context;
bool renegotiating = false;
Q_DISABLE_COPY(QSslSocketBackendPrivate)
Q_DISABLE_COPY_MOVE(QSslSocketBackendPrivate)
};
QT_END_NAMESPACE

View File

@ -160,7 +160,7 @@ public:
void setTranslateZ(GLfloat z);
private:
Q_DISABLE_COPY(QGL2PaintEngineEx)
Q_DISABLE_COPY_MOVE(QGL2PaintEngineEx)
};
class QGL2PaintEngineExPrivate : public QPaintEngineExPrivate, protected QOpenGLExtensions

View File

@ -80,7 +80,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QGraphicsShaderEffect)
Q_DISABLE_COPY(QGraphicsShaderEffect)
Q_DISABLE_COPY_MOVE(QGraphicsShaderEffect)
friend class QGLCustomShaderEffectStage;
};

View File

@ -96,7 +96,7 @@ signals:
protected:
QDeviceDiscovery(QDeviceTypes types, QObject *parent) : QObject(parent), m_types(types) { }
Q_DISABLE_COPY(QDeviceDiscovery)
Q_DISABLE_COPY_MOVE(QDeviceDiscovery)
QDeviceTypes m_types;
};

View File

@ -67,7 +67,7 @@ Q_DECLARE_LOGGING_CATEGORY(lcQpaFonts)
class QWindowsFontEngineData
{
Q_DISABLE_COPY(QWindowsFontEngineData)
Q_DISABLE_COPY_MOVE(QWindowsFontEngineData)
public:
QWindowsFontEngineData();
~QWindowsFontEngineData();
@ -85,7 +85,7 @@ public:
class QWindowsFontDatabase : public QPlatformFontDatabase
{
Q_DISABLE_COPY(QWindowsFontDatabase)
Q_DISABLE_COPY_MOVE(QWindowsFontDatabase)
public:
enum FontOptions {
// Relevant bits from QWindowsIntegration::Options

View File

@ -66,7 +66,7 @@ class QWindowsFontEngineData;
class QWindowsFontEngine : public QFontEngine
{
Q_DISABLE_COPY(QWindowsFontEngine)
Q_DISABLE_COPY_MOVE(QWindowsFontEngine)
friend class QWindowsMultiFontEngine;
public:

View File

@ -69,7 +69,7 @@ namespace {
class GeometrySink: public IDWriteGeometrySink
{
Q_DISABLE_COPY(GeometrySink)
Q_DISABLE_COPY_MOVE(GeometrySink)
public:
GeometrySink(QPainterPath *path)
: m_refCount(0), m_path(path)

View File

@ -72,7 +72,7 @@ class QWindowsFontEngineData;
class QWindowsFontEngineDirectWrite : public QFontEngine
{
Q_DISABLE_COPY(QWindowsFontEngineDirectWrite)
Q_DISABLE_COPY_MOVE(QWindowsFontEngineDirectWrite)
public:
explicit QWindowsFontEngineDirectWrite(IDWriteFontFace *directWriteFontFace,
qreal pixelSize,

View File

@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
class QWindowsNativeImage
{
Q_DISABLE_COPY(QWindowsNativeImage)
Q_DISABLE_COPY_MOVE(QWindowsNativeImage)
public:
QWindowsNativeImage(int width, int height,
QImage::Format format);

View File

@ -132,7 +132,7 @@ inline QDataStream &operator<<(QDataStream &ds, const QEvdevKeyboardMap::Composi
class QFdContainer
{
int m_fd;
Q_DISABLE_COPY(QFdContainer);
Q_DISABLE_COPY_MOVE(QFdContainer);
public:
explicit QFdContainer(int fd = -1) Q_DECL_NOTHROW : m_fd(fd) {}
~QFdContainer() { reset(); }

View File

@ -116,7 +116,7 @@ protected:
friend GC qt_x11_get_brush_gc(QPainter *);
private:
Q_DISABLE_COPY(QX11PaintEngine)
Q_DISABLE_COPY_MOVE(QX11PaintEngine)
};
QT_END_NAMESPACE

View File

@ -85,8 +85,6 @@ public:
private:
QEventLoop *m_eventLoop;
Q_DISABLE_COPY(QXcbSessionManager)
};
QT_END_NAMESPACE

View File

@ -82,7 +82,7 @@ public:
private:
QScopedPointer<QXdgDesktopPortalThemePrivate> d_ptr;
Q_DISABLE_COPY(QXdgDesktopPortalTheme)
Q_DISABLE_COPY_MOVE(QXdgDesktopPortalTheme)
};
QT_END_NAMESPACE

View File

@ -77,7 +77,7 @@ public:
// end reimplementations QPdfPrintEngine
private:
Q_DISABLE_COPY(QCupsPrintEngine)
Q_DISABLE_COPY_MOVE(QCupsPrintEngine)
};
class QCupsPrintEnginePrivate : public QPdfPrintEnginePrivate
@ -91,7 +91,7 @@ public:
void closePrintDevice() override;
private:
Q_DISABLE_COPY(QCupsPrintEnginePrivate)
Q_DISABLE_COPY_MOVE(QCupsPrintEnginePrivate)
void changePrinter(const QString &newPrinter);
void setPageSize(const QPageSize &pageSize);

View File

@ -46,7 +46,7 @@ QT_BEGIN_NAMESPACE
class QWindowsPrinterSupport : public QPlatformPrinterSupport
{
Q_DISABLE_COPY(QWindowsPrinterSupport)
Q_DISABLE_COPY_MOVE(QWindowsPrinterSupport)
public:
QWindowsPrinterSupport();
~QWindowsPrinterSupport() override;

View File

@ -371,7 +371,7 @@ public:
void unpolish(QWidget *widget);
private:
Q_DISABLE_COPY(QAndroidStyle)
Q_DISABLE_COPY_MOVE(QAndroidStyle)
static ItemType qtControl(QStyle::ComplexControl control);
static ItemType qtControl(QStyle::ContentsType contentsType);
static ItemType qtControl(QStyle::ControlElement controlElement);

View File

@ -115,7 +115,7 @@ public:
const QWidget *widget = 0) const;
private:
Q_DISABLE_COPY(QMacStyle)
Q_DISABLE_COPY_MOVE(QMacStyle)
Q_DECLARE_PRIVATE(QMacStyle)
};

View File

@ -99,7 +99,7 @@ public:
QPalette standardPalette() const override;
private:
Q_DISABLE_COPY(QWindowsVistaStyle)
Q_DISABLE_COPY_MOVE(QWindowsVistaStyle)
Q_DECLARE_PRIVATE(QWindowsVistaStyle)
friend class QStyleFactory;
};

View File

@ -96,7 +96,7 @@ public:
const QWidget *widget = nullptr) const override;
private:
Q_DISABLE_COPY(QWindowsXPStyle)
Q_DISABLE_COPY_MOVE(QWindowsXPStyle)
Q_DECLARE_PRIVATE(QWindowsXPStyle)
friend class QStyleFactory;
};

View File

@ -113,7 +113,7 @@ private:
int m_savedPriority;
QCUPSSupport::JobSheets m_savedJobSheets;
Q_DISABLE_COPY(QCupsJobWidget)
Q_DISABLE_COPY_MOVE(QCupsJobWidget)
};
QT_END_NAMESPACE

View File

@ -294,8 +294,9 @@ IOPMAssertionID powerID;
#endif
class TestMethods {
Q_DISABLE_COPY(TestMethods)
public:
Q_DISABLE_COPY_MOVE(TestMethods)
typedef std::vector<QMetaMethod> MetaMethods;
explicit TestMethods(const QObject *o, const MetaMethods &m = MetaMethods());
@ -1605,7 +1606,7 @@ FatalSignalHandler::~FatalSignalHandler()
// Helper class for resolving symbol names by dynamically loading "dbghelp.dll".
class DebugSymbolResolver
{
Q_DISABLE_COPY(DebugSymbolResolver)
Q_DISABLE_COPY_MOVE(DebugSymbolResolver)
public:
struct Symbol {
Symbol() : name(nullptr), address(0) {}

View File

@ -49,7 +49,7 @@ class DomButtonGroup;
class Driver
{
Q_DISABLE_COPY(Driver)
Q_DISABLE_COPY_MOVE(Driver)
public:
Driver();
virtual ~Driver();

View File

@ -53,7 +53,7 @@ struct Option;
class Uic
{
Q_DISABLE_COPY(Uic)
Q_DISABLE_COPY_MOVE(Uic)
public:
Uic(Driver *driver);
~Uic();

View File

@ -290,7 +290,7 @@ private:
virtual void helperPrepareShow(QPlatformDialogHelper *) override;
virtual void helperDone(QDialog::DialogCode, QPlatformDialogHelper *) override;
Q_DISABLE_COPY(QFileDialogPrivate)
Q_DISABLE_COPY_MOVE(QFileDialogPrivate)
};
class QFileDialogLineEdit : public QLineEdit

View File

@ -84,7 +84,7 @@ class QWizard;
class QVistaHelper : public QObject
{
Q_DISABLE_COPY(QVistaHelper)
Q_DISABLE_COPY_MOVE(QVistaHelper)
public:
QVistaHelper(QWizard *wizard);
~QVistaHelper() override;

View File

@ -88,7 +88,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QGraphicsEffectSource)
Q_DISABLE_COPY(QGraphicsEffectSource)
Q_DISABLE_COPY_MOVE(QGraphicsEffectSource)
friend class QGraphicsEffect;
friend class QGraphicsEffectPrivate;
friend class QGraphicsScenePrivate;

View File

@ -99,7 +99,7 @@ protected:
private :
Q_DECLARE_PRIVATE(QGraphicsSceneBspTreeIndex)
Q_DISABLE_COPY(QGraphicsSceneBspTreeIndex)
Q_DISABLE_COPY_MOVE(QGraphicsSceneBspTreeIndex)
Q_PRIVATE_SLOT(d_func(), void _q_updateSortCache())
Q_PRIVATE_SLOT(d_func(), void _q_updateIndex())

View File

@ -115,7 +115,7 @@ protected:
friend class QGraphicsItemPrivate;
friend class QGraphicsSceneBspTreeIndex;
private:
Q_DISABLE_COPY(QGraphicsSceneIndex)
Q_DISABLE_COPY_MOVE(QGraphicsSceneIndex)
Q_DECLARE_PRIVATE(QGraphicsSceneIndex)
};

View File

@ -150,7 +150,7 @@ struct QSimplexConstraint
class QSimplex
{
Q_DISABLE_COPY(QSimplex)
Q_DISABLE_COPY_MOVE(QSimplex)
public:
QSimplex();
~QSimplex();

View File

@ -82,7 +82,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QColumnViewGrip)
Q_DISABLE_COPY(QColumnViewGrip)
Q_DISABLE_COPY_MOVE(QColumnViewGrip)
};
class QColumnViewGripPrivate : public QWidgetPrivate

View File

@ -150,7 +150,7 @@ public:
}
private:
Q_DISABLE_COPY(QWidgetBackingStoreTracker)
Q_DISABLE_COPY_MOVE(QWidgetBackingStoreTracker)
private:
QWidgetBackingStore* m_ptr;

View File

@ -305,7 +305,7 @@ private:
friend class QWidget;
friend class QBackingStore;
Q_DISABLE_COPY(QWidgetBackingStore)
Q_DISABLE_COPY_MOVE(QWidgetBackingStore)
};
QT_END_NAMESPACE

View File

@ -84,7 +84,7 @@ protected:
void onTransition(QEvent *) override;
private:
Q_DISABLE_COPY(QBasicKeyEventTransition)
Q_DISABLE_COPY_MOVE(QBasicKeyEventTransition)
Q_DECLARE_PRIVATE(QBasicKeyEventTransition)
};

View File

@ -87,7 +87,7 @@ protected:
void onTransition(QEvent *) override;
private:
Q_DISABLE_COPY(QBasicMouseEventTransition)
Q_DISABLE_COPY_MOVE(QBasicMouseEventTransition)
Q_DECLARE_PRIVATE(QBasicMouseEventTransition)
};

View File

@ -51,7 +51,7 @@ QT_BEGIN_NAMESPACE
namespace {
class PainterStateGuard {
Q_DISABLE_COPY(PainterStateGuard)
Q_DISABLE_COPY_MOVE(PainterStateGuard)
public:
explicit PainterStateGuard(QPainter *p) : m_painter(p) {}
~PainterStateGuard()

View File

@ -173,7 +173,7 @@ public:
static int numinstances;
private:
Q_DISABLE_COPY(QStyleSheetStyle)
Q_DISABLE_COPY_MOVE(QStyleSheetStyle)
Q_DECLARE_PRIVATE(QStyleSheetStyle)
};

View File

@ -102,7 +102,7 @@ protected:
QWindowsStyle(QWindowsStylePrivate &dd);
private:
Q_DISABLE_COPY(QWindowsStyle)
Q_DISABLE_COPY_MOVE(QWindowsStyle)
Q_DECLARE_PRIVATE(QWindowsStyle)
};

View File

@ -115,7 +115,7 @@ private:
class QMenuSloppyState
{
Q_DISABLE_COPY(QMenuSloppyState)
Q_DISABLE_COPY_MOVE(QMenuSloppyState)
public:
QMenuSloppyState()
: m_enabled(false)

View File

@ -100,7 +100,7 @@ protected:
void keyPressEvent(QKeyEvent *e);
private:
Q_DISABLE_COPY(QWidgetResizeHandler)
Q_DISABLE_COPY_MOVE(QWidgetResizeHandler)
enum MousePosition {
Nowhere,

View File

@ -267,7 +267,7 @@ protected:
virtual bool event(QEvent *e) override;
private:
Q_DISABLE_COPY(QWidgetTextControl)
Q_DISABLE_COPY_MOVE(QWidgetTextControl)
Q_PRIVATE_SLOT(d_func(), void _q_updateCurrentCharFormatAndSelection())
Q_PRIVATE_SLOT(d_func(), void _q_emitCursorPosChanged(const QTextCursor &))
Q_PRIVATE_SLOT(d_func(), void _q_deleteSelected())