summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-12-02 10:55:14 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-02 15:59:58 +0100
commit35a9e53dea5599664bcb0b5777c8957849776839 (patch)
tree940d52ee3329734a9221dffe1abdb7a765527f19
parente0593c828b540f30f3d0b85d44d8cff5e174e9a2 (diff)
Added minimal class docs for QWindow to make it visible.
Change-Id: Ibed2279ba5454547fb4060005e805a11221b3732 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
-rw-r--r--src/gui/kernel/qwindow.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp
index 400ed29380..55329f56bd 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);