~daker/webbrowser-app/fix.1317428

« back to all changes in this revision

Viewing changes to src/app/PanelLoader.qml

  • Committer: CI bot
  • Author(s): Olivier Tilloy
  • Date: 2014-06-30 20:47:15 UTC
  • mfrom: (586.1.3 opensearch)
  • Revision ID: ps-jenkins@lists.canonical.com-20140630204715-2fl7qm5seprr0o2d
Add support for custom search engines defined by the OpenSearch description document format
(http://www.opensearch.org/Specifications/OpenSearch/1.1). Fixes: 1277637, 1334546

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013-2014 Canonical Ltd.
3
3
 *
4
4
 * This file is part of webbrowser-app.
5
5
 *
33
33
    property bool activityButtonVisible: true
34
34
    property bool addressBarVisible: true
35
35
 
 
36
    property string searchUrl
 
37
    onSearchUrlChanged: internal.setSearchUrl()
 
38
    onChromeChanged: internal.setSearchUrl()
 
39
 
36
40
    signal urlValidated
37
41
    signal toggleActivityViewClicked
38
42
 
 
43
    QtObject {
 
44
        id: internal
 
45
        function setSearchUrl() {
 
46
            if (chromePanel.chrome !== null) {
 
47
                chromePanel.chrome.searchUrl = chromePanel.searchUrl
 
48
            }
 
49
        }
 
50
    }
 
51
 
39
52
    function open() {
40
53
        if (panel) {
41
54
            panel.open()