30#if !QT_CONFIG(clipboard)
32#elif defined(Q_OS_MACOS)
33 PasteboardRef pasteboard;
34 OSStatus status = PasteboardCreate(0, &pasteboard);
36 CFRelease(pasteboard);
37 return status == noErr;
46 const QString &oldText = clipBoard->text();
47 QScopeGuard guard([&](){ clipBoard->setText(oldText); });
49 const QString newText = prefix + oldText;
50 clipBoard->setText(newText);