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
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
26QT_BEGIN_NAMESPACE
27
28class QEventLoop;
29class QMouseEvent;
30class QPlatformDrag;
31
32class Q_GUI_EXPORT QInternalMimeData : public QMimeData
33{
34 Q_OBJECT
35public:
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
48protected:
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
56QT_END_NAMESPACE
57
58#endif // QINTERNALMIMEDATA_P_H
Combined button and popup list for selecting options.
static QStringList imageReadMimeFormats()
static QStringList imageMimeFormats(const QList< QByteArray > &imageFormats)
static QStringList imageWriteMimeFormats()