From 35a9e53dea5599664bcb0b5777c8957849776839 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 2 Dec 2011 10:55:14 +0100 Subject: [PATCH] Added minimal class docs for QWindow to make it visible. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ibed2279ba5454547fb4060005e805a11221b3732 Reviewed-by: Samuel Rødal --- src/gui/kernel/qwindow.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 400ed29..55329f5 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -56,6 +56,20 @@ QT_BEGIN_NAMESPACE +/*! + \class QWindow + \brief The QWindow class encapsulates an independent windw in a Windowing System. + + A window that is supplied a parent become a native child window of + their parent window. + + Windows can potentially use a lot of memory. A usual measurement is + width * height * depth. A window might also include multiple buffers + to support double and triple buffering. To release a windows memory + resources, the destroy() function. + + */ + QWindow::QWindow(QScreen *targetScreen) : QObject(*new QWindowPrivate(), 0) , QSurface(QSurface::Window) @@ -624,6 +638,12 @@ void QWindow::setWindowIcon(const QImage &icon) const qDebug() << "unimplemented:" << __FILE__ << __LINE__; } + + +/*! + Releases the native platform resources associated with this window. + */ + void QWindow::destroy() { Q_D(QWindow); -- 2.7.4