View Single Post
Posts: 1 | Thanked: 1 time | Joined on Oct 2014
#20
The browser.qml diff doesn't apply any more on 1.1.0.38. The ComboBox no longer has the names of the search engines hardcoded in the QML, now it seems to be getting them from org.sailfishos.browser.settings, any idea where that is defined?

Code:
            ComboBox {
                id: searchEngine

                width: parent.width
                //: Label for combobox that sets search engine used in browser
                //% "Search engine"
                label: qsTrId("settings_browser-la-search_engine")
                currentIndex: name2index(searchEngineConfig.value)

                menu: ContextMenu {
                    id: searchEngineMenu

                    Component {
                        id: menuItemComp

                        MenuItem {}
                    }

                    Component.onCompleted: {
                        var index = 0
                        settings.searchEngineList.forEach(function(name) {
                            var map = page._nameMap
                            // FIXME: _contentColumn should not be used to add items dynamicly
                            menuItemComp.createObject(searchEngineMenu._contentColumn, {"text": name})
                            map[name] = index
                            page._nameMap = map
                            index++
                        })
                    }
                }
 

The Following User Says Thank You to javimerino For This Useful Post: