summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorLionel Chauvin <megabigbug@yahoo.fr>2011-02-14 22:34:34 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-14 22:34:34 +0100
commit4a8dd8c493a590ccebb802f522528a0039d8c468 (patch)
treeb9cdb4daf42b0406c9eea28265a3b9db0366624b /src/urlbar
parentEnsure new tab button is shown on move (diff)
downloadrekonq-4a8dd8c493a590ccebb802f522528a0039d8c468.tar.xz
Replace webshorcuts icons and text.
Text: webshortcuts ---> search engines Icon: web-browser-shorctus ---> edit-web-search Reviewed by adjam
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlbar.cpp9
-rw-r--r--src/urlbar/webshortcutwidget.cpp8
2 files changed, 15 insertions, 2 deletions
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index f963be07..c0edc9df 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -453,9 +453,16 @@ IconButton *UrlBar::addRightIcon(UrlBar::icon ic)
}
break;
case UrlBar::SearchEngine:
- rightIcon->setIcon(KIcon("preferences-web-browser-shortcuts"));
+ {
+ KIcon wsIcon("edit-web-search");
+ if (wsIcon.isNull())
+ {
+ wsIcon = KIcon("preferences-web-browser-shortcuts");
+ }
+ rightIcon->setIcon(wsIcon);
rightIcon->setToolTip(i18n("Add search engine"));
break;
+ }
default:
kDebug() << "ERROR.. default non extant case!!";
break;
diff --git a/src/urlbar/webshortcutwidget.cpp b/src/urlbar/webshortcutwidget.cpp
index 629e7fb2..2637efc7 100644
--- a/src/urlbar/webshortcutwidget.cpp
+++ b/src/urlbar/webshortcutwidget.cpp
@@ -42,7 +42,13 @@ WebShortcutWidget::WebShortcutWidget(QWidget *parent)
QHBoxLayout *titleLayout = new QHBoxLayout();
mainLayout->addLayout(titleLayout);
QLabel *iconLabel = new QLabel(this);
- KIcon wsIcon("preferences-web-browser-shortcuts");
+
+ KIcon wsIcon("edit-web-search");
+ if (wsIcon.isNull())
+ {
+ wsIcon = KIcon("preferences-web-browser-shortcuts");
+ }
+
iconLabel->setPixmap(wsIcon.pixmap(22, 22));
titleLayout->addWidget(iconLabel);
m_searchTitleLabel = new QLabel(i18n("Add Search Engine"), this);