1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Set DuckDuckGo as a default search engine

This commit is contained in:
nowrep 2013-08-12 10:46:24 +02:00
parent 25834dea06
commit e75248a335

View File

@ -126,6 +126,12 @@ QUrl SearchEnginesManager::searchUrl(const QString &string)
void SearchEnginesManager::restoreDefaults() void SearchEnginesManager::restoreDefaults()
{ {
Engine duck;
duck.name = "DuckDuckGo";
duck.icon = QIcon(":/icons/sites/duck.png");
duck.url = "https://duckduckgo.com/?q=%s&t=qupzilla";
duck.shortcut = "d";
Engine google; Engine google;
google.name = "Google"; google.name = "Google";
google.icon = QIcon(":icons/sites/google.png"); google.icon = QIcon(":icons/sites/google.png");
@ -147,18 +153,12 @@ void SearchEnginesManager::restoreDefaults()
yt.shortcut = "yt"; yt.shortcut = "yt";
yt.suggestionsUrl = "http://suggestqueries.google.com/complete/search?ds=yt&output=firefox&q=%s"; yt.suggestionsUrl = "http://suggestqueries.google.com/complete/search?ds=yt&output=firefox&q=%s";
Engine duck; addEngine(duck);
duck.name = "DuckDuckGo";
duck.icon = QIcon(":/icons/sites/duck.png");
duck.url = "https://duckduckgo.com/?q=%s&t=qupzilla";
duck.shortcut = "d";
addEngine(google); addEngine(google);
addEngine(wiki); addEngine(wiki);
addEngine(yt); addEngine(yt);
addEngine(duck);
m_defaultEngine = google; m_defaultEngine = duck;
emit enginesChanged(); emit enginesChanged();
} }