LINUX.ORG.RU

История изменений

Исправление Atragor, (текущая версия) :

https://qt.gitorious.org/qt/qtbase/source/ffac6ee2673a573a9db4f75a89c4c53251f...

QMimeData *QAndroidPlatformClipboard::mimeData(QClipboard::Mode mode)
{
    if (QClipboard::Clipboard != mode || !QtAndroidClipboard::hasClipboardText())
        return 0;

    QMimeData *mimeData = new QMimeData();
    mimeData->setText(QtAndroidClipboard::clipboardText());
    return mimeData;
}

Исходная версия Atragor, :

https://qt.gitorious.org/qt/qtbase/source/ffac6ee2673a573a9db4f75a89c4c53251f...

const QMimeData* QClipboard::mimeData(Mode mode) const
{
    QPlatformClipboard *clipboard = QGuiApplicationPrivate::platformIntegration()->clipboard();
    if (!clipboard->supportsMode(mode)) return 0;
    return clipboard->mimeData(mode);
}