Skip to content

Commit

Permalink
guessUrlFromString is not in WebKit. Fix build when compiling
Browse files Browse the repository at this point in the history
against webkit trunk and Qt < 4.6.
  • Loading branch information
mwenge authored and Jakub Wieczorek committed Nov 22, 2009
1 parent 25d0013 commit f67f163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/webview.cpp
Expand Up @@ -156,7 +156,7 @@ void WebView::loadSettings()
m_page->loadSettings();
}

#if !(QT_VERSION >= 0x040600 || defined(WEBKIT_TRUNK))
#if !(QT_VERSION >= 0x040600)
#include <qdir.h>
// DO NOT CHANGE ANYTHING IN THIS FUNCTION
// You want to change TabWidget::guessUrlFromString()
Expand Down
2 changes: 1 addition & 1 deletion src/webview.h
Expand Up @@ -84,7 +84,7 @@ class WebView : public QWebView
WebView(QWidget *parent = 0);
WebPage *webPage() const { return m_page; }

#if !(QT_VERSION >= 0x040600 || defined(WEBKIT_TRUNK))
#if !(QT_VERSION >= 0x040600)
static QUrl guessUrlFromString(const QString &url);
#endif
void loadSettings();
Expand Down

0 comments on commit f67f163

Please sign in to comment.