diff options
author | Alexis Menard <alexis.menard@openbossa.org> | 2012-06-19 10:27:13 -0300 |
---|---|---|
committer | Alexis Menard <alexis.menard@openbossa.org> | 2012-06-19 11:45:01 -0300 |
commit | 914604ef465e3548849ecef253d721bd9642eea1 (patch) | |
tree | 066d3821501f826d42eaad85165b529f87227c66 /src/desktop/qml/PageWidget.qml | |
parent | 922ec70059a94fd5b7119a45a85641cbf8275b8a (diff) | |
download | snowshoe-914604ef465e3548849ecef253d721bd9642eea1.tar.gz |
Implement drop down menu for comboboxes in Snowshoe desktop.
It has scrollbars and support sections. Note that the ItemSelector
is deleted by WebKit whenever the popup is hidden.
Reviewed-by: Caio Oliveira
Diffstat (limited to 'src/desktop/qml/PageWidget.qml')
-rw-r--r-- | src/desktop/qml/PageWidget.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/desktop/qml/PageWidget.qml b/src/desktop/qml/PageWidget.qml index df2e148..92788d0 100644 --- a/src/desktop/qml/PageWidget.qml +++ b/src/desktop/qml/PageWidget.qml @@ -81,6 +81,12 @@ Item { experimental.preferences.fullScreenEnabled: true experimental.preferences.developerExtrasEnabled: true + experimental.itemSelector: ItemSelector { + contentArea: root.parent + // FIXME: We should be able to use Screen.height from QtQuick.Window to + // calculate this but it isn't working yet. + maxHeight: 600 + } experimental.onDownloadRequested: { downloadItem.destinationPath = BrowserWindow.decideDownloadPath(downloadItem.suggestedFilename) |