[WebKit-devel] [PATCH 2/2] QUrl::fromUserInput replaces QWebView::guessUrlFromString

Ingmar Vanhassel ingmar at exherbo.org
Sun Nov 15 02:45:40 CET 2009


Qt commit dbe294cd
---
 kdelauncher/main.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kdelauncher/main.cpp b/kdelauncher/main.cpp
index 0166e30..d30c43b 100644
--- a/kdelauncher/main.cpp
+++ b/kdelauncher/main.cpp
@@ -88,7 +88,7 @@ public:
         setupUI();
 
 #if QT_VERSION >= 0x040600
-        QUrl qurl = view->guessUrlFromString(url);
+        QUrl qurl = QUrl::fromUserInput(url);
 #else
         QUrl qurl(url);
 #endif
@@ -116,7 +116,7 @@ protected slots:
     void changeLocation() {
         QString string = urlEdit->text();
 #if QT_VERSION >= 0x040600
-        QUrl url = view->guessUrlFromString(string);
+        QUrl url = QUrl::fromUserInput(string);
 #else
         QUrl url(string);
 #endif
-- 
1.6.5.2



More information about the WebKit-devel mailing list