diff options
author | Rohan Garg <rohangarg@kubuntu.org> | 2010-09-11 17:29:03 +0530 |
---|---|---|
committer | Rohan Garg <rohangarg@kubuntu.org> | 2010-09-11 17:29:03 +0530 |
commit | c4fbac5bbdc10c2d657f8b3a7759ab7edf52a744 (patch) | |
tree | 902950a8cdb29710d6c4eae36a00a2f662aa4015 /src | |
parent | Merge branch 'iconFixes2' (diff) | |
download | rekonq-c4fbac5bbdc10c2d657f8b3a7759ab7edf52a744.tar.xz |
Krazy Fixes for rekonq
modified: src/bookmarks/bookmarkprovider.cpp
modified: src/history/historymanager.cpp
modified: src/iconmanager.cpp
modified: src/urlbar/listitem.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/bookmarkprovider.cpp | 2 | ||||
-rw-r--r-- | src/history/historymanager.cpp | 2 | ||||
-rw-r--r-- | src/iconmanager.cpp | 2 | ||||
-rw-r--r-- | src/urlbar/listitem.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/bookmarks/bookmarkprovider.cpp b/src/bookmarks/bookmarkprovider.cpp index 3e2d2814..beca5475 100644 --- a/src/bookmarks/bookmarkprovider.cpp +++ b/src/bookmarks/bookmarkprovider.cpp @@ -266,7 +266,7 @@ void BookmarkProvider::find(QList<KBookmark> *list, const KBookmark &bookmark, c } else { - QStringList words = text.split(" "); + QStringList words = text.split(' '); bool matches = true; foreach (const QString &word, words) { diff --git a/src/history/historymanager.cpp b/src/history/historymanager.cpp index 4a3039f3..4a2c0459 100644 --- a/src/history/historymanager.cpp +++ b/src/history/historymanager.cpp @@ -240,7 +240,7 @@ QList<HistoryItem> HistoryManager::find(const QString &text) int index = m_historyFilterModel->historyLocation(url); HistoryItem item = m_history.at(index); - QStringList words = text.split(" "); + QStringList words = text.split(' '); bool matches = true; foreach (const QString &word, words) { diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp index c4b9751d..5c8fbf54 100644 --- a/src/iconmanager.cpp +++ b/src/iconmanager.cpp @@ -149,7 +149,7 @@ void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify) if(!relUrlString.isEmpty()) { - faviconUrl = relUrlString.startsWith("http") + faviconUrl = relUrlString.startsWith(QLatin1String("http")) ? KUrl(relUrlString) : KUrl(rootUrlString + QL1C('/') + relUrlString) ; } diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index 5ff90056..746b4db2 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -209,7 +209,7 @@ TextLabel::TextLabel(const QString &text, const QString &textToPointOut, QWidget : QLabel(parent) { QString t = text; - const bool wasItalic = t.startsWith("<i>"); + const bool wasItalic = t.startsWith(QLatin1String("<i>")); if (wasItalic) t.remove(QRegExp("<[/ib]*>")); |