Commit 1d50f024 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Remove Q_DISABLE_COPY from generated classes. QObject already defines it.

Revieved-By: dt
parent fde603d8
......@@ -114,7 +114,6 @@ bool FormClassWizardParameters::generateCpp(QString *header, QString *source, in
headerStr << ", private " << uiClassName;
}
headerStr << " {\n" << namespaceIndent << indent << "Q_OBJECT\n"
<< namespaceIndent << indent << "Q_DISABLE_COPY(" << unqualifiedClassName << ")\n"
<< namespaceIndent << "public:\n"
<< namespaceIndent << indent << "explicit " << unqualifiedClassName << "(QWidget *parent = 0);\n";
if (embedding == PointerAggregatedUiClass)
......
......@@ -113,8 +113,7 @@ void LibraryParameters::generateCode(QtProjectParameters:: Type t,
// Is this a QObject (plugin)
const bool inheritsQObject = t == QtProjectParameters::Qt4Plugin;
if (inheritsQObject) {
headerStr << namespaceIndent << indent << "Q_OBJECT\n"
<< namespaceIndent << indent << "Q_DISABLE_COPY(" << unqualifiedClassName << ")\n";
headerStr << namespaceIndent << indent << "Q_OBJECT\n";
}
headerStr << namespaceIndent << "public:\n";
if (inheritsQObject) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment