Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsdirect2dnativeinterface.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qwindowsdirect2dnativeinterface.h"
6
7
#
include
<
QtGui
/
qbackingstore
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
void
*
QWindowsDirect2DNativeInterface
::nativeResourceForBackingStore(
const
QByteArray &resource, QBackingStore *bs)
12
{
13
if
(!bs || !bs->handle()) {
14
qWarning(
"%s: '%s' requested for null backingstore or backingstore without handle."
,
__FUNCTION__
, resource.constData());
15
return
nullptr
;
16
}
17
18
// getDC is so common we don't want to print an "invalid key" line for it
19
if
(resource ==
"getDC"
)
20
return
nullptr
;
21
22
qWarning(
"%s: Invalid key '%s' requested."
,
__FUNCTION__
, resource.constData());
23
return
nullptr
;
24
25
}
26
27
QT_END_NAMESPACE
QWindowsDirect2DNativeInterface
Definition
qwindowsdirect2dnativeinterface.h:13
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
direct2d
qwindowsdirect2dnativeinterface.cpp
Generated on
for Qt by
1.16.1