Qt 4.8
Public Functions | List of all members
QPlatformClipboard Class Reference

#include <qplatformclipboard_qpa.h>

Inheritance diagram for QPlatformClipboard:
QBBClipboard QWaylandClipboard QXlibClipboard

Public Functions

void emitChanged (QClipboard::Mode mode)
 
virtual QMimeDatamimeData (QClipboard::Mode mode=QClipboard::Clipboard)
 
virtual void setMimeData (QMimeData *data, QClipboard::Mode mode=QClipboard::Clipboard)
 
virtual bool supportsMode (QClipboard::Mode mode) const
 
virtual ~QPlatformClipboard ()
 

Detailed Description

Definition at line 57 of file qplatformclipboard_qpa.h.

Constructors and Destructors

◆ ~QPlatformClipboard()

QPlatformClipboard::~QPlatformClipboard ( )
virtual

Definition at line 81 of file qplatformclipboard_qpa.cpp.

82 {
83 
84 }

Functions

◆ emitChanged()

void QPlatformClipboard::emitChanged ( QClipboard::Mode  mode)

Definition at line 105 of file qplatformclipboard_qpa.cpp.

Referenced by QWaylandClipboardSignalEmitter::emitChanged(), and QBBClipboard::MimeData::releaseOwnership().

106 {
108 }
void emitChanged(Mode mode)
Emits the appropriate changed signal for mode.
Definition: qclipboard.cpp:640
static QClipboard * clipboard()
Returns a pointer to the application global clipboard.

◆ mimeData()

QMimeData * QPlatformClipboard::mimeData ( QClipboard::Mode  mode = QClipboard::Clipboard)
virtual

Reimplemented in QWaylandClipboard, QBBClipboard, and QXlibClipboard.

Definition at line 86 of file qplatformclipboard_qpa.cpp.

87 {
88  //we know its clipboard
89  Q_UNUSED(mode);
90  return q_clipboardData()->source();
91 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ setMimeData()

void QPlatformClipboard::setMimeData ( QMimeData data,
QClipboard::Mode  mode = QClipboard::Clipboard 
)
virtual

Reimplemented in QWaylandClipboard, QBBClipboard, and QXlibClipboard.

Definition at line 93 of file qplatformclipboard_qpa.cpp.

94 {
95  //we know its clipboard
96  Q_UNUSED(mode);
97  q_clipboardData()->setSource(data);
98 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ supportsMode()

bool QPlatformClipboard::supportsMode ( QClipboard::Mode  mode) const
virtual

Reimplemented in QWaylandClipboard, and QXlibClipboard.

Definition at line 100 of file qplatformclipboard_qpa.cpp.

101 {
102  return mode == QClipboard::Clipboard;
103 }

The documentation for this class was generated from the following files: