Esempio n. 1
0
void KClipboardSynchronizer::slotSelectionChanged()
{
    QClipboard *clip = QApplication::clipboard();

    //     qDebug("*** sel changed: %i", s_blocked);
    if(s_blocked || !clip->ownsSelection())
        return;

    setClipboard(new MimeSource(clip->data(QClipboard::Selection)), QClipboard::Clipboard);
}
Esempio n. 2
0
void KClipboardSynchronizer::slotClipboardChanged()
{
    QClipboard *clip = QApplication::clipboard();

    //     qDebug("*** clip changed : %i (implicit: %i, ownz: clip: %i, selection: %i)", s_blocked, s_implicitSelection, clip->ownsClipboard(),
    //     clip->ownsSelection());
    if(s_blocked || !clip->ownsClipboard())
        return;

    setClipboard(new MimeSource(clip->data(QClipboard::Clipboard)), QClipboard::Selection);
}