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