summaryrefslogtreecommitdiff
path: root/src/iconmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-11-08 10:17:36 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-11-08 10:17:36 +0100
commit7187da9812bbe6ffb5bf272f18f8e74c8d23d3c7 (patch)
tree210924711005452a622383dcfadb20c5c4cfb364 /src/iconmanager.cpp
parentLet rekonq save file remotely (diff)
downloadrekonq-7187da9812bbe6ffb5bf272f18f8e74c8d23d3c7.tar.xz
Application Shortcut
Added an action to manage it in the tools menu, added initial code to manage icons, added kwebapp application
Diffstat (limited to 'src/iconmanager.cpp')
-rw-r--r--src/iconmanager.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp
index 9ee024e2..ac53fdac 100644
--- a/src/iconmanager.cpp
+++ b/src/iconmanager.cpp
@@ -225,3 +225,16 @@ void IconManager::notifyLastStuffs(KJob *j)
doLastStuffs(j);
emit iconChanged();
}
+
+
+void IconManager::saveDesktopIconForUrl(const KUrl &u)
+{
+ KIcon icon = iconForUrl(u);
+ QString destPath = _faviconsDir + u.host() + QL1S("_WEBAPPICON.png");
+
+ QPixmap pix = icon.pixmap(16, 16);
+ int s = KIconLoader::global()->currentSize(KIconLoader::Desktop);
+ pix = pix.scaled(s, s);
+
+ pix.save(destPath);
+}