summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-17 11:45:42 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-17 11:45:42 +0200
commit7f3743e6359d492dec7def64a701b0153b65f11c (patch)
tree84b9e6965708ada949f8ab44c9047cac0c96f273
parentUpdated desktop file (diff)
downloadrekonq-7f3743e6359d492dec7def64a701b0153b65f11c.tar.xz
Added webkit icon
-rw-r--r--data/CMakeLists.txt21
-rw-r--r--src/settings.cpp6
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 <KConfig>
+#include <KStandardDirs>
#include <KConfigSkeleton>
#include <KPageWidgetItem>
#include <KFontDialog>
@@ -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);
}
// -----------------------------------------------------------------------------------------------------