summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 3399dde4..45641ea8 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -51,6 +51,8 @@
HistoryManager *Application::s_historyManager = 0;
NetworkAccessManager *Application::s_networkAccessManager = 0;
DownloadManager *Application::s_downloadManager = 0;
+BookmarkProvider *Application::s_bookmarkProvider = 0;
+
Application::Application()
: KUniqueApplication()
@@ -174,6 +176,16 @@ DownloadManager *Application::downloadManager()
}
+BookmarkProvider *Application::bookmarkProvider()
+{
+ if (!s_bookmarkProvider)
+ {
+ s_bookmarkProvider = new BookmarkProvider();
+ }
+ return s_bookmarkProvider;
+}
+
+
KIcon Application::icon(const KUrl &url) const
{
KIcon icon = KIcon(QWebSettings::iconForUrl(url));