From 46cab511a44a7cfa1020da138c6a9f47f932cc87 Mon Sep 17 00:00:00 2001 From: DiabloPC Date: Thu, 14 Dec 2017 11:17:23 +0200 Subject: [PATCH] Add Yandex search engine --- resources/resources.qrc | 1 + resources/searchEngines/yandex.xml | 10 ++++++++++ src/core/SettingsManager.cpp | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 resources/searchEngines/yandex.xml diff --git a/resources/resources.qrc b/resources/resources.qrc index 3de46aa334..86de03f3f4 100644 --- a/resources/resources.qrc +++ b/resources/resources.qrc @@ -151,6 +151,7 @@ searchEngines/w3c-markup.xml searchEngines/wikipedia.xml searchEngines/yahoo.xml + searchEngines/yandex.xml searchEngines/youtube.xml diff --git a/resources/searchEngines/yandex.xml b/resources/searchEngines/yandex.xml new file mode 100644 index 0000000000..fa40cca5fe --- /dev/null +++ b/resources/searchEngines/yandex.xml @@ -0,0 +1,10 @@ + + + ya + Yandex + Search with Yandex + UTF-8 + data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEnRFWHRfcV9pY29PcmlnRGVwdGgAMzLV4rjsAAAB9ElEQVQ4jY2Sz2sTQRTHP9lsAwn+OGgxASm5hCB4qehNAoIHD57Ug5hTLJQcxIMFD/0P6iWQg0IkF6EgtKUhEAh6FTbpTVpEg0ZWLaWKNmtYNpPdmfUgE7ZVaL7wgeF9mMebx8SAWeAMkOD4/AR2jxYveJ73JZwirVbrEXDuaINLSqlwGsbj8X6hUCgASX05BlyRUm5N2vmC2PpTYtsW/P4FqZOoJ5sT3e/3N3K53BJgAxhAXCmFhrXnsPUGeesB6noRBi5Rn81mb1er1RtARje9KoQINepOIfSbL0MhROi3N8Pw5uUw6oUQ4WAw+JpOp68BCQMwpZRoYu8/o2ZSSClRriDcc4h6KSWJROJ8o9G4D8wZgOn7Php5Kg3tV3/Prgffh0S9Jp/P3wXmTMB0HGeyJPFwibMLC8jtd8RGI8KBS9TrKKUATAOIe56H5mB+nr3lZeh0GCnFCIh6jWVZa8A3Uz9Bx3AcZioV9hcXkZkMp3d2iHoA13V3y+XyBvDJAMwgCNDEV1YYJpM4xSJCKYZA1AdBQL1ef+Y4zltAHJrA6Hbxm03cSgUJqCBAwaEJer3e61qt1gY+6p94z7Ks1X+29J94nndQKpUe27a9DgwATMAbDoc/UqnU7HENGo3GC9u2u/qynuAikAdOTDHEB6ATLfwB5hyd+SwLsg8AAAAASUVORK5CYII= + + + diff --git a/src/core/SettingsManager.cpp b/src/core/SettingsManager.cpp index 3ba2695ddb..458201ddf6 100644 --- a/src/core/SettingsManager.cpp +++ b/src/core/SettingsManager.cpp @@ -197,7 +197,7 @@ void SettingsManager::createInstance(const QString &path) registerOption(Search_EnableFindInPageAsYouTypeOption, BooleanType, true); registerOption(Search_EnableFindInPageHighlightAllOption, BooleanType, false); registerOption(Search_ReuseLastQuickFindQueryOption, BooleanType, false); - registerOption(Search_SearchEnginesOrderOption, ListType, QStringList({QLatin1String("duckduckgo"), QLatin1String("wikipedia"), QLatin1String("startpage"), QLatin1String("google"), QLatin1String("yahoo"), QLatin1String("bing"), QLatin1String("youtube")})); + registerOption(Search_SearchEnginesOrderOption, ListType, QStringList({QLatin1String("duckduckgo"), QLatin1String("yandex"), QLatin1String("wikipedia"), QLatin1String("startpage"), QLatin1String("google"), QLatin1String("yahoo"), QLatin1String("bing"), QLatin1String("youtube")})); registerOption(Search_SearchEnginesSuggestionsOption, BooleanType, false); registerOption(Security_AllowMixedContentOption, BooleanType, false); registerOption(Security_CiphersOption, ListType, QStringList(QLatin1String("default")));