QAbstractTextDocumentLayoutPrivate: declare dtor out-of-line and export class
De-duplicates vtables and enables RTTI on this class hierarchy. Export, as QPlainTextDocumentLayoutPrivate (QtWidgets) inherits it. Change-Id: I8aee43b43898a72430d8bc1247ea76c7d4e9031d Reported-by: Volker Krause <volker.krause@kdab.com> Task-number: QTBUG-45582 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
60f4d5165a
commit
4ca16e99e7
@ -40,6 +40,10 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QAbstractTextDocumentLayoutPrivate::~QAbstractTextDocumentLayoutPrivate()
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
\class QAbstractTextDocumentLayout
|
||||
\reentrant
|
||||
|
@ -58,13 +58,14 @@ struct QTextObjectHandler
|
||||
};
|
||||
typedef QHash<int, QTextObjectHandler> HandlerHash;
|
||||
|
||||
class QAbstractTextDocumentLayoutPrivate : public QObjectPrivate
|
||||
class Q_GUI_EXPORT QAbstractTextDocumentLayoutPrivate : public QObjectPrivate
|
||||
{
|
||||
public:
|
||||
Q_DECLARE_PUBLIC(QAbstractTextDocumentLayout)
|
||||
|
||||
inline QAbstractTextDocumentLayoutPrivate()
|
||||
: paintDevice(0) {}
|
||||
~QAbstractTextDocumentLayoutPrivate();
|
||||
|
||||
inline void setDocument(QTextDocument *doc) {
|
||||
document = doc;
|
||||
|
Loading…
Reference in New Issue
Block a user