Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceClipboard Namespace Reference

Classes

class  ClipboardService
 Clipboard-history host for Phosphor-based desktop shells. More...

Functions

PHOSPHORSERVICECLIPBOARD_EXPORT void registerQmlTypes ()
 Register every PhosphorServiceClipboard QML type under the Phosphor.Service.Clipboard module at version 1.0.

Function Documentation

◆ registerQmlTypes()

PHOSPHORSERVICECLIPBOARD_EXPORT void PhosphorServiceClipboard::registerQmlTypes ( )

Register every PhosphorServiceClipboard QML type under the Phosphor.Service.Clipboard module at version 1.0.

Idempotent on repeat calls: internally guarded by std::call_once so a hot-reloading shell that builds a fresh QQmlEngine per reload can safely call this from every engine setup without triggering Qt's duplicate-registration warning.

Called from the consuming binary (typically phosphor-shell/src/main.cpp) before any QQmlEngine loads a .qml file.