[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-mobile] applications/webbrowser: shut up, a lot
From:       Sebastian_Kügler <sebas () kde ! org>
Date:       2012-01-31 21:48:00
Message-ID: 20120131214800.35FBAA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 70c2e9ad067eb8eb3b584838ed859772149b2664 by Sebastian Kügler.
Committed on 31/01/2012 at 22:47.
Pushed by sebas into branch 'master'.

shut up, a lot

M  +1    -4    applications/webbrowser/package/contents/ui/content/CompletionPopup.qml
 M  +0    -5    applications/webbrowser/src/history.cpp
M  +2    -3    applications/webbrowser/src/kdeclarativewebview.cpp
M  +1    -1    applications/webbrowser/src/view.cpp

http://commits.kde.org/plasma-mobile/70c2e9ad067eb8eb3b584838ed859772149b2664

diff --git a/applications/webbrowser/package/contents/ui/content/CompletionPopup.qml \
b/applications/webbrowser/package/contents/ui/content/CompletionPopup.qml index \
                282cb7c..9243c5a 100644
--- a/applications/webbrowser/package/contents/ui/content/CompletionPopup.qml
+++ b/applications/webbrowser/package/contents/ui/content/CompletionPopup.qml
@@ -158,10 +158,7 @@ Item {
                 id: rssButton
                 height: 32
                 width: height
-                visible: {
-                    print("Feeds are: " + webView.rssFeeds);
-                    return webView.rssFeeds.length != 0
-                }
+                visible: (webView.rssFeeds.length != 0)
                 anchors { top: parent.top; left: parent.left; topMargin: 0; \
leftMargin: 0; }  icon: "application-rss+xml"
                 MouseArea {
diff --git a/applications/webbrowser/src/history.cpp \
b/applications/webbrowser/src/history.cpp index 9b63fb1..6519f3c 100644
--- a/applications/webbrowser/src/history.cpp
+++ b/applications/webbrowser/src/history.cpp
@@ -94,12 +94,10 @@ void History::loadHistory()
     }
 
     emit dataChanged();
-    //kDebug() << "XXX (Re)loaded history..." << d->items.count();
 }
 
 void History::addPage(const QString &url, const QString &title)
 {
-    kDebug() << "XXX Adding page" << title << url;
     if (url.isEmpty() && title.isEmpty()) {
         return;
     }
@@ -107,7 +105,6 @@ void History::addPage(const QString &url, const QString &title)
     foreach (QObject* i, d->items) {
         CompletionItem* ci = qobject_cast<CompletionItem*>(i);
         if (ci->url() == url) {
-            kDebug() << "XXXXX Removing " << ci->name() << " ... " << ci->url();
             d->items.removeAll(i);
         }
     }
@@ -122,10 +119,8 @@ void History::addPage(const QString &url, const QString &title)
 
 void History::visitPage(const QString &url, const QString &title)
 {
-    //kDebug() << "XXXX Visiting page" << title << url;
     d->currentPage = new CompletionItem(title, url, d->icon, this);
     d->currentPage->setIconName("view-history");
-    //kDebug() << "XXX starting timer";
     d->addHistoryTimer.start();
 }
 
diff --git a/applications/webbrowser/src/kdeclarativewebview.cpp \
b/applications/webbrowser/src/kdeclarativewebview.cpp index 1175432..9446685 100644
--- a/applications/webbrowser/src/kdeclarativewebview.cpp
+++ b/applications/webbrowser/src/kdeclarativewebview.cpp
@@ -359,7 +359,7 @@ void KDeclarativeWebView::init()
 
 void KDeclarativeWebView::initSettings()
 {
-    kDebug() << "Settings up fonts and reading settings: " << \
KGlobalSettings::generalFont().family() << \
KGlobalSettings::generalFont().pointSize(); +    //kDebug() << "Settings up fonts and \
reading settings: " << KGlobalSettings::generalFont().family() << \
                KGlobalSettings::generalFont().pointSize();
     settings()->setFontFamily(QWebSettings::StandardFont,  \
                KGlobalSettings::generalFont().family());
     settings()->setFontFamily(QWebSettings::SerifFont,  \
                KGlobalSettings::generalFont().family());
     settings()->setFontFamily(QWebSettings::FixedFont,  \
KGlobalSettings::generalFont().family()); @@ -378,7 +378,7 @@ void \
KDeclarativeWebView::initSettings()  ptr->reparseConfiguration();
     KConfigGroup cg(ptr, "webbrowser");
     bool pluginsEnabled = cg.readEntry("pluginsEnabled", false);
-    kDebug() << " C++ Plugins on? " << pluginsEnabled;
+    //kDebug() << " C++ Plugins on? " << pluginsEnabled;
 
     settings()->setAttribute(QWebSettings::PluginsEnabled, pluginsEnabled);
     settingsObject()->setPluginsEnabled(pluginsEnabled);
@@ -470,7 +470,6 @@ void KDeclarativeWebView::doLoadFinished(bool ok)
 
             foreach (const QWebElement &el, \
                page()->mainFrame()->findAllElements("LINK")) {
                 if (el.attribute("type").contains("application/rss+xml")) {
-                    kDebug() << "Found feed!" << el.attribute("title") << \
el.attribute("href");  d->rssFeeds << el.attribute("href");
                 }
             }
diff --git a/applications/webbrowser/src/view.cpp \
b/applications/webbrowser/src/view.cpp index 5e0beaa..3a5f87e 100644
--- a/applications/webbrowser/src/view.cpp
+++ b/applications/webbrowser/src/view.cpp
@@ -180,7 +180,7 @@ void View::urlChanged()
 void View::urlFilterChanged()
 {
     QString newFilter = m_urlInput->property("urlFilter").toString();
-    kDebug() << "Filtering completion" << newFilter;
+    //kDebug() << "Filtering completion" << newFilter;
     m_completionModel->populate();
     m_completionModel->setFilter(newFilter);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic