summaryrefslogtreecommitdiff
path: root/examples/webkitwidgets/browser/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webkitwidgets/browser/webview.cpp')
-rw-r--r--examples/webkitwidgets/browser/webview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/webkitwidgets/browser/webview.cpp b/examples/webkitwidgets/browser/webview.cpp
index 83a4e2d..92c4ee9 100644
--- a/examples/webkitwidgets/browser/webview.cpp
+++ b/examples/webkitwidgets/browser/webview.cpp
@@ -288,12 +288,14 @@ void WebView::mousePressEvent(QMouseEvent *event)
void WebView::mouseReleaseEvent(QMouseEvent *event)
{
QWebView::mouseReleaseEvent(event);
+#ifndef QT_NO_CLIPBOARD
if (!event->isAccepted() && (m_page->m_pressedButtons & Qt::MidButton)) {
QUrl url(QApplication::clipboard()->text(QClipboard::Selection));
if (!url.isEmpty() && url.isValid() && !url.scheme().isEmpty()) {
setUrl(url);
}
}
+#endif
}
void WebView::setStatusBarText(const QString &string)