summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@gmail.com>2011-01-13 00:49:59 +0530
committerRohan Garg <rohangarg@gmail.com>2011-01-13 00:49:59 +0530
commit2c0e1fadc3d4bd997b2759879b939403e999ac78 (patch)
tree56bd1de4d6c2aea71618b5b712407b0a6839e6c4
parentKrazy Fixes!! (diff)
downloadrekonq-2c0e1fadc3d4bd997b2759879b939403e999ac78.tar.xz
Fix issues as pointed out by Krazy
* Fix spelling issues * Wrap Strings in QL1S * Use Q_OBJECT macro in a class that derives from QObject
-rw-r--r--src/bookmarks/bookmarkowner.h2
-rw-r--r--src/filterurljob.cpp2
-rw-r--r--src/opensearch/opensearchengine.h2
-rw-r--r--src/opensearch/opensearchreader.cpp2
4 files changed, 5 insertions, 3 deletions
diff --git a/src/bookmarks/bookmarkowner.h b/src/bookmarks/bookmarkowner.h
index 4e3f0b11..5bfc6b80 100644
--- a/src/bookmarks/bookmarkowner.h
+++ b/src/bookmarks/bookmarkowner.h
@@ -72,7 +72,7 @@ public:
// @{
/**
- * Funtions to get current information.
+ * Functions to get current information.
*/
virtual QString currentTitle() const;
virtual QString currentUrl() const;
diff --git a/src/filterurljob.cpp b/src/filterurljob.cpp
index c0632752..53b52b73 100644
--- a/src/filterurljob.cpp
+++ b/src/filterurljob.cpp
@@ -59,7 +59,7 @@ KUrl FilterUrlJob::url()
void FilterUrlJob::run()
{
// Bookmarklets handling
- if (_urlString.startsWith("javascript:"))
+ if (_urlString.startsWith(QL1S("javascript:")))
{
_url = KUrl(_urlString);
return;
diff --git a/src/opensearch/opensearchengine.h b/src/opensearch/opensearchengine.h
index a3ecf59f..c05501fb 100644
--- a/src/opensearch/opensearchengine.h
+++ b/src/opensearch/opensearchengine.h
@@ -48,6 +48,8 @@
class OpenSearchEngine : public QObject
{
+ Q_OBJECT
+
public:
typedef QPair<QString, QString> Parameter;
diff --git a/src/opensearch/opensearchreader.cpp b/src/opensearch/opensearchreader.cpp
index aff9ff36..a111854c 100644
--- a/src/opensearch/opensearchreader.cpp
+++ b/src/opensearch/opensearchreader.cpp
@@ -153,7 +153,7 @@ OpenSearchEngine *OpenSearchReader::read()
else
{
if (engine->suggestionsUrlTemplate().isEmpty()
- && type == QL1S("application/x-suggestions+json")) //note: xml is prefered
+ && type == QL1S("application/x-suggestions+json")) //note: xml is preferred
{
engine->setSuggestionsUrlTemplate(url);
engine->setSuggestionsParameters(parameters);