summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-28 23:28:38 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-01-20 21:57:45 +0000
commitb31c4e38dc7015663825ee46d124a8759388d67f (patch)
tree813e98879a7dd11faafabb5f7434c863325c84a9 /src/gui/kernel/qwindow_p.h
parent177c370a7262a56f408d7343822ca119c9650cd9 (diff)
QWindowPrivate: de-inline dtor and ctor
It's private API, but exported, so de-inline the dtor to pin the vtable in QtGui instead of potentially duplicating it in every library that uses the class. Ditto ctor, but that's just code hygiene: we don't want the code to be duplicated across all users. Pick-to: 6.3 Task-number: QTBUG-45582 Change-Id: I91ea38be20fc67795466a68ca5721837255b33a0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow_p.h')
-rw-r--r--src/gui/kernel/qwindow_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow_p.h b/src/gui/kernel/qwindow_p.h
index b2bd4be6a9..dafd09b1e2 100644
--- a/src/gui/kernel/qwindow_p.h
+++ b/src/gui/kernel/qwindow_p.h
@@ -73,6 +73,9 @@ public:
WindowFrameExclusive
};
+ QWindowPrivate();
+ ~QWindowPrivate() override;
+
void init(QScreen *targetScreen = nullptr);
#ifndef QT_NO_CURSOR