summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxforeignwindow.cpp
blob: 8c83a245d518744ac0c0d9818ca93f9cb4b5d47d (plain)
1234567891011121314151617181920212223242526272829
// 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();}boolQQnxForeignWindow::isForeignWindow()const{return true;}intQQnxForeignWindow::pixelFormat()const{int result = SCREEN_FORMAT_RGBA8888;screen_get_window_property_iv(nativeHandle(), SCREEN_PROPERTY_FORMAT, &result);return result;} QT_END_NAMESPACE 
close