Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwasmclipboard.cpp File Reference
#include "qwasmclipboard.h"
#include "qwasmdom.h"
#include "qwasmevent.h"
#include "qwasmwindow.h"
#include <private/qstdweb_p.h>
#include <QCoreApplication>
#include <qpa/qwindowsysteminterface.h>
#include <QBuffer>
#include <QString>
#include <emscripten/val.h>
+ Include dependency graph for qwasmclipboard.cpp:

Go to the source code of this file.

Functions

static void commonCopyEvent (val event)
 
static void qClipboardCutTo (val event)
 
static void qClipboardCopyTo (val event)
 
static void qClipboardPasteTo (val event)
 
 EMSCRIPTEN_BINDINGS (qtClipboardModule)
 

Function Documentation

◆ commonCopyEvent()

static void commonCopyEvent ( val  event)
static

Definition at line 21 of file qwasmclipboard.cpp.

References ba, QClipboard::Clipboard, QByteArray::constData(), QMimeData::data(), QMimeData::formats(), QWasmIntegration::get(), QWasmIntegration::getWasmClipboard(), QMimeData::hasHtml(), QMimeData::hasText(), QMimeData::html(), QByteArray::isEmpty(), QWasmClipboard::mimeData(), and QMimeData::text().

Referenced by qClipboardCopyTo(), and qClipboardCutTo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EMSCRIPTEN_BINDINGS()

EMSCRIPTEN_BINDINGS ( qtClipboardModule  )

Definition at line 94 of file qwasmclipboard.cpp.

References function, qClipboardCopyTo(), qClipboardCutTo(), and qClipboardPasteTo().

+ Here is the call graph for this function:

◆ qClipboardCopyTo()

static void qClipboardCopyTo ( val  event)
static

Definition at line 59 of file qwasmclipboard.cpp.

References commonCopyEvent(), Qt::ControlModifier, QWasmIntegration::get(), QWindowSystemInterface::handleKeyEvent(), Qt::Key_C, and QEvent::KeyPress.

Referenced by EMSCRIPTEN_BINDINGS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qClipboardCutTo()

static void qClipboardCutTo ( val  event)
static

Definition at line 48 of file qwasmclipboard.cpp.

References commonCopyEvent(), Qt::ControlModifier, QWasmIntegration::get(), QWindowSystemInterface::handleKeyEvent(), Qt::Key_X, and QEvent::KeyPress.

Referenced by EMSCRIPTEN_BINDINGS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qClipboardPasteTo()

static void qClipboardPasteTo ( val  event)
static

Definition at line 69 of file qwasmclipboard.cpp.

References QClipboard::Clipboard, QWasmIntegration::clipboard(), Qt::ControlModifier, QWasmIntegration::get(), QWindowSystemInterface::handleKeyEvent(), Qt::Key_V, QEvent::KeyPress, and qstdweb::readDataTransfer().

Referenced by EMSCRIPTEN_BINDINGS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: