~osomon/webbrowser-app/sigabrt

« back to all changes in this revision

Viewing changes to src/app/webbrowser/AddressBar.qml

  • Committer: CI Train Bot
  • Author(s): Ugo Riboni
  • Date: 2015-09-03 09:46:29 UTC
  • mfrom: (1119.1.25 bookmark-link-refactor)
  • Revision ID: ci-train-bot@canonical.com-20150903094629-cq7h0ukm6ddtbtm1
Allow choosing the bookmark folder when bookmarking a link from the context menu. Disable the bookmark option when the link is already bookmarked. Ensure the bookmark star state in the chrome is always consistent with the bookmarked state of the current webview URL. Fixes: #1477314
Approved by: Olivier Tilloy, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    property bool incognito: false
31
31
    property alias text: textField.text
32
32
    property bool bookmarked: false
 
33
    signal toggleBookmark()
33
34
    property url requestedUrl
34
35
    property url actualUrl
35
36
    signal validated()
223
224
                    color: addressbar.bookmarked ? UbuntuColors.orange : UbuntuColors.darkGrey
224
225
                }
225
226
 
226
 
                onClicked: addressbar.bookmarked = !addressbar.bookmarked
 
227
                onClicked: addressbar.toggleBookmark()
227
228
 
228
229
                Item {
229
230
                    id: bookmarkTogglePlaceHolderItem