Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmclipboard.cpp File Reference

(0ffe8050bd5b55d64da37f5177a7e20dd9d14232)

#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(), QByteArray::data(), QWasmIntegration::get(), and QByteArray::isEmpty().

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 76 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 QWasmIntegration::get().

Referenced by EMSCRIPTEN_BINDINGS().

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