summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-04-05 16:42:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-10 03:24:24 +0200
commit7c8d2592313acd023270b273754692677d1749c3 (patch)
tree09492cc4fc6439f30d6e35b5f7f4db384ab61af2 /src/gui/painting
parent9fb539085eb0cb415fb1b02708eda72c5d372353 (diff)
Q_DECLARE_SHARED: mark the type movable
All implicitly shared classes are by definition movable, so this patch adds Q_DECLARE_TYPEINFO(Type, Q_MOVABLE_TYPE) to Q_DECLARE_SHARED. Change-Id: Idf8989ae1a7ed6d1ac13fccb7eaef7395a875350 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qbrush.h1
-rw-r--r--src/gui/painting/qpen.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/painting/qbrush.h b/src/gui/painting/qbrush.h
index b4cffc45db..df41f2ad89 100644
--- a/src/gui/painting/qbrush.h
+++ b/src/gui/painting/qbrush.h
@@ -145,7 +145,6 @@ public:
inline void QBrush::setColor(Qt::GlobalColor acolor)
{ setColor(QColor(acolor)); }
-Q_DECLARE_TYPEINFO(QBrush, Q_MOVABLE_TYPE);
Q_DECLARE_SHARED(QBrush)
/*****************************************************************************
diff --git a/src/gui/painting/qpen.h b/src/gui/painting/qpen.h
index 35b3f5eec6..f461f1b59e 100644
--- a/src/gui/painting/qpen.h
+++ b/src/gui/painting/qpen.h
@@ -130,7 +130,7 @@ public:
typedef QPenPrivate * DataPtr;
inline DataPtr &data_ptr() { return d; }
};
-Q_DECLARE_TYPEINFO(QPen, Q_MOVABLE_TYPE);
+
Q_DECLARE_SHARED(QPen)
#ifndef QT_NO_DEBUG_STREAM