summaryrefslogtreecommitdiff
path: root/kwebapp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-01-19 09:32:07 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-19 09:32:07 +0100
commit9b0dc8d98fb232cabb683d5681dc0252b9532c32 (patch)
treef2d9421f8bb6cc8a60f7f8db718b89cca2061a10 /kwebapp
parentMoved access keys activation to release key event (diff)
downloadrekonq-9b0dc8d98fb232cabb683d5681dc0252b9532c32.tar.xz
Krazy fixes
- QL1S/QL1C - single-char QString efficiency - explicit ctors - normalized signals & slots
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 &);