From 7f3743e6359d492dec7def64a701b0153b65f11c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 17 Apr 2009 11:45:42 +0200 Subject: Added webkit icon --- data/CMakeLists.txt | 21 +++++++++++++-------- src/settings.cpp | 6 +++++- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 6652b921..e4535e07 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,19 +1,24 @@ -INSTALL( FILES - loading.gif +INSTALL( + FILES loading.gif DESTINATION ${DATA_INSTALL_DIR}/rekonq/pics ) -INSTALL( FILES - defaultbookmarks.xbel +INSTALL( + FILES defaultbookmarks.xbel DESTINATION ${DATA_INSTALL_DIR}/rekonq ) -INSTALL( FILES - rekonq.desktop +INSTALL( + FILES rekonq.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) -INSTALL( FILES - notfound.html +INSTALL( + FILES notfound.html DESTINATION ${DATA_INSTALL_DIR}/rekonq/htmls ) + +INSTALL( + FILES webkit-icon.png + DESTINATION ${DATA_INSTALL_DIR}/rekonq/pics +) \ No newline at end of file diff --git a/src/settings.cpp b/src/settings.cpp index e5a8b025..ff919eaf 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -44,6 +44,7 @@ // KDE Includes #include +#include #include #include #include @@ -102,7 +103,10 @@ Private::Private(SettingsDialog *parent) webkitUi.setupUi(widget); widget->layout()->setMargin(0); pageItem = parent->addPage(widget , i18n("Webkit")); - pageItem->setIcon(KIcon("applications-internet")); + QString webkitIconPath = KStandardDirs::locate("appdata", "pics/webkit-icon.png"); + kWarning() << webkitIconPath; + KIcon webkitIcon = KIcon( QIcon(webkitIconPath) ); + pageItem->setIcon(webkitIcon); } // ----------------------------------------------------------------------------------------------------- -- cgit v1.2.1