Added QWindow::requestedFormat()
Change-Id: I9e69ddd8ceefeda87216fb3d2507c40bc7220cf5 Reviewed-on: http://codereview.qt-project.org/5846 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>bb10
parent
28a31f41d1
commit
0c59eb1156
|
|
@ -234,6 +234,21 @@ void QWindow::setFormat(const QSurfaceFormat &format)
|
|||
d->requestedFormat = format;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Returns the requested surfaceformat of this window.
|
||||
|
||||
If the requested format was not supported by the platform implementation,
|
||||
the requestedFormat will differ from the actual window format.
|
||||
|
||||
\sa format.
|
||||
*/
|
||||
QSurfaceFormat QWindow::requestedFormat() const
|
||||
{
|
||||
Q_D(const QWindow);
|
||||
return d->requestedFormat;
|
||||
}
|
||||
|
||||
QSurfaceFormat QWindow::format() const
|
||||
{
|
||||
Q_D(const QWindow);
|
||||
|
|
|
|||
|
|
@ -112,6 +112,7 @@ public:
|
|||
|
||||
void setFormat(const QSurfaceFormat &format);
|
||||
QSurfaceFormat format() const;
|
||||
QSurfaceFormat requestedFormat() const;
|
||||
|
||||
void setWindowFlags(Qt::WindowFlags flags);
|
||||
Qt::WindowFlags windowFlags() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue