QGraphicsTransformPrivate: declare dtor out-of-line and export class

De-duplicates vtables and enables RTTI on this class
hierarchy.

Export, as QDeclarativeTranslatePrivate (QtQuick1)
inherits it.

Change-Id: I32439c59f7d4bff466ecae969bb761a42c3837f1
Reported-by: Volker Krause <volker.krause@kdab.com>
Task-number: QTBUG-45582
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Marc Mutz 2015-05-26 22:16:25 +02:00
parent 4ca16e99e7
commit 34b57dc767
2 changed files with 8 additions and 1 deletions

View File

@ -89,6 +89,11 @@
#ifndef QT_NO_GRAPHICSVIEW
QT_BEGIN_NAMESPACE
QGraphicsTransformPrivate::~QGraphicsTransformPrivate()
{
}
void QGraphicsTransformPrivate::setItem(QGraphicsItem *i)
{
if (item == i)

View File

@ -51,12 +51,14 @@ QT_BEGIN_NAMESPACE
class QGraphicsItem;
class QGraphicsTransformPrivate : public QObjectPrivate {
// ### Qt 6: unexport again, if QtQuick1's QDeclarativeTranslatePrivate is gone by then
class Q_WIDGETS_EXPORT QGraphicsTransformPrivate : public QObjectPrivate {
public:
Q_DECLARE_PUBLIC(QGraphicsTransform)
QGraphicsTransformPrivate()
: QObjectPrivate(), item(0) {}
~QGraphicsTransformPrivate();
QGraphicsItem *item;