rename webpage and webview to swisswebpage and swissswebview to be more specific; refs #115
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <errorlog.hxx>
|
||||
#include <downloadmanager.hxx>
|
||||
#include <authentication.hxx>
|
||||
#include <qbrowserlib/webview.hxx>
|
||||
#include <qbrowserlib/swisswebview.hxx>
|
||||
#include <settings.hxx>
|
||||
#include <editbookmarks.hxx>
|
||||
#include <temporaryfile.hxx>
|
||||
@@ -222,8 +222,8 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
return true;
|
||||
}
|
||||
|
||||
WebView* newTab() {
|
||||
WebView* browser(new WebView);
|
||||
SwissWebView* newTab() {
|
||||
SwissWebView* browser(new SwissWebView);
|
||||
newTab(browser);
|
||||
return browser;
|
||||
}
|
||||
@@ -277,14 +277,14 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
view->load(page);
|
||||
}
|
||||
|
||||
void newTab(WebView* browser) {
|
||||
void newTab(SwissWebView* browser) {
|
||||
browser->page()->setNetworkAccessManager(&_networkManager);
|
||||
assert(connect(&_networkManager, SIGNAL(finished(QNetworkReply*)),
|
||||
SLOT(finished(QNetworkReply*))));
|
||||
_url->setFocus();
|
||||
// WebView
|
||||
assert(connect(browser, SIGNAL(newView(WebView*)),
|
||||
SLOT(newTab(WebView*))));
|
||||
// SwissWebView
|
||||
assert(connect(browser, SIGNAL(newView(SwissWebView*)),
|
||||
SLOT(newTab(SwissWebView*))));
|
||||
// QWebView
|
||||
assert(connect(browser, SIGNAL(urlChanged(const QUrl&)),
|
||||
SLOT(urlChanged(const QUrl&))));
|
||||
|
||||
Reference in New Issue
Block a user