When defined Macro QT_NO_CLIPBOARD in file : WebCore/platform/qt/PasteboardQt.cpp function Pasteboard::canSmartReplace would get a compile error Maybe below codes can resolve it: bool Pasteboard::canSmartReplace() { #ifndef QT_NO_CLIPBOARD if (QApplication::clipboard()->mimeData()->hasFormat((QLatin1String("application/vnd.qtwebkit.smartpaste")))) return true; #endif return false; }
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here.
This code is guarded with #ifndef QT_NO_CLIPBOARD in trunk.