Shut up setParent warning.

Change-Id: I43af8bf83d3071f7c1d2eff082df5b1414f553b8
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
BogDan Vatra 2014-01-29 17:06:26 +02:00 committed by The Qt Project
parent 6fe4deca3f
commit 398f029f62
2 changed files with 6 additions and 1 deletions

View File

@ -126,6 +126,11 @@ Qt::WindowFlags QAndroidPlatformWindow::windowFlags() const
return m_windowFlags;
}
void QAndroidPlatformWindow::setParent(const QPlatformWindow *window)
{
Q_UNUSED(window);
}
QAndroidPlatformScreen *QAndroidPlatformWindow::platformScreen() const
{
return static_cast<QAndroidPlatformScreen *>(window()->screen()->handle());

View File

@ -63,7 +63,7 @@ public:
void setWindowState(Qt::WindowState state);
void setWindowFlags(Qt::WindowFlags flags);
Qt::WindowFlags windowFlags() const;
void setParent(const QPlatformWindow *window);
WId winId() const { return m_windowId; }
QAndroidPlatformScreen *platformScreen() const;