From a1b660daae9dd252d84ec44e8a5102277539b395 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 12 Dec 2012 18:47:35 +0100 Subject: - Code style check (codestyle script round) - restored CTRL + ENTER code - applied Vedant's patch about (thanks!!!) CCMAIL: vedant.kota@gmail.com REVIEW: 107662 REVIEWED-BY: Tirtha and me --- src/webtab/webview.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/webtab/webview.cpp') diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp index fa2676e0..e61c1986 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -167,7 +167,7 @@ void WebView::setPage(WebPage *pg) WebWindow *w = m_parentTab->webWindow(); if (w && w->window()) pg->setWindow(w->window()); -} +} bool WebView::popupSpellMenu(QContextMenuEvent *event) @@ -274,7 +274,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) if (popupSpellMenu(event)) return; } - + WebWindow *webwin = m_parentTab->webWindow(); KMenu menu(this); @@ -374,7 +374,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) a->setData(m_contextMenuHitResult.linkUrl()); connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewTab())); menu.addAction(a); - + a = new KAction(KIcon("window-new"), i18n("Open in New &Window"), &menu); a->setData(m_contextMenuHitResult.linkUrl()); connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewWindow())); @@ -387,7 +387,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInPrivateWindow())); menu.addAction(a); } - + menu.addSeparator(); // Don't show dots if we are NOT going to ask for download path @@ -541,7 +541,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) menu.addAction(a); } } - + menu.addAction(sendByMailAction); if (webwin) @@ -1495,10 +1495,10 @@ void WebView::saveImage() KAction *a = qobject_cast(sender()); KUrl imageUrl(a->data().toUrl()); - DownloadManager::self()->downloadResource( imageUrl, - KIO::MetaData(), - this, - true, - QString(), - !settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)); + DownloadManager::self()->downloadResource(imageUrl, + KIO::MetaData(), + this, + true, + QString(), + !settings()->testAttribute(QWebSettings::PrivateBrowsingEnabled)); } -- cgit v1.2.1