Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qinternalmimedata_p.h
Go to the documentation of this file.
1
// Copyright (C) 2018 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
#
ifndef
QINTERNALMIMEDATA_P_H
6
#
define
QINTERNALMIMEDATA_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists for the convenience
13
// of other Qt classes. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
qbytearray
.
h
>
20
#
include
<
QtCore
/
qmimedata
.
h
>
21
#
include
<
QtCore
/
qstring
.
h
>
22
#
include
<
QtCore
/
qstringlist
.
h
>
23
#
include
<
QtCore
/
qvariant
.
h
>
24
#
include
<
QtGui
/
private
/
qtguiglobal_p
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
QEventLoop;
29
class
QMouseEvent;
30
class
QPlatformDrag;
31
32
class
Q_GUI_EXPORT
QInternalMimeData
:
public
QMimeData
33
{
34
Q_OBJECT
35
public
:
36
QInternalMimeData();
37
~QInternalMimeData();
38
39
bool
hasFormat(
const
QString &mimeType)
const
override;
40
QStringList formats()
const
override;
41
static
bool
canReadData(
const
QString &mimeType);
42
43
44
static
QStringList formatsHelper(
const
QMimeData *data);
45
static
bool
hasFormatHelper(
const
QString &mimeType,
const
QMimeData *data);
46
static
QByteArray renderDataHelper(
const
QString &mimeType,
const
QMimeData *data);
47
48
protected
:
49
QVariant retrieveData(
const
QString &mimeType, QMetaType type)
const
override;
50
51
virtual
bool
hasFormat_sys(
const
QString &mimeType)
const
= 0;
52
virtual
QStringList formats_sys()
const
= 0;
53
virtual
QVariant retrieveData_sys(
const
QString &mimeType, QMetaType type)
const
= 0;
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
// QINTERNALMIMEDATA_P_H
QInternalMimeData
Definition
qinternalmimedata_p.h:33
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
imageReadMimeFormats
static QStringList imageReadMimeFormats()
Definition
qinternalmimedata.cpp:31
imageMimeFormats
static QStringList imageMimeFormats(const QList< QByteArray > &imageFormats)
Definition
qinternalmimedata.cpp:16
imageWriteMimeFormats
static QStringList imageWriteMimeFormats()
Definition
qinternalmimedata.cpp:36
qtbase
src
gui
kernel
qinternalmimedata_p.h
Generated on
for Qt by
1.18.0