summaryrefslogtreecommitdiff
path: root/kwebapp
diff options
context:
space:
mode:
Diffstat (limited to 'kwebapp')
-rw-r--r--kwebapp/webview.cpp12
-rw-r--r--kwebapp/webview.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/kwebapp/webview.cpp b/kwebapp/webview.cpp
index dbda6d59..55889a8a 100644
--- a/kwebapp/webview.cpp
+++ b/kwebapp/webview.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2011 by Andrea Diamantini <adjam7@gmail.com> *
+ * Copyright (C) 2011-2012 by Andrea Diamantini <adjam7@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -50,17 +50,17 @@ WebView::WebView(const QUrl &url, QWidget *parent)
: KWebView(parent)
{
page()->setForwardUnsupportedContent(true);
- connect(page(), SIGNAL(unsupportedContent(QNetworkReply *)), page(), SLOT(downloadResponse(QNetworkReply *)));
- connect(page(), SIGNAL(downloadRequested(const QNetworkRequest &)), page(), SLOT(downloadRequest(const QNetworkRequest &)));
- connect(this, SIGNAL(linkShiftClicked(const KUrl &)), page(), SLOT(downloadUrl(const KUrl &)));
+ connect(page(), SIGNAL(unsupportedContent(QNetworkReply*)), page(), SLOT(downloadResponse(QNetworkReply*)));
+ connect(page(), SIGNAL(downloadRequested(QNetworkRequest)), page(), SLOT(downloadRequest(QNetworkRequest)));
+ connect(this, SIGNAL(linkShiftClicked(KUrl)), page(), SLOT(downloadUrl(KUrl)));
QWebSettings::setIconDatabasePath(KStandardDirs::locateLocal("cache", "kwebapp.favicons"));
setContextMenuPolicy(Qt::CustomContextMenu);
- connect(this, SIGNAL(titleChanged(const QString &)), this, SLOT(setTitle(const QString &)));
+ connect(this, SIGNAL(titleChanged(QString)), this, SLOT(setTitle(QString)));
connect(this, SIGNAL(iconChanged()), this, SLOT(setIcon()));
- connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(menuRequested(const QPoint &)));
+ connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(menuRequested(QPoint)));
const QString iconPath = KStandardDirs::locateLocal("cache" , "favicons/" , true) + url.host() + "_WEBAPPICON.png";
setWindowIcon(QIcon(iconPath));
diff --git a/kwebapp/webview.h b/kwebapp/webview.h
index a53010ed..1d5aba66 100644
--- a/kwebapp/webview.h
+++ b/kwebapp/webview.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2011 by Andrea Diamantini <adjam7@gmail.com> *
+ * Copyright (C) 2011-2012 by Andrea Diamantini <adjam7@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -36,7 +36,7 @@ class WebView : public KWebView
Q_OBJECT
public:
- WebView(const QUrl &url, QWidget *parent = 0);
+ explicit WebView(const QUrl &url, QWidget *parent = 0);
private Q_SLOTS:
void setTitle(const QString &);