summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-28 14:50:21 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-28 14:50:21 +0200
commit7a7c3efc202db2bbcbb18b48ce9458628b4a68bb (patch)
tree51a8633ea4bdc0fd76237936707b71a4fae6ee4c
parentcleaning mainview code (unuseful method) (diff)
downloadrekonq-7a7c3efc202db2bbcbb18b48ce9458628b4a68bb.tar.xz
Krazy check issues fixes..
-rw-r--r--src/homepage.cpp2
-rw-r--r--src/tabbar.cpp2
-rw-r--r--src/webview.cpp11
3 files changed, 8 insertions, 7 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 75aa318e..4c72712f 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -93,7 +93,7 @@ QString HomePage::speedDial()
QStringList names = ReKonfig::previewNames();
QStringList urls = ReKonfig::previewUrls();
- QString speed = QString();
+ QString speed;
for(int i = 0; i< urls.count(); ++i)
{
speed += "<div class=\"thumbnail\">";
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index dfc1482c..5c1bc076 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -126,7 +126,7 @@ QSize TabBar::tabSizeHint(int index) const
void TabBar::tabLayoutChange()
{
setTabButtonPosition();
- QTabBar::tabLayoutChange();
+ KTabBar::tabLayoutChange();
}
diff --git a/src/webview.cpp b/src/webview.cpp
index 0f646278..e4d98298 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -214,17 +214,18 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
if(result.linkUrl().isEmpty())
{
// page action
- if (selectedText().startsWith("http://") || selectedText().startsWith("https://"))
+ QString text = selectedText();
+ if (text.startsWith( QLatin1String("http://") ) || text.startsWith( QLatin1String("https://") ))
{
//open selected text url in a new tab
- a = new KAction(KIcon("tab-new"), i18n("Open: '") + selectedText().toUtf8().left(15) + QString("...'"), this);
- a->setData(QUrl(selectedText()));
+ a = new KAction(KIcon("tab-new"), i18n("Open: '") + text.toUtf8().left(15) + QString("...'"), this);
+ a->setData(QUrl(text));
connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewTab()));
menu.addAction(a);
//open selected text url in a new window
- a = new KAction(KIcon("window-new"), i18n("Open: '") + selectedText().toUtf8().left(15) + QString("...'"), this);
- a->setData(QUrl(selectedText()));
+ a = new KAction(KIcon("window-new"), i18n("Open: '") + text.toUtf8().left(15) + QString("...'"), this);
+ a->setData(QUrl(text));
connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewWindow()));
menu.addAction(a);
}