Remove unneeded defines.

Mostly Q_DISABLE_COPY that were covered by the un-copy-ability of the
respective base classes. Includes a few "stylistic" whitespace changes.

Change-Id: I31ca0e7bada5ed0f34776976efe22ddc444a5bf2
Reviewed-on: http://codereview.qt.nokia.com/1609
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-07-13 18:02:35 +02:00
committed by hjk
parent 9ec07bf230
commit 82bbac7f90
125 changed files with 139 additions and 238 deletions
@@ -54,9 +54,7 @@ signals:
void parentDummyChanged(); void parentDummyChanged();
private: private:
Q_DISABLE_COPY(DummyContextObject)
QWeakPointer<QObject> m_dummyParent; QWeakPointer<QObject> m_dummyParent;
}; };
} // namespace QmlDesigner } // namespace QmlDesigner
+2 -2
View File
@@ -47,8 +47,9 @@ QT_END_NAMESPACE
namespace ExtensionSystem { namespace ExtensionSystem {
class PluginCollection; class PluginCollection;
namespace Internal { namespace Internal {
class PluginManagerPrivate; class PluginManagerPrivate;
} }
class IPlugin; class IPlugin;
@@ -56,7 +57,6 @@ class PluginSpec;
class EXTENSIONSYSTEM_EXPORT PluginManager : public QObject class EXTENSIONSYSTEM_EXPORT PluginManager : public QObject
{ {
Q_DISABLE_COPY(PluginManager)
Q_OBJECT Q_OBJECT
public: public:
@@ -101,8 +101,6 @@ signals:
void zeroColorChanged(); void zeroColorChanged();
private: private:
Q_DISABLE_COPY(EasingGraph)
QColor m_color; QColor m_color;
QColor m_zeroColor; // the color for the "zero" and "one" lines QColor m_zeroColor; // the color for the "zero" and "one" lines
qreal m_duration; qreal m_duration;
@@ -42,7 +42,7 @@ class QDeclarativeDebugConnectionPrivate;
class QDeclarativeDebugConnection : public QIODevice class QDeclarativeDebugConnection : public QIODevice
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(QDeclarativeDebugConnection)
public: public:
QDeclarativeDebugConnection(QObject * = 0); QDeclarativeDebugConnection(QObject * = 0);
~QDeclarativeDebugConnection(); ~QDeclarativeDebugConnection();
@@ -77,7 +77,6 @@ class QDeclarativeDebugClient : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DECLARE_PRIVATE(QDeclarativeDebugClient) Q_DECLARE_PRIVATE(QDeclarativeDebugClient)
Q_DISABLE_COPY(QDeclarativeDebugClient)
public: public:
enum Status { NotConnected, Unavailable, Enabled }; enum Status { NotConnected, Unavailable, Enabled };
-1
View File
@@ -44,7 +44,6 @@ struct BaseValidatingLineEditPrivate;
class QTCREATOR_UTILS_EXPORT BaseValidatingLineEdit : public QLineEdit class QTCREATOR_UTILS_EXPORT BaseValidatingLineEdit : public QLineEdit
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(BaseValidatingLineEdit)
Q_PROPERTY(QString initialText READ initialText WRITE setInitialText DESIGNABLE true) Q_PROPERTY(QString initialText READ initialText WRITE setInitialText DESIGNABLE true)
Q_PROPERTY(QColor errorColor READ errorColor WRITE setErrorColor DESIGNABLE true) Q_PROPERTY(QColor errorColor READ errorColor WRITE setErrorColor DESIGNABLE true)
+1 -2
View File
@@ -43,10 +43,9 @@ struct ClassNameValidatingLineEditPrivate;
class QTCREATOR_UTILS_EXPORT ClassNameValidatingLineEdit class QTCREATOR_UTILS_EXPORT ClassNameValidatingLineEdit
: public Utils::BaseValidatingLineEdit : public Utils::BaseValidatingLineEdit
{ {
Q_DISABLE_COPY(ClassNameValidatingLineEdit) Q_OBJECT
Q_PROPERTY(bool namespacesEnabled READ namespacesEnabled WRITE setNamespacesEnabled DESIGNABLE true) Q_PROPERTY(bool namespacesEnabled READ namespacesEnabled WRITE setNamespacesEnabled DESIGNABLE true)
Q_PROPERTY(bool lowerCaseFileName READ lowerCaseFileName WRITE setLowerCaseFileName) Q_PROPERTY(bool lowerCaseFileName READ lowerCaseFileName WRITE setLowerCaseFileName)
Q_OBJECT
public: public:
explicit ClassNameValidatingLineEdit(QWidget *parent = 0); explicit ClassNameValidatingLineEdit(QWidget *parent = 0);
-1
View File
@@ -67,7 +67,6 @@ private:
class QTCREATOR_UTILS_EXPORT FancyLineEdit : public QLineEdit class QTCREATOR_UTILS_EXPORT FancyLineEdit : public QLineEdit
{ {
Q_DISABLE_COPY(FancyLineEdit)
Q_OBJECT Q_OBJECT
Q_ENUMS(Side) Q_ENUMS(Side)
+1 -1
View File
@@ -40,8 +40,8 @@ namespace Utils {
class QTCREATOR_UTILS_EXPORT FileNameValidatingLineEdit : public BaseValidatingLineEdit class QTCREATOR_UTILS_EXPORT FileNameValidatingLineEdit : public BaseValidatingLineEdit
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileNameValidatingLineEdit)
Q_PROPERTY(bool allowDirectories READ allowDirectories WRITE setAllowDirectories) Q_PROPERTY(bool allowDirectories READ allowDirectories WRITE setAllowDirectories)
public: public:
explicit FileNameValidatingLineEdit(QWidget *parent = 0); explicit FileNameValidatingLineEdit(QWidget *parent = 0);
+1 -1
View File
@@ -44,8 +44,8 @@ class FileSystemWatcherPrivate;
// Documentation inside. // Documentation inside.
class QTCREATOR_UTILS_EXPORT FileSystemWatcher : public QObject class QTCREATOR_UTILS_EXPORT FileSystemWatcher : public QObject
{ {
Q_DISABLE_COPY(FileSystemWatcher)
Q_OBJECT Q_OBJECT
public: public:
enum WatchMode enum WatchMode
{ {
+1 -3
View File
@@ -120,7 +120,6 @@ public:
QFile *file() { return m_file; } QFile *file() { return m_file; }
private: private:
Q_DISABLE_COPY(FileSaver)
bool m_isSafe; bool m_isSafe;
}; };
@@ -136,10 +135,9 @@ public:
void setAutoRemove(bool on) { m_autoRemove = on; } void setAutoRemove(bool on) { m_autoRemove = on; }
private: private:
Q_DISABLE_COPY(TempFileSaver)
bool m_autoRemove; bool m_autoRemove;
}; };
} } // namespace Utils
#endif // FILEUTILS_H #endif // FILEUTILS_H
+2 -2
View File
@@ -40,9 +40,9 @@ namespace Utils {
class FileWizardPage; class FileWizardPage;
class QTCREATOR_UTILS_EXPORT FileWizardDialog : public Wizard { class QTCREATOR_UTILS_EXPORT FileWizardDialog : public Wizard
{
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileWizardDialog)
public: public:
explicit FileWizardDialog(QWidget *parent = 0); explicit FileWizardDialog(QWidget *parent = 0);
+1 -1
View File
@@ -44,9 +44,9 @@ struct FileWizardPagePrivate;
class QTCREATOR_UTILS_EXPORT FileWizardPage : public QWizardPage class QTCREATOR_UTILS_EXPORT FileWizardPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileWizardPage)
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true) Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
Q_PROPERTY(QString fileName READ fileName WRITE setFileName DESIGNABLE true) Q_PROPERTY(QString fileName READ fileName WRITE setFileName DESIGNABLE true)
public: public:
explicit FileWizardPage(QWidget *parent = 0); explicit FileWizardPage(QWidget *parent = 0);
virtual ~FileWizardPage(); virtual ~FileWizardPage();
-1
View File
@@ -42,7 +42,6 @@ class IpAddressLineEditPrivate;
class QTCREATOR_UTILS_EXPORT IpAddressLineEdit : public Utils::BaseValidatingLineEdit class QTCREATOR_UTILS_EXPORT IpAddressLineEdit : public Utils::BaseValidatingLineEdit
{ {
Q_DISABLE_COPY(IpAddressLineEdit)
Q_OBJECT Q_OBJECT
public: public:
-4
View File
@@ -46,10 +46,6 @@ LineColumnLabel::LineColumnLabel(QWidget *parent)
{ {
} }
LineColumnLabel::~LineColumnLabel()
{
}
void LineColumnLabel::setText(const QString &text, const QString &maxText) void LineColumnLabel::setText(const QString &text, const QString &maxText)
{ {
QLabel::setText(text); QLabel::setText(text);
-2
View File
@@ -40,13 +40,11 @@ namespace Utils {
class QTCREATOR_UTILS_EXPORT LineColumnLabel : public QLabel class QTCREATOR_UTILS_EXPORT LineColumnLabel : public QLabel
{ {
Q_DISABLE_COPY(LineColumnLabel)
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString maxText READ maxText WRITE setMaxText DESIGNABLE true) Q_PROPERTY(QString maxText READ maxText WRITE setMaxText DESIGNABLE true)
public: public:
explicit LineColumnLabel(QWidget *parent = 0); explicit LineColumnLabel(QWidget *parent = 0);
virtual ~LineColumnLabel();
void setText(const QString &text, const QString &maxText); void setText(const QString &text, const QString &maxText);
QSize sizeHint() const; QSize sizeHint() const;
+1 -1
View File
@@ -47,7 +47,6 @@ struct NewClassWidgetPrivate;
class QTCREATOR_UTILS_EXPORT NewClassWidget : public QWidget class QTCREATOR_UTILS_EXPORT NewClassWidget : public QWidget
{ {
Q_DISABLE_COPY(NewClassWidget)
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool namespacesEnabled READ namespacesEnabled WRITE setNamespacesEnabled DESIGNABLE true) Q_PROPERTY(bool namespacesEnabled READ namespacesEnabled WRITE setNamespacesEnabled DESIGNABLE true)
Q_PROPERTY(bool baseClassInputVisible READ isBaseClassInputVisible WRITE setBaseClassInputVisible DESIGNABLE true) Q_PROPERTY(bool baseClassInputVisible READ isBaseClassInputVisible WRITE setBaseClassInputVisible DESIGNABLE true)
@@ -73,6 +72,7 @@ class QTCREATOR_UTILS_EXPORT NewClassWidget : public QWidget
// Utility "USER" property for wizards containing file names. // Utility "USER" property for wizards containing file names.
Q_PROPERTY(QStringList files READ files DESIGNABLE false USER true) Q_PROPERTY(QStringList files READ files DESIGNABLE false USER true)
Q_ENUMS(ClassType) Q_ENUMS(ClassType)
public: public:
enum ClassType { NoClassType, ClassInheritsQObject, ClassInheritsQWidget, enum ClassType { NoClassType, ClassInheritsQObject, ClassInheritsQWidget,
ClassInheritsQDeclarativeItem, ClassInheritsQDeclarativeItem,
-1
View File
@@ -50,7 +50,6 @@ class PathChooserPrivate;
class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget class QTCREATOR_UTILS_EXPORT PathChooser : public QWidget
{ {
Q_DISABLE_COPY(PathChooser)
Q_OBJECT Q_OBJECT
Q_ENUMS(Kind) Q_ENUMS(Kind)
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true) Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
-1
View File
@@ -48,7 +48,6 @@ struct PathListEditorPrivate;
class QTCREATOR_UTILS_EXPORT PathListEditor : public QWidget class QTCREATOR_UTILS_EXPORT PathListEditor : public QWidget
{ {
Q_DISABLE_COPY(PathListEditor)
Q_OBJECT Q_OBJECT
Q_PROPERTY(QStringList pathList READ pathList WRITE setPathList DESIGNABLE true) Q_PROPERTY(QStringList pathList READ pathList WRITE setPathList DESIGNABLE true)
Q_PROPERTY(QString fileDialogTitle READ fileDialogTitle WRITE setFileDialogTitle DESIGNABLE true) Q_PROPERTY(QString fileDialogTitle READ fileDialogTitle WRITE setFileDialogTitle DESIGNABLE true)
-1
View File
@@ -44,7 +44,6 @@ struct ProjectIntroPagePrivate;
class QTCREATOR_UTILS_EXPORT ProjectIntroPage : public QWizardPage class QTCREATOR_UTILS_EXPORT ProjectIntroPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ProjectIntroPage)
Q_PROPERTY(QString description READ description WRITE setPath DESIGNABLE true) Q_PROPERTY(QString description READ description WRITE setPath DESIGNABLE true)
Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true) Q_PROPERTY(QString path READ path WRITE setPath DESIGNABLE true)
Q_PROPERTY(QString projectName READ projectName WRITE setProjectName DESIGNABLE true) Q_PROPERTY(QString projectName READ projectName WRITE setProjectName DESIGNABLE true)
@@ -40,7 +40,6 @@ namespace Utils {
class QTCREATOR_UTILS_EXPORT ProjectNameValidatingLineEdit : public BaseValidatingLineEdit class QTCREATOR_UTILS_EXPORT ProjectNameValidatingLineEdit : public BaseValidatingLineEdit
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ProjectNameValidatingLineEdit)
public: public:
explicit ProjectNameValidatingLineEdit(QWidget *parent = 0); explicit ProjectNameValidatingLineEdit(QWidget *parent = 0);
-1
View File
@@ -74,7 +74,6 @@ protected:
private: private:
class QtColorButtonPrivate *d_ptr; class QtColorButtonPrivate *d_ptr;
friend class QtColorButtonPrivate; friend class QtColorButtonPrivate;
Q_DISABLE_COPY(QtColorButton)
}; };
} // namespace Utils } // namespace Utils
+1 -3
View File
@@ -53,13 +53,11 @@ public:
void setBackup(bool backup) { m_backup = backup; } void setBackup(bool backup) { m_backup = backup; }
private: private:
Q_DISABLE_COPY(SaveFile)
QString m_finalFileName; QString m_finalFileName;
bool m_finalized; bool m_finalized;
bool m_backup; bool m_backup;
}; };
} } // namespace Utils
#endif // SAVEFILE_H #endif // SAVEFILE_H
+1 -1
View File
@@ -73,7 +73,7 @@ QTCREATOR_UTILS_EXPORT bool operator!=(const SshConnectionParameters &p1, const
class QTCREATOR_UTILS_EXPORT SshConnection : public QObject class QTCREATOR_UTILS_EXPORT SshConnection : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SshConnection)
public: public:
enum State { Unconnected, Connecting, Connected }; enum State { Unconnected, Connecting, Connected };
typedef QSharedPointer<SshConnection> Ptr; typedef QSharedPointer<SshConnection> Ptr;
-1
View File
@@ -53,7 +53,6 @@ class SshSendFacility;
class QTCREATOR_UTILS_EXPORT SshRemoteProcess : public QObject class QTCREATOR_UTILS_EXPORT SshRemoteProcess : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SshRemoteProcess)
friend class Internal::SshChannelManager; friend class Internal::SshChannelManager;
friend class Internal::SshRemoteProcessPrivate; friend class Internal::SshRemoteProcessPrivate;
+1 -1
View File
@@ -44,7 +44,7 @@ class SshRemoteProcessRunnerPrivate;
class QTCREATOR_UTILS_EXPORT SshRemoteProcessRunner : public QObject class QTCREATOR_UTILS_EXPORT SshRemoteProcessRunner : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SshRemoteProcessRunner)
public: public:
typedef QSharedPointer<SshRemoteProcessRunner> Ptr; typedef QSharedPointer<SshRemoteProcessRunner> Ptr;
-1
View File
@@ -55,7 +55,6 @@ struct SubmitEditorWidgetPrivate;
class QTCREATOR_UTILS_EXPORT SubmitEditorWidget : public QWidget class QTCREATOR_UTILS_EXPORT SubmitEditorWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SubmitEditorWidget)
Q_PROPERTY(QString descriptionText READ descriptionText WRITE setDescriptionText DESIGNABLE true) Q_PROPERTY(QString descriptionText READ descriptionText WRITE setDescriptionText DESIGNABLE true)
Q_PROPERTY(int fileNameColumn READ fileNameColumn WRITE setFileNameColumn DESIGNABLE false) Q_PROPERTY(int fileNameColumn READ fileNameColumn WRITE setFileNameColumn DESIGNABLE false)
Q_PROPERTY(QAbstractItemView::SelectionMode fileListSelectionMode READ fileListSelectionMode WRITE setFileListSelectionMode DESIGNABLE true) Q_PROPERTY(QAbstractItemView::SelectionMode fileListSelectionMode READ fileListSelectionMode WRITE setFileListSelectionMode DESIGNABLE true)
-6
View File
@@ -70,8 +70,6 @@ private slots:
void _q_pageRemoved(int pageId); void _q_pageRemoved(int pageId);
private: private:
Q_DISABLE_COPY(Wizard)
Q_DECLARE_PRIVATE(Wizard) Q_DECLARE_PRIVATE(Wizard)
class WizardPrivate *d_ptr; class WizardPrivate *d_ptr;
@@ -124,7 +122,6 @@ private:
friend class Wizard; friend class Wizard;
friend class WizardProgressItem; friend class WizardProgressItem;
Q_DISABLE_COPY(WizardProgress)
Q_DECLARE_PRIVATE(WizardProgress) Q_DECLARE_PRIVATE(WizardProgress)
class WizardProgressPrivate *d_ptr; class WizardProgressPrivate *d_ptr;
@@ -150,15 +147,12 @@ public:
bool titleWordWrap() const; bool titleWordWrap() const;
protected: protected:
WizardProgressItem(WizardProgress *progress, const QString &title); WizardProgressItem(WizardProgress *progress, const QString &title);
virtual ~WizardProgressItem(); virtual ~WizardProgressItem();
private: private:
friend class WizardProgress; friend class WizardProgress;
Q_DISABLE_COPY(WizardProgressItem)
Q_DECLARE_PRIVATE(WizardProgressItem) Q_DECLARE_PRIVATE(WizardProgressItem)
class WizardProgressItemPrivate *d_ptr; class WizardProgressItemPrivate *d_ptr;
-1
View File
@@ -58,7 +58,6 @@ class NavigationWidgetFactory;
class Manager : public QObject class Manager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Manager)
public: public:
/*! /*!
@@ -53,7 +53,6 @@ namespace Internal {
class NavigationWidget : public QWidget class NavigationWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(NavigationWidget)
public: public:
explicit NavigationWidget(QWidget *parent = 0); explicit NavigationWidget(QWidget *parent = 0);
@@ -52,7 +52,6 @@ namespace Internal {
class NavigationWidgetFactory : public Core::INavigationWidgetFactory class NavigationWidgetFactory : public Core::INavigationWidgetFactory
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(NavigationWidgetFactory)
public: public:
//! destructor //! destructor
-1
View File
@@ -48,7 +48,6 @@ namespace Internal {
class Plugin : public ExtensionSystem::IPlugin class Plugin : public ExtensionSystem::IPlugin
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Plugin)
public: public:
//! Constructor //! Constructor
@@ -379,7 +379,6 @@ void BaseFileWizardParameters::setDisplayCategory(const QString &v)
class WizardEventLoop : public QEventLoop class WizardEventLoop : public QEventLoop
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(WizardEventLoop)
WizardEventLoop(QObject *parent); WizardEventLoop(QObject *parent);
public: public:
-2
View File
@@ -150,7 +150,6 @@ CORE_EXPORT QDebug operator<<(QDebug d, const BaseFileWizardParameters &);
class CORE_EXPORT BaseFileWizard : public IWizard class CORE_EXPORT BaseFileWizard : public IWizard
{ {
Q_DISABLE_COPY(BaseFileWizard)
Q_OBJECT Q_OBJECT
public: public:
@@ -200,7 +199,6 @@ private:
class CORE_EXPORT StandardFileWizard : public BaseFileWizard class CORE_EXPORT StandardFileWizard : public BaseFileWizard
{ {
Q_DISABLE_COPY(StandardFileWizard)
Q_OBJECT Q_OBJECT
protected: protected:
@@ -47,6 +47,7 @@ namespace Core {
class CORE_EXPORT IOptionsPage : public QObject class CORE_EXPORT IOptionsPage : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
IOptionsPage(QObject *parent = 0) : QObject(parent) {} IOptionsPage(QObject *parent = 0) : QObject(parent) {}
virtual ~IOptionsPage() {} virtual ~IOptionsPage() {}
+1 -1
View File
@@ -51,7 +51,7 @@ struct EditorToolBarPrivate;
class CORE_EXPORT EditorToolBar : public Utils::StyledBar class CORE_EXPORT EditorToolBar : public Utils::StyledBar
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(EditorToolBar)
public: public:
explicit EditorToolBar(QWidget *parent = 0); explicit EditorToolBar(QWidget *parent = 0);
virtual ~EditorToolBar(); virtual ~EditorToolBar();
@@ -52,7 +52,6 @@ struct FileIconProviderPrivate;
class CORE_EXPORT FileIconProvider : public QFileIconProvider class CORE_EXPORT FileIconProvider : public QFileIconProvider
{ {
Q_DISABLE_COPY(FileIconProvider)
FileIconProvider(); FileIconProvider();
public: public:
-1
View File
@@ -51,7 +51,6 @@ struct HelpManagerPrivate;
class CORE_EXPORT HelpManager : public QObject class CORE_EXPORT HelpManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(HelpManager)
public: public:
typedef QHash<QString, QStringList> Filters; typedef QHash<QString, QStringList> Filters;
+3 -8
View File
@@ -37,11 +37,6 @@
#include <QtGui/QProxyStyle> #include <QtGui/QProxyStyle>
QT_BEGIN_NAMESPACE
class QLinearGradient;
class QBrush;
QT_END_NAMESPACE
class ManhattanStylePrivate; class ManhattanStylePrivate;
class CORE_EXPORT ManhattanStyle : public QProxyStyle class CORE_EXPORT ManhattanStyle : public QProxyStyle
@@ -49,7 +44,7 @@ class CORE_EXPORT ManhattanStyle : public QProxyStyle
Q_OBJECT Q_OBJECT
public: public:
ManhattanStyle(const QString &); explicit ManhattanStyle(const QString &baseStyleName);
~ManhattanStyle(); ~ManhattanStyle();
@@ -77,12 +72,12 @@ public:
void unpolish(QWidget *widget); void unpolish(QWidget *widget);
void unpolish(QApplication *app); void unpolish(QApplication *app);
protected Q_SLOTS:
protected slots:
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const; QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const;
private: private:
ManhattanStylePrivate *d; ManhattanStylePrivate *d;
Q_DISABLE_COPY(ManhattanStyle)
}; };
#endif // MANHATTANSTYLE_H #endif // MANHATTANSTYLE_H
+11 -6
View File
@@ -124,8 +124,10 @@ namespace Internal {
\sa Core::Internal::BaseMimeTypeParser, Core::Internal::MimeTypeParser \sa Core::Internal::BaseMimeTypeParser, Core::Internal::MimeTypeParser
*/ */
class FileMatchContext { class FileMatchContext
{
Q_DISABLE_COPY(FileMatchContext) Q_DISABLE_COPY(FileMatchContext)
public: public:
// Max data to be read from a file // Max data to be read from a file
enum { MaxData = 2048 }; enum { MaxData = 2048 };
@@ -183,8 +185,8 @@ QByteArray FileMatchContext::data()
\sa Core::Internal::BaseMimeTypeParser, Core::Internal::MimeTypeParser \sa Core::Internal::BaseMimeTypeParser, Core::Internal::MimeTypeParser
*/ */
class BinaryMatcher : public IMagicMatcher { class BinaryMatcher : public IMagicMatcher
Q_DISABLE_COPY(BinaryMatcher) {
public: public:
BinaryMatcher() {} BinaryMatcher() {}
virtual bool matches(const QByteArray & /*data*/) const { return true; } virtual bool matches(const QByteArray & /*data*/) const { return true; }
@@ -203,8 +205,8 @@ public:
\sa Core::Internal::BaseMimeTypeParser, Core::Internal::MimeTypeParser \sa Core::Internal::BaseMimeTypeParser, Core::Internal::MimeTypeParser
*/ */
class HeuristicTextMagicMatcher : public IMagicMatcher { class HeuristicTextMagicMatcher : public IMagicMatcher
Q_DISABLE_COPY(HeuristicTextMagicMatcher) {
public: public:
HeuristicTextMagicMatcher() {} HeuristicTextMagicMatcher() {}
virtual bool matches(const QByteArray &data) const; virtual bool matches(const QByteArray &data) const;
@@ -915,8 +917,10 @@ namespace Internal {
\sa Core::Internal::MimeTypeParser \sa Core::Internal::MimeTypeParser
*/ */
class BaseMimeTypeParser { class BaseMimeTypeParser
{
Q_DISABLE_COPY(BaseMimeTypeParser) Q_DISABLE_COPY(BaseMimeTypeParser)
public: public:
BaseMimeTypeParser() {} BaseMimeTypeParser() {}
virtual ~BaseMimeTypeParser() {} virtual ~BaseMimeTypeParser() {}
@@ -1224,6 +1228,7 @@ MimeMapEntry::MimeMapEntry(const MimeType &t, int aLevel) :
class MimeDatabasePrivate class MimeDatabasePrivate
{ {
Q_DISABLE_COPY(MimeDatabasePrivate) Q_DISABLE_COPY(MimeDatabasePrivate)
public: public:
MimeDatabasePrivate(); MimeDatabasePrivate();
+2
View File
@@ -60,8 +60,10 @@ namespace Internal {
class CORE_EXPORT IMagicMatcher class CORE_EXPORT IMagicMatcher
{ {
Q_DISABLE_COPY(IMagicMatcher) Q_DISABLE_COPY(IMagicMatcher)
protected: protected:
IMagicMatcher() {} IMagicMatcher() {}
public: public:
typedef QSharedPointer<IMagicMatcher> IMagicMatcherSharedPointer; typedef QSharedPointer<IMagicMatcher> IMagicMatcherSharedPointer;
typedef QList<IMagicMatcherSharedPointer> IMagicMatcherList; typedef QList<IMagicMatcherSharedPointer> IMagicMatcherList;
+1 -5
View File
@@ -39,10 +39,6 @@
#include <QtCore/QScopedPointer> #include <QtCore/QScopedPointer>
#include <QtCore/QString> #include <QtCore/QString>
QT_BEGIN_NAMESPACE
class QFileInfo;
QT_END_NAMESPACE
namespace Utils { namespace Utils {
class AbstractMacroExpander; class AbstractMacroExpander;
} }
@@ -53,7 +49,7 @@ class VariableManagerPrivate;
class CORE_EXPORT VariableManager : public QObject class CORE_EXPORT VariableManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(VariableManager)
public: public:
VariableManager(); VariableManager();
~VariableManager(); ~VariableManager();
+3 -1
View File
@@ -48,7 +48,7 @@ struct FileShareProtocolSettings;
class FileShareProtocol : public Protocol class FileShareProtocol : public Protocol
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileShareProtocol)
public: public:
FileShareProtocol(); FileShareProtocol();
virtual ~FileShareProtocol(); virtual ~FileShareProtocol();
@@ -66,10 +66,12 @@ public:
const QString &username = QString(), const QString &username = QString(),
const QString &comment = QString(), const QString &comment = QString(),
const QString &description = QString()); const QString &description = QString());
private: private:
const QSharedPointer<FileShareProtocolSettings> m_settings; const QSharedPointer<FileShareProtocolSettings> m_settings;
FileShareProtocolSettingsPage *m_settingsPage; FileShareProtocolSettingsPage *m_settingsPage;
}; };
} // namespace CodePaster } // namespace CodePaster
#endif // FILESHAREPROTOCOL_H #endif // FILESHAREPROTOCOL_H
+10 -4
View File
@@ -44,15 +44,17 @@ class QWidget;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Core { namespace Core {
class IOptionsPage; class IOptionsPage;
} }
namespace CodePaster { namespace CodePaster {
class Protocol : public QObject class Protocol : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
enum ContentType{ enum ContentType {
Text, C, JavaScript, Diff, Xml Text, C, JavaScript, Diff, Xml
}; };
@@ -109,8 +111,10 @@ protected:
* delayed initialization and conveniences * delayed initialization and conveniences
* for HTTP-requests. */ * for HTTP-requests. */
class NetworkAccessManagerProxy { class NetworkAccessManagerProxy
{
Q_DISABLE_COPY(NetworkAccessManagerProxy) Q_DISABLE_COPY(NetworkAccessManagerProxy)
public: public:
NetworkAccessManagerProxy(); NetworkAccessManagerProxy();
~NetworkAccessManagerProxy(); ~NetworkAccessManagerProxy();
@@ -127,8 +131,10 @@ private:
* initialization to a QNetworkAccessManager and conveniences * initialization to a QNetworkAccessManager and conveniences
* for HTTP-requests. */ * for HTTP-requests. */
class NetworkProtocol : public Protocol { class NetworkProtocol : public Protocol
{
Q_OBJECT Q_OBJECT
public: public:
virtual ~NetworkProtocol(); virtual ~NetworkProtocol();
+4 -2
View File
@@ -45,8 +45,10 @@ namespace CodePaster {
struct Settings; struct Settings;
class SettingsWidget : public QWidget { class SettingsWidget : public QWidget
{
Q_OBJECT Q_OBJECT
public: public:
explicit SettingsWidget(const QStringList &protocols, QWidget *parent = 0); explicit SettingsWidget(const QStringList &protocols, QWidget *parent = 0);
@@ -62,7 +64,7 @@ private:
class SettingsPage : public Core::IOptionsPage class SettingsPage : public Core::IOptionsPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SettingsPage)
public: public:
explicit SettingsPage(const QSharedPointer<Settings> &settings); explicit SettingsPage(const QSharedPointer<Settings> &settings);
virtual ~SettingsPage(); virtual ~SettingsPage();
+2 -1
View File
@@ -82,7 +82,7 @@ struct CppClassWizardParameters
class CppClassWizardDialog : public Utils::Wizard class CppClassWizardDialog : public Utils::Wizard
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(CppClassWizardDialog)
public: public:
explicit CppClassWizardDialog(QWidget *parent = 0); explicit CppClassWizardDialog(QWidget *parent = 0);
@@ -97,6 +97,7 @@ private:
class CppClassWizard : public Core::BaseFileWizard class CppClassWizard : public Core::BaseFileWizard
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit CppClassWizard(const Core::BaseFileWizardParameters &parameters, explicit CppClassWizard(const Core::BaseFileWizardParameters &parameters,
QObject *parent = 0); QObject *parent = 0);
+2 -3
View File
@@ -52,8 +52,7 @@ public:
SemanticInfo::LocalUseMap uses; SemanticInfo::LocalUseMap uses;
}; };
} } // namespace Internal
} // namespace CppEditor
}
#endif // CPPLOCALSYMBOLS_H #endif // CPPLOCALSYMBOLS_H
-2
View File
@@ -58,8 +58,6 @@ class CppQuickFixAssistInterface;
class CPPEDITOR_EXPORT CppQuickFixOperation: public TextEditor::QuickFixOperation class CPPEDITOR_EXPORT CppQuickFixOperation: public TextEditor::QuickFixOperation
{ {
Q_DISABLE_COPY(CppQuickFixOperation)
public: public:
explicit CppQuickFixOperation( explicit CppQuickFixOperation(
const QSharedPointer<const Internal::CppQuickFixAssistInterface> &interface, const QSharedPointer<const Internal::CppQuickFixAssistInterface> &interface,
@@ -96,8 +96,6 @@ private:
class CppFileSettingsPage : public Core::IOptionsPage class CppFileSettingsPage : public Core::IOptionsPage
{ {
Q_DISABLE_COPY(CppFileSettingsPage)
public: public:
explicit CppFileSettingsPage(QSharedPointer<CppFileSettings> &settings, explicit CppFileSettingsPage(QSharedPointer<CppFileSettings> &settings,
QObject *parent = 0); QObject *parent = 0);
+1 -1
View File
@@ -61,8 +61,8 @@ struct CppFileSettings;
class CppToolsPlugin : public ExtensionSystem::IPlugin class CppToolsPlugin : public ExtensionSystem::IPlugin
{ {
Q_DISABLE_COPY(CppToolsPlugin)
Q_OBJECT Q_OBJECT
public: public:
CppToolsPlugin(); CppToolsPlugin();
~CppToolsPlugin(); ~CppToolsPlugin();
@@ -42,6 +42,7 @@ namespace Internal {
class ByteArrayInputStream class ByteArrayInputStream
{ {
Q_DISABLE_COPY(ByteArrayInputStream) Q_DISABLE_COPY(ByteArrayInputStream)
public: public:
typedef void (ModifierFunc)(ByteArrayInputStream &s); typedef void (ModifierFunc)(ByteArrayInputStream &s);
+3 -1
View File
@@ -55,6 +55,7 @@ namespace Internal {
class CdbBreakEventWidget : public QWidget class CdbBreakEventWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit CdbBreakEventWidget(QWidget *parent = 0); explicit CdbBreakEventWidget(QWidget *parent = 0);
@@ -72,6 +73,7 @@ private:
class CdbOptionsPageWidget : public QWidget class CdbOptionsPageWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit CdbOptionsPageWidget(QWidget *parent); explicit CdbOptionsPageWidget(QWidget *parent);
@@ -91,8 +93,8 @@ private:
class CdbOptionsPage : public Core::IOptionsPage class CdbOptionsPage : public Core::IOptionsPage
{ {
Q_DISABLE_COPY(CdbOptionsPage)
Q_OBJECT Q_OBJECT
public: public:
explicit CdbOptionsPage(); explicit CdbOptionsPage();
virtual ~CdbOptionsPage(); virtual ~CdbOptionsPage();
@@ -42,7 +42,10 @@ namespace Internal {
class AbstractGdbProcess : public QObject class AbstractGdbProcess : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AbstractGdbProcess)
protected:
explicit AbstractGdbProcess(QObject *parent = 0) : QObject(parent) {}
public: public:
virtual QByteArray readAllStandardOutput() = 0; virtual QByteArray readAllStandardOutput() = 0;
virtual QByteArray readAllStandardError() = 0; virtual QByteArray readAllStandardError() = 0;
@@ -67,10 +70,6 @@ signals:
void finished(int exitCode, QProcess::ExitStatus exitStatus); void finished(int exitCode, QProcess::ExitStatus exitStatus);
void readyReadStandardError(); void readyReadStandardError();
void readyReadStandardOutput(); void readyReadStandardOutput();
protected:
explicit AbstractGdbProcess(QObject *parent = 0) : QObject(parent) {}
}; };
} // namespace Internal } // namespace Internal
+2 -1
View File
@@ -47,6 +47,7 @@ namespace Internal {
class LldbOptionsPageWidget : public QWidget class LldbOptionsPageWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit LldbOptionsPageWidget(QWidget *parent, QSettings *s); explicit LldbOptionsPageWidget(QWidget *parent, QSettings *s);
@@ -61,8 +62,8 @@ private:
class LldbOptionsPage : public Core::IOptionsPage class LldbOptionsPage : public Core::IOptionsPage
{ {
Q_DISABLE_COPY(LldbOptionsPage)
Q_OBJECT Q_OBJECT
public: public:
explicit LldbOptionsPage(); explicit LldbOptionsPage();
virtual ~LldbOptionsPage(); virtual ~LldbOptionsPage();
@@ -44,7 +44,6 @@ class FormClassWizardParameters;
class FormClassWizard : public Core::BaseFileWizard class FormClassWizard : public Core::BaseFileWizard
{ {
Q_DISABLE_COPY(FormClassWizard)
Q_OBJECT Q_OBJECT
public: public:
@@ -63,8 +62,6 @@ protected:
virtual Core::GeneratedFiles generateFiles(const QWizard *w, virtual Core::GeneratedFiles generateFiles(const QWizard *w,
QString *errorMessage) const; QString *errorMessage) const;
private:
}; };
} // namespace Internal } // namespace Internal
@@ -41,13 +41,11 @@ class FormClassWizardParameters;
namespace Internal { namespace Internal {
class FormClassWizardPage; class FormClassWizardPage;
class FormTemplateWizardPage; class FormTemplateWizardPage;
class FormClassWizardDialog : public Utils::Wizard class FormClassWizardDialog : public Utils::Wizard
{ {
Q_DISABLE_COPY(FormClassWizardDialog)
Q_OBJECT Q_OBJECT
public: public:
@@ -43,14 +43,14 @@ class FormClassWizardGenerationParameters;
namespace Internal { namespace Internal {
namespace Ui { namespace Ui {
class FormClassWizardPage; class FormClassWizardPage;
} }
class FormClassWizardPage : public QWizardPage class FormClassWizardPage : public QWizardPage
{ {
Q_DISABLE_COPY(FormClassWizardPage)
Q_OBJECT Q_OBJECT
public: public:
explicit FormClassWizardPage(QWidget * parent = 0); explicit FormClassWizardPage(QWidget * parent = 0);
~FormClassWizardPage(); ~FormClassWizardPage();
-5
View File
@@ -37,16 +37,11 @@
#include <QtCore/QList> #include <QtCore/QList>
QT_BEGIN_NAMESPACE
class QWidget;
QT_END_NAMESPACE
namespace Designer { namespace Designer {
namespace Internal { namespace Internal {
class DesignerContext : public Core::IContext class DesignerContext : public Core::IContext
{ {
Q_DISABLE_COPY(DesignerContext)
public: public:
explicit DesignerContext(const Core::Context &contexts, explicit DesignerContext(const Core::Context &contexts,
QWidget *widget, QWidget *widget,
+1 -1
View File
@@ -59,7 +59,7 @@ class FormEditorW;
class EditorWidget : public Utils::FancyMainWindow class EditorWidget : public Utils::FancyMainWindow
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(EditorWidget)
public: public:
explicit EditorWidget(FormEditorW *fe, QWidget *parent = 0); explicit EditorWidget(FormEditorW *fe, QWidget *parent = 0);
+1 -1
View File
@@ -60,7 +60,7 @@ namespace Internal {
class FormEditorStack : public QStackedWidget class FormEditorStack : public QStackedWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FormEditorStack)
public: public:
explicit FormEditorStack(QWidget *parent = 0); explicit FormEditorStack(QWidget *parent = 0);
@@ -47,8 +47,8 @@ namespace Internal {
class FormTemplateWizardPage : public QWizardPage class FormTemplateWizardPage : public QWizardPage
{ {
Q_DISABLE_COPY(FormTemplateWizardPage)
Q_OBJECT Q_OBJECT
public: public:
explicit FormTemplateWizardPage(QWidget * parent = 0); explicit FormTemplateWizardPage(QWidget * parent = 0);
-1
View File
@@ -40,7 +40,6 @@ namespace Internal {
class FormWizard : public Core::BaseFileWizard class FormWizard : public Core::BaseFileWizard
{ {
Q_DISABLE_COPY(FormWizard)
Q_OBJECT Q_OBJECT
public: public:
-2
View File
@@ -49,7 +49,6 @@ class FormTemplateWizardPage;
class FormWizardDialog : public Utils::Wizard class FormWizardDialog : public Utils::Wizard
{ {
Q_DISABLE_COPY(FormWizardDialog)
Q_OBJECT Q_OBJECT
public: public:
@@ -72,7 +71,6 @@ private:
class FormFileWizardDialog : public FormWizardDialog class FormFileWizardDialog : public FormWizardDialog
{ {
Q_DISABLE_COPY(FormFileWizardDialog)
Q_OBJECT Q_OBJECT
public: public:
+4 -8
View File
@@ -38,10 +38,6 @@
#include <QtCore/QVariant> #include <QtCore/QVariant>
#include <QtCore/QProcessEnvironment> #include <QtCore/QProcessEnvironment>
QT_BEGIN_NAMESPACE
class QProcess;
QT_END_NAMESPACE
namespace Git { namespace Git {
namespace Internal { namespace Internal {
@@ -49,8 +45,8 @@ namespace Internal {
// signal with a magic cookie // signal with a magic cookie
class GitCommand : public QObject class GitCommand : public QObject
{ {
Q_DISABLE_COPY(GitCommand)
Q_OBJECT Q_OBJECT
public: public:
// Where to report command termination with exit code if desired // Where to report command termination with exit code if desired
enum TerminationReportMode { NoReport, enum TerminationReportMode { NoReport,
@@ -85,9 +81,9 @@ public:
private: private:
void run(); void run();
Q_SIGNALS: signals:
void outputData(const QByteArray&); void outputData(const QByteArray &);
void errorText(const QString&); void errorText(const QString &);
void finished(bool ok, int exitCode, const QVariant &cookie); void finished(bool ok, int exitCode, const QVariant &cookie);
void success(); void success();
-1
View File
@@ -116,7 +116,6 @@ QDebug operator<<(QDebug d, const GitoriousHost &p);
class Gitorious : public QObject class Gitorious : public QObject
{ {
Q_DISABLE_COPY(Gitorious)
Q_OBJECT Q_OBJECT
public: public:
+2 -3
View File
@@ -50,7 +50,7 @@
#endif #endif
namespace Help { namespace Help {
namespace Internal { namespace Internal {
#if !defined(QT_NO_WEBKIT) #if !defined(QT_NO_WEBKIT)
class HelpViewer : public QWebView class HelpViewer : public QWebView
@@ -60,7 +60,6 @@ class HelpViewer : public QTextBrowser
{ {
Q_OBJECT Q_OBJECT
class HelpViewerPrivate; class HelpViewerPrivate;
Q_DISABLE_COPY(HelpViewer)
public: public:
explicit HelpViewer(qreal zoom, QWidget *parent = 0); explicit HelpViewer(qreal zoom, QWidget *parent = 0);
@@ -142,7 +141,7 @@ private:
HelpViewerPrivate *d; HelpViewerPrivate *d;
}; };
} // namespace Help
} // namespace Internal } // namespace Internal
} // namespace Help
#endif // HELPVIEWER_H #endif // HELPVIEWER_H
+1 -1
View File
@@ -50,7 +50,7 @@ class ImageViewerFile;
class ImageViewer : public Core::IEditor class ImageViewer : public Core::IEditor
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ImageViewer)
public: public:
explicit ImageViewer(QWidget *parent = 0); explicit ImageViewer(QWidget *parent = 0);
~ImageViewer(); ~ImageViewer();
+1 -1
View File
@@ -53,8 +53,8 @@ struct CommandLocatorPrivate;
class LOCATOR_EXPORT CommandLocator : public Locator::ILocatorFilter class LOCATOR_EXPORT CommandLocator : public Locator::ILocatorFilter
{ {
Q_DISABLE_COPY(CommandLocator)
Q_OBJECT Q_OBJECT
public: public:
explicit CommandLocator(const QString &prefix, explicit CommandLocator(const QString &prefix,
const QString &displayName, const QString &displayName,
+3 -1
View File
@@ -84,8 +84,10 @@ inline bool operator!=(const Settings &s1, const Settings &s2) { return !s1.equa
* p4. This is why the client root portion of working directory must be mapped for the * p4. This is why the client root portion of working directory must be mapped for the
* "-d" option, so that running p4 in "/depot/dev/foo" results in "-d $HOME/dev/foo". */ * "-d" option, so that running p4 in "/depot/dev/foo" results in "-d $HOME/dev/foo". */
class PerforceSettings { class PerforceSettings
{
Q_DISABLE_COPY(PerforceSettings) Q_DISABLE_COPY(PerforceSettings)
public: public:
PerforceSettings(); PerforceSettings();
~PerforceSettings(); ~PerforceSettings();
@@ -72,8 +72,6 @@ protected:
ProjectConfiguration(QObject *parent, const ProjectConfiguration *source); ProjectConfiguration(QObject *parent, const ProjectConfiguration *source);
private: private:
Q_DISABLE_COPY(ProjectConfiguration)
QString m_id; QString m_id;
QString m_displayName; QString m_displayName;
QString m_defaultDisplayName; QString m_defaultDisplayName;
@@ -43,9 +43,10 @@ class WizardPage;
} }
// Documentation inside. // Documentation inside.
class ProjectWizardPage : public QWizardPage { class ProjectWizardPage : public QWizardPage
{
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ProjectWizardPage)
public: public:
explicit ProjectWizardPage(QWidget *parent = 0); explicit ProjectWizardPage(QWidget *parent = 0);
virtual ~ProjectWizardPage(); virtual ~ProjectWizardPage();
@@ -61,7 +61,7 @@ class Project;
class PROJECTEXPLORER_EXPORT IPublishingWizardFactory : public QObject class PROJECTEXPLORER_EXPORT IPublishingWizardFactory : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(IPublishingWizardFactory)
public: public:
/*! /*!
A short, one-line description of the type of wizard that this A short, one-line description of the type of wizard that this
@@ -39,13 +39,13 @@ namespace ProjectExplorer {
namespace Internal { namespace Internal {
namespace Ui { namespace Ui {
class RemoveFileDialog; class RemoveFileDialog;
} }
class RemoveFileDialog : public QDialog class RemoveFileDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(RemoveFileDialog)
public: public:
explicit RemoveFileDialog(const QString &filePath, QWidget *parent = 0); explicit RemoveFileDialog(const QString &filePath, QWidget *parent = 0);
virtual ~RemoveFileDialog(); virtual ~RemoveFileDialog();
@@ -61,6 +61,7 @@ public:
private: private:
CorePrivate *m_d; CorePrivate *m_d;
}; };
}
} // namspace QmlDesigner
#endif // QMLDESIGNERCORE_H #endif // QMLDESIGNERCORE_H
@@ -47,7 +47,6 @@ class Model;
class ItemLibraryWidget : public QFrame class ItemLibraryWidget : public QFrame
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ItemLibraryWidget)
enum FilterChangeFlag { enum FilterChangeFlag {
QtBasic = 0x0, QtBasic = 0x0,
@@ -36,16 +36,13 @@
#include <iwidgetplugin.h> #include <iwidgetplugin.h>
#include <QtDeclarative/qdeclarative.h> #include <QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QmlDesigner { namespace QmlDesigner {
class CustomStylePlugin : public QObject, QmlDesigner::IWidgetPlugin class CustomStylePlugin : public QObject, QmlDesigner::IWidgetPlugin
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(CustomStylePlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin) Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public: public:
CustomStylePlugin(); CustomStylePlugin();
~CustomStylePlugin() {} ~CustomStylePlugin() {}
@@ -57,5 +54,4 @@ public:
} // namespace QmlDesigner } // namespace QmlDesigner
#endif // CUSTOMSTYLEPLUGIN_H #endif // CUSTOMSTYLEPLUGIN_H
@@ -99,7 +99,7 @@ private:
class CORESHARED_EXPORT ItemLibraryInfo : public QObject class CORESHARED_EXPORT ItemLibraryInfo : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ItemLibraryInfo)
friend class Internal::MetaInfoPrivate; friend class Internal::MetaInfoPrivate;
public: public:
~ItemLibraryInfo(); ~ItemLibraryInfo();
@@ -76,8 +76,8 @@ class CORESHARED_EXPORT Model : public QObject
friend class QmlDesigner::AbstractView; friend class QmlDesigner::AbstractView;
friend class Internal::ModelPrivate; friend class Internal::ModelPrivate;
Q_DISABLE_COPY(Model)
Q_OBJECT Q_OBJECT
public: public:
enum ViewNotification { NotifyView, DoNotNotifyView }; enum ViewNotification { NotifyView, DoNotNotifyView };
+3 -3
View File
@@ -83,10 +83,10 @@ class DesignMode;
class DocumentWidget; class DocumentWidget;
class DesignModeWidget; class DesignModeWidget;
class DocumentWarningWidget : public Utils::FakeToolTip class DocumentWarningWidget : public Utils::FakeToolTip
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(DocumentWarningWidget)
public: public:
explicit DocumentWarningWidget(DesignModeWidget *parent = 0); explicit DocumentWarningWidget(DesignModeWidget *parent = 0);
@@ -105,7 +105,7 @@ private:
class DesignModeWidget : public QWidget class DesignModeWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(DesignModeWidget)
public: public:
explicit DesignModeWidget(QWidget *parent = 0); explicit DesignModeWidget(QWidget *parent = 0);
~DesignModeWidget(); ~DesignModeWidget();
@@ -44,15 +44,13 @@ namespace QmlDesigner {
class DesktopPlugin : public QObject, QmlDesigner::IWidgetPlugin class DesktopPlugin : public QObject, QmlDesigner::IWidgetPlugin
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(DesktopPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin) Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public: public:
DesktopPlugin(); DesktopPlugin();
~DesktopPlugin() {}
QString metaInfo() const; QString metaInfo() const;
QString pluginName() const; QString pluginName() const;
}; };
} // namespace QmlDesigner } // namespace QmlDesigner
@@ -36,26 +36,20 @@
#include <iwidgetplugin.h> #include <iwidgetplugin.h>
#include <QtDeclarative/qdeclarative.h> #include <QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QmlDesigner { namespace QmlDesigner {
class ExtrasPlugin : public QObject, QmlDesigner::IWidgetPlugin class ExtrasPlugin : public QObject, QmlDesigner::IWidgetPlugin
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ExtrasPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin) Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public: public:
ExtrasPlugin(); ExtrasPlugin();
~ExtrasPlugin() {}
QString metaInfo() const; QString metaInfo() const;
QString pluginName() const; QString pluginName() const;
}; };
} // namespace QmlDesigner } // namespace QmlDesigner
#endif // EXTRASPLUGIN_H #endif // EXTRASPLUGIN_H
@@ -36,26 +36,20 @@
#include <iwidgetplugin.h> #include <iwidgetplugin.h>
#include <QtDeclarative/qdeclarative.h> #include <QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QmlDesigner { namespace QmlDesigner {
class MeegoPlugin : public QObject, QmlDesigner::IWidgetPlugin class MeegoPlugin : public QObject, QmlDesigner::IWidgetPlugin
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(MeegoPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin) Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public: public:
MeegoPlugin(); MeegoPlugin();
~MeegoPlugin() {}
QString metaInfo() const; QString metaInfo() const;
QString pluginName() const; QString pluginName() const;
}; };
} // namespace QmlDesigner } // namespace QmlDesigner
#endif // MEEGOPLUGIN_H #endif // MEEGOPLUGIN_H
@@ -36,26 +36,20 @@
#include <iwidgetplugin.h> #include <iwidgetplugin.h>
#include <QtDeclarative/qdeclarative.h> #include <QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QmlDesigner { namespace QmlDesigner {
class SymbianPlugin : public QObject, QmlDesigner::IWidgetPlugin class SymbianPlugin : public QObject, QmlDesigner::IWidgetPlugin
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SymbianPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin) Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public: public:
SymbianPlugin(); SymbianPlugin();
~SymbianPlugin() {}
QString metaInfo() const; QString metaInfo() const;
QString pluginName() const; QString pluginName() const;
}; };
} // namespace QmlDesigner } // namespace QmlDesigner
#endif // SymbianPLUGIN_H #endif // SymbianPLUGIN_H
-2
View File
@@ -62,8 +62,6 @@ class QmlJSQuickFixAssistInterface;
*/ */
class QmlJSQuickFixOperation: public TextEditor::QuickFixOperation class QmlJSQuickFixOperation: public TextEditor::QuickFixOperation
{ {
Q_DISABLE_COPY(QmlJSQuickFixOperation)
public: public:
/*! /*!
Creates a new QmlJSQuickFixOperation. Creates a new QmlJSQuickFixOperation.
@@ -162,7 +162,6 @@ private:
private: private:
Q_DISABLE_COPY(ClientProxy)
void buildDebugIdHashRecursive(const QDeclarativeDebugObjectReference &ref); void buildDebugIdHashRecursive(const QDeclarativeDebugObjectReference &ref);
Debugger::QmlAdapter *m_adapter; Debugger::QmlAdapter *m_adapter;
+1 -1
View File
@@ -55,8 +55,8 @@ class ModelManager;
class QmlJSToolsPlugin : public ExtensionSystem::IPlugin class QmlJSToolsPlugin : public ExtensionSystem::IPlugin
{ {
Q_DISABLE_COPY(QmlJSToolsPlugin)
Q_OBJECT Q_OBJECT
public: public:
static QmlJSToolsPlugin *instance() { return m_instance; } static QmlJSToolsPlugin *instance() { return m_instance; }
@@ -45,7 +45,6 @@ namespace Internal {
class CodaQmlProfilerRunner : public AbstractQmlProfilerRunner class CodaQmlProfilerRunner : public AbstractQmlProfilerRunner
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(CodaQmlProfilerRunner)
using AbstractQmlProfilerRunner::appendMessage; // don't hide signal using AbstractQmlProfilerRunner::appendMessage; // don't hide signal
public: public:
@@ -44,7 +44,6 @@ namespace Internal {
class LocalQmlProfilerRunner : public AbstractQmlProfilerRunner class LocalQmlProfilerRunner : public AbstractQmlProfilerRunner
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(LocalQmlProfilerRunner)
public: public:
struct Configuration { struct Configuration {
@@ -43,7 +43,6 @@ namespace Internal {
class RemoteLinuxQmlProfilerRunner : public AbstractQmlProfilerRunner class RemoteLinuxQmlProfilerRunner : public AbstractQmlProfilerRunner
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(RemoteLinuxQmlProfilerRunner)
using AbstractQmlProfilerRunner::appendMessage; // don't hide signal using AbstractQmlProfilerRunner::appendMessage; // don't hide signal
public: public:
@@ -49,10 +49,10 @@ public:
class QmlProjectItemPrivate; class QmlProjectItemPrivate;
class QmlProjectItem : public QObject { class QmlProjectItem : public QObject
{
Q_OBJECT Q_OBJECT
Q_DECLARE_PRIVATE(QmlProjectItem) Q_DECLARE_PRIVATE(QmlProjectItem)
Q_DISABLE_COPY(QmlProjectItem)
Q_PROPERTY(QDeclarativeListProperty<QmlProjectManager::QmlProjectContentItem> content READ content DESIGNABLE false) Q_PROPERTY(QDeclarativeListProperty<QmlProjectManager::QmlProjectContentItem> content READ content DESIGNABLE false)
Q_PROPERTY(QString sourceDirectory READ sourceDirectory NOTIFY sourceDirectoryChanged) Q_PROPERTY(QString sourceDirectory READ sourceDirectory NOTIFY sourceDirectoryChanged)
@@ -40,8 +40,8 @@ namespace Internal {
class CustomWidgetWizard : public QtWizard class CustomWidgetWizard : public QtWizard
{ {
Q_DISABLE_COPY(CustomWidgetWizard)
Q_OBJECT Q_OBJECT
public: public:
CustomWidgetWizard(); CustomWidgetWizard();
@@ -40,8 +40,8 @@ namespace Internal {
class CertificatePathChooser : public Utils::PathChooser class CertificatePathChooser : public Utils::PathChooser
{ {
Q_DISABLE_COPY(CertificatePathChooser)
Q_OBJECT Q_OBJECT
public: public:
explicit CertificatePathChooser(QWidget *parent = 0); explicit CertificatePathChooser(QWidget *parent = 0);
@@ -44,8 +44,8 @@ namespace Internal {
class S60DeviceDebugRunControl : public Debugger::DebuggerRunControl class S60DeviceDebugRunControl : public Debugger::DebuggerRunControl
{ {
Q_DISABLE_COPY(S60DeviceDebugRunControl)
Q_OBJECT Q_OBJECT
public: public:
explicit S60DeviceDebugRunControl(S60DeviceRunConfiguration *runConfiguration, explicit S60DeviceDebugRunControl(S60DeviceRunConfiguration *runConfiguration,
const Debugger::DebuggerStartParameters &sp, const Debugger::DebuggerStartParameters &sp,
+3 -3
View File
@@ -118,7 +118,7 @@ class Qt4PriFile;
class Qt4PriFileNode : public ProjectExplorer::ProjectNode class Qt4PriFileNode : public ProjectExplorer::ProjectNode
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Qt4PriFileNode)
public: public:
Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNode, const QString &filePath); Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNode, const QString &filePath);
@@ -230,7 +230,7 @@ private:
class Qt4NodesWatcher : public ProjectExplorer::NodesWatcher class Qt4NodesWatcher : public ProjectExplorer::NodesWatcher
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Qt4NodesWatcher)
public: public:
Qt4NodesWatcher(QObject *parent = 0); Qt4NodesWatcher(QObject *parent = 0);
@@ -310,7 +310,7 @@ struct QT4PROJECTMANAGER_EXPORT ProjectVersion {
class QT4PROJECTMANAGER_EXPORT Qt4ProFileNode : public Internal::Qt4PriFileNode class QT4PROJECTMANAGER_EXPORT Qt4ProFileNode : public Internal::Qt4PriFileNode
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Qt4ProFileNode)
public: public:
Qt4ProFileNode(Qt4Project *project, Qt4ProFileNode(Qt4Project *project,
const QString &filePath, const QString &filePath,
+1 -1
View File
@@ -122,8 +122,8 @@ QDebug operator<<(QDebug d, const Qt4ProjectFiles &f)
// A visitor to collect all files of a project in a Qt4ProjectFiles struct // A visitor to collect all files of a project in a Qt4ProjectFiles struct
class ProjectFilesVisitor : public ProjectExplorer::NodesVisitor class ProjectFilesVisitor : public ProjectExplorer::NodesVisitor
{ {
Q_DISABLE_COPY(ProjectFilesVisitor)
ProjectFilesVisitor(Qt4ProjectFiles *files); ProjectFilesVisitor(Qt4ProjectFiles *files);
public: public:
static void findProjectFiles(Qt4ProFileNode *rootNode, Qt4ProjectFiles *files); static void findProjectFiles(Qt4ProFileNode *rootNode, Qt4ProjectFiles *files);
@@ -42,7 +42,6 @@ struct GuiAppParameters;
class GuiAppWizard : public QtWizard class GuiAppWizard : public QtWizard
{ {
Q_DISABLE_COPY(GuiAppWizard)
Q_OBJECT Q_OBJECT
public: public:
@@ -42,7 +42,6 @@ namespace Internal {
class Html5AppWizardOptionsPage : public QWizardPage class Html5AppWizardOptionsPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Html5AppWizardOptionsPage)
public: public:
explicit Html5AppWizardOptionsPage(QWidget *parent = 0); explicit Html5AppWizardOptionsPage(QWidget *parent = 0);
@@ -105,7 +105,6 @@ static QString pluginDependencies(const PluginBaseClasses *plb)
// A Project intro page with an additional type chooser. // A Project intro page with an additional type chooser.
class LibraryIntroPage : public Utils::ProjectIntroPage class LibraryIntroPage : public Utils::ProjectIntroPage
{ {
Q_DISABLE_COPY(LibraryIntroPage)
public: public:
explicit LibraryIntroPage(QWidget *parent = 0); explicit LibraryIntroPage(QWidget *parent = 0);
@@ -43,7 +43,6 @@ namespace Internal {
class MobileAppWizardGenericOptionsPage : public QWizardPage class MobileAppWizardGenericOptionsPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(MobileAppWizardGenericOptionsPage)
public: public:
explicit MobileAppWizardGenericOptionsPage(QWidget *parent = 0); explicit MobileAppWizardGenericOptionsPage(QWidget *parent = 0);
@@ -59,7 +58,6 @@ private:
class MobileAppWizardSymbianOptionsPage : public QWizardPage class MobileAppWizardSymbianOptionsPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(MobileAppWizardSymbianOptionsPage)
public: public:
explicit MobileAppWizardSymbianOptionsPage(QWidget *parent = 0); explicit MobileAppWizardSymbianOptionsPage(QWidget *parent = 0);
@@ -82,7 +80,6 @@ private:
class MobileAppWizardMaemoOptionsPage : public QWizardPage class MobileAppWizardMaemoOptionsPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(MobileAppWizardMaemoOptionsPage)
public: public:
explicit MobileAppWizardMaemoOptionsPage(int appIconSize, explicit MobileAppWizardMaemoOptionsPage(int appIconSize,
@@ -41,7 +41,6 @@ namespace Internal {
class MobileLibraryWizardOptionPage : public QWizardPage class MobileLibraryWizardOptionPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(MobileLibraryWizardOptionPage)
public: public:
explicit MobileLibraryWizardOptionPage(QWidget *parent = 0); explicit MobileLibraryWizardOptionPage(QWidget *parent = 0);
@@ -42,7 +42,6 @@ namespace Internal {
class QtQuickComponentSetOptionsPage : public QWizardPage class QtQuickComponentSetOptionsPage : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(QtQuickComponentSetOptionsPage)
public: public:
explicit QtQuickComponentSetOptionsPage(QWidget *parent = 0); explicit QtQuickComponentSetOptionsPage(QWidget *parent = 0);

Some files were not shown because too many files have changed in this diff Show More