blob: 8c83a245d518744ac0c0d9818ca93f9cb4b5d47d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2018 QNX Software Systems. All rights reserved.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qqnxforeignwindow.h"
#include "qqnxintegration.h"
QT_BEGIN_NAMESPACE
QQnxForeignWindow::QQnxForeignWindow(QWindow *window,
screen_context_t context,
screen_window_t screenWindow)
: QQnxWindow(window, context, screenWindow)
{
initWindow();
}
bool QQnxForeignWindow::isForeignWindow() const
{
return true;
}
int QQnxForeignWindow::pixelFormat() const
{
int result = SCREEN_FORMAT_RGBA8888;
screen_get_window_property_iv(nativeHandle(), SCREEN_PROPERTY_FORMAT, &result);
return result;
}
QT_END_NAMESPACE
|