1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

SearchEngines: YouTube replaced with StartPage

Closes #1079
This commit is contained in:
nowrep 2013-11-09 15:59:35 +01:00
parent c443209e83
commit f48363d484
4 changed files with 16 additions and 15 deletions

View File

@ -68,11 +68,11 @@
<file>icons/sites/translate.png</file>
<file>icons/sites/wikipedia.png</file>
<file>icons/sites/yahoo.png</file>
<file>icons/sites/youtube.png</file>
<file>icons/preferences/preferences-desktop-keyboard-shortcuts.png</file>
<file>icons/menu/tab.png</file>
<file>icons/other/geolocation.png</file>
<file>icons/other/notification.png</file>
<file>icons/browsers/internet-explorer.png</file>
<file>icons/sites/startpage.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

View File

@ -153,12 +153,13 @@ void SearchEnginesManager::restoreDefaults()
duck.url = "https://duckduckgo.com/?q=%s&t=qupzilla";
duck.shortcut = "d";
Engine google;
google.name = "Google";
google.icon = QIcon(":icons/sites/google.png");
google.url = "http://www.google.com/search?client=qupzilla&q=%s";
google.shortcut = "g";
google.suggestionsUrl = "http://suggestqueries.google.com/complete/search?output=firefox&q=%s";
Engine sp;
sp.name = "StartPage";
sp.icon = QIcon(":/icons/sites/startpage.png");
sp.url = "https://startpage.com/do/search";
sp.postData = "query=%s&cat=web&language=english";
sp.shortcut = "sp";
sp.suggestionsUrl = "https://startpage.com/cgi-bin/csuggest?output=json&lang=english&query=%s";
Engine wiki;
wiki.name = "Wikipedia (en)";
@ -167,17 +168,17 @@ void SearchEnginesManager::restoreDefaults()
wiki.shortcut = "w";
wiki.suggestionsUrl = "http://en.wikipedia.org/w/api.php?action=opensearch&search=%s&namespace=0";
Engine yt;
yt.name = "YouTube";
yt.icon = QIcon(":/icons/sites/youtube.png");
yt.url = "http://www.youtube.com/results?search_query=%s&search=Search";
yt.shortcut = "yt";
yt.suggestionsUrl = "http://suggestqueries.google.com/complete/search?ds=yt&output=firefox&q=%s";
Engine google;
google.name = "Google";
google.icon = QIcon(":icons/sites/google.png");
google.url = "http://www.google.com/search?client=qupzilla&q=%s";
google.shortcut = "g";
google.suggestionsUrl = "http://suggestqueries.google.com/complete/search?output=firefox&q=%s";
addEngine(duck);
addEngine(google);
addEngine(sp);
addEngine(wiki);
addEngine(yt);
addEngine(google);
m_defaultEngine = duck;