Debian Codegraph @

src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmshelpers_p.h

raw
1 // Copyright (C) 2017 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
4 #ifndef QEGLFSKMSHELPERS_H
5 #define QEGLFSKMSHELPERS_H
6
7 //
8 // W A R N I N G
9 // -------------
10 //
11 // This file is not part of the Qt API. It exists purely as an
12 // implementation detail. This header file may change from version to
13 // version without notice, or even be removed.
14 //
15 // We mean it.
16 //
17
18 #include <QString>
19
20 QT_BEGIN_NAMESPACE
21
22 inline QString q_fourccToString(uint code)
23 {
24 QString s;
25 s.reserve(4);
26 s.append(code & 0xff);
27 s.append((code >> 8) & 0xff);
28 s.append((code >> 16) & 0xff);
29 s.append((code >> 24) & 0xff);
30 return s;
31 }
32
33 QT_END_NAMESPACE
34
35 #endif // QEGLFSKMSHELPERS_H