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
qplatformclipboard.h
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#ifndef QPLATFORMCLIPBOARD_H
6#define QPLATFORMCLIPBOARD_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is part of the QPA API and is not meant to be used
13// in applications. Usage of this API may make your code
14// source and binary incompatible with future versions of Qt.
15//
16
17#include <QtGui/qtguiglobal.h>
18
19#ifndef QT_NO_CLIPBOARD
20
21#include <QtGui/QClipboard>
22
24
25
27{
28public:
29 Q_DISABLE_COPY_MOVE(QPlatformClipboard)
30
31 QPlatformClipboard() = default;
32 virtual ~QPlatformClipboard();
33
34 virtual QMimeData *mimeData(QClipboard::Mode mode = QClipboard::Clipboard);
35 virtual void setMimeData(QMimeData *data, QClipboard::Mode mode = QClipboard::Clipboard);
36 virtual bool supportsMode(QClipboard::Mode mode) const;
37 virtual bool ownsMode(QClipboard::Mode mode) const;
38 void emitChanged(QClipboard::Mode mode);
39};
40
41QT_END_NAMESPACE
42
43#endif // QT_NO_CLIPBOARD
44
45#endif //QPLATFORMCLIPBOARD_H
void setSource(QMimeData *s)
The QPlatformClipboard class provides an abstraction for the system clipboard.
Combined button and popup list for selecting options.
Q_GLOBAL_STATIC(QClipboardData, q_clipboardData)