Merge lp:~zsombi/ubuntu-ui-toolkit/combobutton into lp:ubuntu-ui-toolkit/staging

Proposed by Zsombor Egri
Status: Merged
Approved by: Tim Peeters
Approved revision: 983
Merged at revision: 1021
Proposed branch: lp:~zsombi/ubuntu-ui-toolkit/combobutton
Merge into: lp:ubuntu-ui-toolkit/staging
Prerequisite: lp:~zsombi/ubuntu-ui-toolkit/toolkit-version
Diff against target: 6339 lines (+1632/-455)
332 files modified
components.api (+8/-0)
documentation/overview.qdoc (+10/-5)
documentation/resolution-independence.qdoc (+3/-3)
documentation/snippets/layouts/SimpleLayout.qml (+1/-1)
documentation/snippets/layouts/layout1.qml (+1/-1)
documentation/snippets/layouts/layout2.qml (+1/-1)
documentation/snippets/layouts/layout3.qml (+1/-1)
documentation/snippets/layouts/layout6.qml (+1/-1)
documentation/snippets/layouts/layout7.qml (+1/-1)
documentation/snippets/statesaver/ColorChanger.qml (+1/-1)
documentation/snippets/statesaver/MultiplePropertySaver.qml (+1/-1)
documentation/snippets/statesaver/PropertyGroupSaver.qml (+1/-1)
documentation/snippets/statesaver/PropertyGroupSaver2.qml (+1/-1)
documentation/ubuntu-components.qdoc (+1/-1)
examples/calculator/calculator.qml (+1/-1)
examples/calculator/components/DefaultLayout.qml (+1/-1)
examples/calculator/components/Functions.qml (+1/-1)
examples/jokes/jokes.qml (+1/-1)
examples/locale/locale.qml (+1/-1)
examples/ubuntu-ui-toolkit-gallery/Buttons.qml (+65/-1)
examples/unit-converter/unit-converter.qml (+1/-1)
manual-tests/button.qml (+1/-1)
modules/Ubuntu/Components/AbstractButton.qml (+1/-1)
modules/Ubuntu/Components/Action.qml (+1/-1)
modules/Ubuntu/Components/ActionItem.qml (+1/-1)
modules/Ubuntu/Components/ActionList.qml (+1/-1)
modules/Ubuntu/Components/ActivityIndicator.qml (+1/-1)
modules/Ubuntu/Components/AnimatedItem.qml (+1/-1)
modules/Ubuntu/Components/Button.qml (+6/-1)
modules/Ubuntu/Components/CheckBox.qml (+1/-1)
modules/Ubuntu/Components/ComboButton.qml (+366/-0)
modules/Ubuntu/Components/CrossFadeImage.qml (+2/-2)
modules/Ubuntu/Components/Header.qml (+1/-1)
modules/Ubuntu/Components/Icon.qml (+1/-1)
modules/Ubuntu/Components/Label.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Base.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Caption.qml (+1/-1)
modules/Ubuntu/Components/ListItems/Empty.qml (+2/-2)
modules/Ubuntu/Components/ListItems/Expandable.qml (+2/-2)
modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml (+2/-2)
modules/Ubuntu/Components/ListItems/IconVisual.qml (+1/-1)
modules/Ubuntu/Components/ListItems/ItemSelector.qml (+1/-1)
modules/Ubuntu/Components/ListItems/LabelVisual.qml (+1/-1)
modules/Ubuntu/Components/ListItems/ProgressionVisual.qml (+1/-1)
modules/Ubuntu/Components/ListItems/SingleControl.qml (+2/-2)
modules/Ubuntu/Components/ListItems/Standard.qml (+2/-2)
modules/Ubuntu/Components/ListItems/Subtitled.qml (+1/-1)
modules/Ubuntu/Components/ListItems/ValueSelector.qml (+1/-1)
modules/Ubuntu/Components/MainView.qml (+5/-5)
modules/Ubuntu/Components/Object.qml (+1/-1)
modules/Ubuntu/Components/OptionSelector.qml (+3/-3)
modules/Ubuntu/Components/OptionSelectorDelegate.qml (+3/-3)
modules/Ubuntu/Components/OrientationHelper.qml (+1/-1)
modules/Ubuntu/Components/Page.qml (+3/-3)
modules/Ubuntu/Components/PageStack.qml (+2/-2)
modules/Ubuntu/Components/PageTreeNode.qml (+1/-1)
modules/Ubuntu/Components/PageWrapper.qml (+1/-1)
modules/Ubuntu/Components/Panel.qml (+5/-5)
modules/Ubuntu/Components/Pickers/DatePicker.qml (+5/-5)
modules/Ubuntu/Components/Pickers/DayModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/Dialer.qml (+1/-1)
modules/Ubuntu/Components/Pickers/DialerHand.qml (+1/-1)
modules/Ubuntu/Components/Pickers/DialerHandGroup.qml (+1/-1)
modules/Ubuntu/Components/Pickers/HoursModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/MinutesModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/MonthModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/Picker.qml (+2/-2)
modules/Ubuntu/Components/Pickers/PickerDelegate.qml (+1/-1)
modules/Ubuntu/Components/Pickers/PickerPanel.qml (+3/-3)
modules/Ubuntu/Components/Pickers/PickerRow.qml (+1/-1)
modules/Ubuntu/Components/Pickers/SecondsModel.qml (+1/-1)
modules/Ubuntu/Components/Pickers/YearModel.qml (+1/-1)
modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml (+1/-1)
modules/Ubuntu/Components/Popups/ComposerSheet.qml (+2/-2)
modules/Ubuntu/Components/Popups/DefaultSheet.qml (+2/-2)
modules/Ubuntu/Components/Popups/Dialog.qml (+2/-2)
modules/Ubuntu/Components/Popups/Popover.qml (+2/-2)
modules/Ubuntu/Components/Popups/PopupBase.qml (+1/-1)
modules/Ubuntu/Components/Popups/SheetBase.qml (+1/-1)
modules/Ubuntu/Components/ProgressBar.qml (+1/-1)
modules/Ubuntu/Components/Scrollbar.qml (+1/-1)
modules/Ubuntu/Components/Slider.qml (+1/-1)
modules/Ubuntu/Components/StyledItem.qml (+1/-1)
modules/Ubuntu/Components/Switch.qml (+1/-1)
modules/Ubuntu/Components/Tab.qml (+1/-1)
modules/Ubuntu/Components/TabBar.qml (+1/-1)
modules/Ubuntu/Components/Tabs.qml (+3/-3)
modules/Ubuntu/Components/TextArea.qml (+1/-1)
modules/Ubuntu/Components/TextField.qml (+2/-2)
modules/Ubuntu/Components/TextInputPopover.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml (+2/-1)
modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml (+30/-12)
modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml (+243/-0)
modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml (+1/-1)
modules/Ubuntu/Components/Themes/Ambiance/qmldir (+18/-0)
modules/Ubuntu/Components/Toolbar.qml (+1/-1)
modules/Ubuntu/Components/ToolbarButton.qml (+2/-2)
modules/Ubuntu/Components/ToolbarItems.qml (+4/-4)
modules/Ubuntu/Components/UbuntuListView.qml (+3/-3)
modules/Ubuntu/Components/UbuntuNumberAnimation.qml (+2/-2)
modules/Ubuntu/Components/UbuntuShape.qml (+3/-3)
modules/Ubuntu/Components/plugin/i18n.cpp (+1/-1)
modules/Ubuntu/Components/plugin/inversemouseareatype.cpp (+4/-4)
modules/Ubuntu/Components/plugin/qquickclipboard.cpp (+1/-1)
modules/Ubuntu/Components/plugin/qquickmimedata.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucalarm.cpp (+2/-2)
modules/Ubuntu/Components/plugin/ucalarmmodel.cpp (+2/-2)
modules/Ubuntu/Components/plugin/ucapplication.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucargument.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucarguments.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucfontutils.cpp (+3/-3)
modules/Ubuntu/Components/plugin/ucmousefilters.cpp (+9/-9)
modules/Ubuntu/Components/plugin/ucstatesaver.cpp (+2/-2)
modules/Ubuntu/Components/plugin/uctheme.cpp (+3/-3)
modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp (+1/-1)
modules/Ubuntu/Components/plugin/ucunits.cpp (+2/-2)
modules/Ubuntu/Components/plugin/ucurihandler.cpp (+1/-1)
modules/Ubuntu/Components/qmldir (+3/-0)
modules/Ubuntu/PerformanceMetrics/BarGraph.qml (+1/-1)
modules/Ubuntu/Test/UbuntuTestCase.qml (+1/-1)
tests/autopilot/ubuntuuitoolkit/emulators.py (+26/-0)
tests/autopilot/ubuntuuitoolkit/fixture_setup.py (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/__init__.py (+1/-1)
tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py (+82/-15)
tests/resources/alarm/AlarmDays.qml (+1/-1)
tests/resources/alarm/Alarms.qml (+1/-1)
tests/resources/buttons/ComboTest.qml (+143/-0)
tests/resources/filters/MouseFilters.qml (+1/-1)
tests/resources/navigation/MyCustomPage.qml (+1/-1)
tests/resources/navigation/PageStack.qml (+1/-1)
tests/resources/navigation/RepeaterTabs.qml (+1/-1)
tests/resources/navigation/SimpleTabs.qml (+1/-1)
tests/resources/navigation/StackWithTabs.qml (+1/-1)
tests/resources/navigation/TabView.qml (+1/-1)
tests/resources/navigation/Tabs.qml (+1/-1)
tests/resources/pickers/DatePickerTest.qml (+1/-1)
tests/resources/pickers/PanelTest.qml (+1/-1)
tests/resources/pickers/PickerTest.qml (+1/-1)
tests/resources/popover/PopoverTest.qml (+1/-1)
tests/resources/statesaver/StateSaver.qml (+1/-1)
tests/resources/toolbar/LockedToolbar.qml (+1/-1)
tests/resources/toolbar/oldToolbarWithActions.qml (+1/-1)
tests/resources/toolbar/panels.qml (+1/-1)
tests/resources/toolbar/toolbar.qml (+1/-1)
tests/resources/urihandler/UriHandlerTest.qml (+1/-1)
tests/unit/tst_components/tst_CrossFadeImage.qml (+1/-1)
tests/unit/tst_components/tst_abstractbutton.qml (+1/-1)
tests/unit/tst_components/tst_action.qml (+1/-1)
tests/unit/tst_components/tst_actionitem.qml (+1/-1)
tests/unit/tst_components/tst_activityindicator.qml (+1/-1)
tests/unit/tst_components/tst_button.qml (+5/-1)
tests/unit/tst_components/tst_checkbox.qml (+1/-1)
tests/unit/tst_components/tst_clipboard.qml (+1/-1)
tests/unit/tst_components/tst_dateutils.qml (+1/-1)
tests/unit/tst_components/tst_fontutils.qml (+1/-1)
tests/unit/tst_components/tst_label.qml (+1/-1)
tests/unit/tst_components/tst_listitems_singlecontrol.qml (+1/-1)
tests/unit/tst_components/tst_mainview.qml (+1/-1)
tests/unit/tst_components/tst_page.qml (+1/-1)
tests/unit/tst_components/tst_pagestack.qml (+1/-1)
tests/unit/tst_components/tst_plugin_ucunits.qml (+1/-1)
tests/unit/tst_components/tst_popups_actionselectionpopover.qml (+1/-1)
tests/unit/tst_components/tst_popups_composersheet.qml (+1/-1)
tests/unit/tst_components/tst_popups_defaultsheet.qml (+1/-1)
tests/unit/tst_components/tst_popups_dialog.qml (+1/-1)
tests/unit/tst_components/tst_popups_popover.qml (+1/-1)
tests/unit/tst_components/tst_progressbar.qml (+1/-1)
tests/unit/tst_components/tst_quickutils.qml (+1/-1)
tests/unit/tst_components/tst_scrollbar.qml (+1/-1)
tests/unit/tst_components/tst_slider.qml (+1/-1)
tests/unit/tst_components/tst_switch.qml (+1/-1)
tests/unit/tst_components/tst_tab.qml (+1/-1)
tests/unit/tst_components/tst_toolbaritems.qml (+1/-1)
tests/unit/tst_components/tst_ubuntushape.qml (+1/-1)
tests/unit/tst_i18n/src/LocalizedApp.qml (+1/-1)
tests/unit/tst_mainview/AppName.qml (+1/-1)
tests/unit/tst_mainview/LocalStorage.qml (+1/-1)
tests/unit/tst_mainview/PageStack.qml (+1/-1)
tests/unit/tst_mainview/PageTitle.qml (+1/-1)
tests/unit/tst_mainview/TabsTitle.qml (+1/-1)
tests/unit/tst_page/AnchorToPage.qml (+1/-1)
tests/unit/tst_performance/ButtonGrid.qml (+1/-1)
tests/unit/tst_performance/ButtonStyleGrid.qml (+1/-1)
tests/unit/tst_performance/CheckBoxGrid.qml (+1/-1)
tests/unit/tst_performance/CheckBoxStyleGrid.qml (+1/-1)
tests/unit/tst_performance/LabelGrid.qml (+1/-1)
tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml (+1/-1)
tests/unit/tst_performance/SliderGrid.qml (+1/-1)
tests/unit/tst_performance/SliderStyleGrid.qml (+1/-1)
tests/unit/tst_performance/SwitchGrid.qml (+1/-1)
tests/unit/tst_performance/SwitchStyleGrid.qml (+1/-1)
tests/unit/tst_performance/TextWithImport.qml (+1/-1)
tests/unit/tst_performance/UbuntuShapeGrid.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_benchmark.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_checks.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_keyboard.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_mouse.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_property.qml (+1/-1)
tests/unit/tst_qmltemplate/tst_example_signals.qml (+1/-1)
tests/unit/tst_theme/tst_popoverforegroundstyle.qml (+1/-1)
tests/unit/tst_ubuntu_shape/no_distortion.qml (+1/-1)
tests/unit_x11/tst_components/tst_alarms.qml (+1/-1)
tests/unit_x11/tst_components/tst_combobutton.qml (+244/-0)
tests/unit_x11/tst_components/tst_datepicker.qml (+1/-1)
tests/unit_x11/tst_components/tst_dialer.qml (+1/-1)
tests/unit_x11/tst_components/tst_expandable.qml (+1/-1)
tests/unit_x11/tst_components/tst_expandablescolumn.qml (+1/-1)
tests/unit_x11/tst_components/tst_header.qml (+1/-1)
tests/unit_x11/tst_components/tst_hide_chrome.qml (+1/-1)
tests/unit_x11/tst_components/tst_listitems_itemselector.qml (+1/-1)
tests/unit_x11/tst_components/tst_listitems_standard.qml (+1/-1)
tests/unit_x11/tst_components/tst_optionselector.qml (+1/-1)
tests/unit_x11/tst_components/tst_panel.qml (+1/-1)
tests/unit_x11/tst_components/tst_picker.qml (+1/-1)
tests/unit_x11/tst_components/tst_pickerpanel.qml (+1/-1)
tests/unit_x11/tst_components/tst_tabbar.qml (+1/-1)
tests/unit_x11/tst_components/tst_tabs.qml (+1/-1)
tests/unit_x11/tst_components/tst_textarea.qml (+1/-1)
tests/unit_x11/tst_components/tst_textarea_in_flickable.qml (+1/-1)
tests/unit_x11/tst_components/tst_textfield.qml (+1/-1)
tests/unit_x11/tst_components/tst_toolbar.qml (+1/-1)
tests/unit_x11/tst_components/tst_ubuntulistview.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/Defaults.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaClip.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaDoNotPropagateEvents.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInFlickable.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInListView.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInPage.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInWindow.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaNormalEventStack.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaOnTop.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaOnTopNoAccept.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaParentClipped.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaPropagateEvents.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaSensingArea.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaSignals.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaTopmostItem.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/OverlappedMouseArea.qml (+1/-1)
tests/unit_x11/tst_inversemousearea/SensingAreaError.qml (+1/-1)
tests/unit_x11/tst_layouts/DefaultLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/DialerCrash.qml (+1/-1)
tests/unit_x11/tst_layouts/ExcludedItemDeleted.qml (+1/-1)
tests/unit_x11/tst_layouts/ExternalLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/ItemInstanceAsProperty.qml (+1/-1)
tests/unit_x11/tst_layouts/LargeLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/MediumLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/NestedLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/NoLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/OverlappingCondition.qml (+1/-1)
tests/unit_x11/tst_layouts/ResizingContainers.qml (+1/-1)
tests/unit_x11/tst_layouts/SimpleLayouts.qml (+1/-1)
tests/unit_x11/tst_layouts/SizedDefaultLayout.qml (+1/-1)
tests/unit_x11/tst_layouts/SmallLayout.qml (+1/-1)
tests/unit_x11/tst_mousefilters/AttachedToItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/DoubleClicked.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterFlickable.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterFlickableAfter.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInput.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInputAfter.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInputOSKExcluded.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterInverseTextInputTolerance.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterTextInput.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterTextInputAfter.qml (+1/-1)
tests/unit_x11/tst_mousefilters/FilterTextInputTolerance.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardComposedEvents.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardDblClickToTransparentMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardEventChained.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardToInverseMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardToMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardToTransparentMouseArea.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedEventsStoppedInForwards.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedEventsToTargetBlocked.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedMouseEvents.qml (+1/-1)
tests/unit_x11/tst_mousefilters/ForwardedMouseEventsStopped.qml (+1/-1)
tests/unit_x11/tst_mousefilters/Hover.qml (+1/-1)
tests/unit_x11/tst_mousefilters/HoverEvent.qml (+1/-1)
tests/unit_x11/tst_mousefilters/HoverEvent.qml.moved (+0/-38)
tests/unit_x11/tst_mousefilters/InverseAttachedToItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/InverseHover.qml (+1/-1)
tests/unit_x11/tst_mousefilters/InverseMouseFilterAttachedToNonItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/MouseFilterAttachedToNonItem.qml (+1/-1)
tests/unit_x11/tst_mousefilters/PressAndHoldAcceptedEatsClick.qml (+1/-1)
tests/unit_x11/tst_mousefilters/PressAndHoldAndClicked.qml (+1/-1)
tests/unit_x11/tst_orientation/Defaults.qml (+1/-1)
tests/unit_x11/tst_orientation/ManualAngle.qml (+1/-1)
tests/unit_x11/tst_recreateview/SimpleApp.qml (+1/-1)
tests/unit_x11/tst_statesaver/ComponentsWithStateSavers.qml (+1/-1)
tests/unit_x11/tst_statesaver/ComponentsWithStateSaversNoId.qml (+1/-1)
tests/unit_x11/tst_statesaver/CustomControl.qml (+1/-1)
tests/unit_x11/tst_statesaver/DisabledStateSaver.qml (+1/-1)
tests/unit_x11/tst_statesaver/Dynamic.qml (+1/-1)
tests/unit_x11/tst_statesaver/FirstComponent.qml (+1/-1)
tests/unit_x11/tst_statesaver/GridViewItems.qml (+1/-1)
tests/unit_x11/tst_statesaver/InvalidGroupProperty.qml (+1/-1)
tests/unit_x11/tst_statesaver/InvalidUID.qml (+1/-1)
tests/unit_x11/tst_statesaver/ListViewItems.qml (+1/-1)
tests/unit_x11/tst_statesaver/NestedDynamics.qml (+1/-1)
tests/unit_x11/tst_statesaver/NormalAppClose.qml (+1/-1)
tests/unit_x11/tst_statesaver/RepeaterStates.qml (+1/-1)
tests/unit_x11/tst_statesaver/SameIdsInDifferentComponents.qml (+1/-1)
tests/unit_x11/tst_statesaver/SaveArrays.qml (+1/-1)
tests/unit_x11/tst_statesaver/SaveObject.qml (+1/-1)
tests/unit_x11/tst_statesaver/SavePropertyGroups.qml (+1/-1)
tests/unit_x11/tst_statesaver/SaveSupportedTypes.qml (+1/-1)
tests/unit_x11/tst_statesaver/SecondComponent.qml (+1/-1)
tests/unit_x11/tst_statesaver/SimpleApp.qml (+1/-1)
tests/unit_x11/tst_statesaver/TwoDynamics.qml (+1/-1)
tests/unit_x11/tst_statesaver/ValidGroupProperty.qml (+1/-1)
tests/unit_x11/tst_statesaver/ValidUID.qml (+1/-1)
To merge this branch: bzr merge lp:~zsombi/ubuntu-ui-toolkit/combobutton
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tim Peeters Approve
Nekhelesh Ramananthan Pending
Review via email: mp+216819@code.launchpad.net

This proposal supersedes a proposal from 2014-04-10.

Commit message

ComboButton component.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : Posted in a previous version of this proposal

Is there a design document describing the combo button behaviour and appearance?

review: Needs Information
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> Is there a design document describing the combo button behaviour and
> appearance?

The design is here http://design.ubuntu.com/apps/building-blocks/buttons, but the combo button design had been updated, and the site does not have the updated layouts yet.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

I think the blue contents for the combobutton in the gallery is quite ugly:
http://ubuntuone.com/4jy8WPRYPLbLTez89wzqRh
also it does not really show how it should be used, with listitems that have alternative options to click on. Please change the example in the gallery.

I also don't really like the colors used in the button itself, but I guess we need design input for that.

Finally, the ^/V just "flips" when you click it, a rotation animation such as the ValueSelector has looks more sleek.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

I added an icon to the combobutton example:

            ComboButton {
                text: "Press me"
                objectName: "combobutton_collapsed"
                comboList: Rectangle {
                    height: units.gu(20)
                    width: parent.width
                    color: "blue"
                }
                iconSource: "call.png"

the icon gets aligned wrong, see http://ubuntuone.com/3LHlrfUwFssHkbx00v33Br

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> I think the blue contents for the combobutton in the gallery is quite ugly:
> http://ubuntuone.com/4jy8WPRYPLbLTez89wzqRh
> also it does not really show how it should be used, with listitems that have
> alternative options to click on. Please change the example in the gallery.

Agreed. I'll add a Column with items into it.
>
>
> I also don't really like the colors used in the button itself, but I guess we
> need design input for that.

The colors I got from design. We were supposed to get UI facelift again for all the components. If they don't like the design, they can change it. Actually I was thinking to expose these colors/font properties so user can customize them freely.

>
> Finally, the ^/V just "flips" when you click it, a rotation animation such as
> the ValueSelector has looks more sleek.

That's the point. The chevron should not be animated while the dropdown toggles. The maximum we could do is to fade the image transition, however atm we don't have separate up/down chevrons. But we can make one, so I'll update the UI.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> I added an icon to the combobutton example:
>
> ComboButton {
> text: "Press me"
> objectName: "combobutton_collapsed"
> comboList: Rectangle {
> height: units.gu(20)
> width: parent.width
> color: "blue"
> }
> iconSource: "call.png"
>
> the icon gets aligned wrong, see http://ubuntuone.com/3LHlrfUwFssHkbx00v33Br

Fixed in revno 960

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:964
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/7/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/169
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4732
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/7
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/7
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/7/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/7
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/162
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4315
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4315/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/5887
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4085
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4861
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/4861/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/7/rebuild

review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

PASSED: Continuous integration, rev:966
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/34/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/261
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4864
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/34
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/34
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/34/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/34
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/248
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4442
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4442/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6083
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4201
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5007
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5007/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/34/rebuild

review: Approve (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

>> Finally, the ^/V just "flips" when you click it, a rotation animation such as
>> the ValueSelector has looks more sleek.
>
>That's the point. The chevron should not be animated while the dropdown toggles. The maximum we could do is to fade >the image transition, however atm we don't have separate up/down chevrons. But we can make one, so I'll update the UI.

The point is not to make it look pretty?
Why no animation? You don't need to have separate up/down chevrons, you can rotate the chevron while opening the options

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

When I launch the gallery (using the gallery.sh script in uitk root), I get a few errors like this:
file:///home/tim/dev/ubuntu-ui-toolkit/r/combobutton/modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml:201:20: Unable to assign [undefined] to QColor

Also when I open the popover for a combobutton, the items are not clickable to select them.

review: Needs Fixing
Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> When I launch the gallery (using the gallery.sh script in uitk root), I get a
> few errors like this:
> file:///home/tim/dev/ubuntu-ui-toolkit/r/combobutton/modules/Ubuntu/Components
> /Themes/Ambiance/ComboButtonStyle.qml:201:20: Unable to assign [undefined] to
> QColor

Fixed.

>
>
> Also when I open the popover for a combobutton, the items are not clickable to
> select them.

Clicking on any item in the ComboButton's combo list does not automatically collapse the combo. I can add that, but that is not the default behavior of the component.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

108 /*!
109 + The font used for the button's text.
110 + */
111 + property font font: __styleInstance ? __styleInstance.defaultFont : Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
112 +

should this be readonly?

if you overwrite the font, will the style pick it up?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

155 + The \a {dropdown} is a button located on the top-right side of the expanded
156 + component. Its functionality is to drive the component's expanded state.

It is also there on the right when the component is not expanded.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

316 + The default value is \l collapsedHeight + 19.5 GU.
317 + \sa collapsedHeight
318 + */
319 + property real expandedHeight: collapsedHeight + units.gu(19.5)

why 19.5?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

362 + default property alias comboList: comboListHolder.data

Is it needed to make this the default property? Does it make the code more clear to have the elements in the comboList as children of the ComboButton instead of giving this property?

If we keep the 'default' here, add a remark in the documentation that the children of the ComboButton are what will appear in the "panel" when expanded.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

348 + readonly property real comboListHeight: (expandedHeight < 0) ?
349 + comboListHolder.height :
350 + (expandedHeight - collapsedHeight -
351 + (combo.__styleInstance ? combo.__styleInstance.comboListMargin : 0))
352 +

Just to be safe with custom styles, check for combo.__styleInstance.hasOwnProperty(comboListMargin)

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

I'd like to see a code example where a very simple Column with (Abstract)Buttons is used instead of a ListView for the comboList.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

364 + /* ----------------- Color and font configurations ----------------- */
365 + /*!
366 + The property specifies the color of the dropdown button when expanded.
367 + */
368 + property color dropdownColorPressed: __styleInstance ? __styleInstance.defaultDropdownColorPressed : color
369 +
370 + /*!
371 + The property specifies the color of the dropdown button when collapsed.
372 + */
373 + property color dropdownColorReleased: __styleInstance ? __styleInstance.defaultDropdownColorReleased : color

1 - check for hasOwnProperty(defaultDropdownColorPressed / defaultDropdownColorReleased).
2 - In this case expanded and collapsed is better than pressed/released, since you don't have to keep pressing to keep the item expanded.
3 - in the documentation, say the BACKGROUND color of the dropdown button AND THE COMBO LIST.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

Do we need the autoCollapse property? It is easy enough to implement if the app developer wants it.
What are use cases for having it/not having it?

I like to keep the API as minimal as possible (while still being practical). It is always easier to add stuff later than to remove it, and by not making things configurable we can more easily keep it consistent among apps and change defaults when design requests that.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal

FAILED: Continuous integration, rev:967
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/39/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/286
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4896
    FAILURE: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/39/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/39
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/39/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/39
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/271
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4473
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4473/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6118
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4231
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5039
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5039/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/39/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

251 + As combo list content is unknown for the component, eventual collapsing when
252 + an action selected from the combo list holder must be driven manually. Also,
253 + the default action of the main button can be changed in this way.

Can you rewrite these two sentences? I don't understand what you mean

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

385 + Component.onCompleted: {
386 + // update mouse area to report clicks only on the main button area
387 + // area excluding dropDown button and combo list
388 + // we must do separate bindings as __mouseArea is a read-only property

__mouseArea was not defined as a readonly property. But maybe it being an alias has the same effect?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

in onCompleted:

398 + // bind a height calculation to avoid unwanted change
399 + combo.height = Qt.binding(function() {return collapsedHeight + __styleInstance.comboListPanel.height});

hmm.. so if the developers set combo.height, it will be overridden in onCompleted? That will cause confusion. At least mention it in the docs, or preferably find another way to do this.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : Posted in a previous version of this proposal

The positioning of the button label seems a bit inconsistent. When there is only a label or an icon present, it is centered. However if both the label and icon is present, then they are aligned to the left. Why? The Button component does not follow this format either.

review: Needs Fixing
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote : Posted in a previous version of this proposal

How does the coloring of the comboList work? Is it possible for the app dev to modify it? The Expansion ListItem by Mzanetti just uses the app background which makes it integrate well with an app. Does comboList follow the same behaviour? Same question regarding the dropdown button.

review: Needs Information
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

402 + // dropdown button
403 + MouseArea {
404 + id: dropDown

Why not an abstractButton? That gives you a HapticsEffect and onClicked when enter is pressed.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

419 + // expansion list
420 + Flickable {
421 + id: comboHolder

Some times you don't need to have a Flickable. Is it too complicated (reparenting) to put the Flickable in a Loader?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

473 + // drive the expansion height of the combo list holder
474 + Binding {
475 + target: combo.__styleInstance.comboListPanel
476 + property: "height"
477 + value: {
478 + if (!expanded) {
479 + return 0;
480 + }
481 + if (comboListHolder.anchorFill) {
482 + return combo.comboListHeight + combo.__styleInstance.comboListMargin;
483 + }
484 +
485 + var h = comboListHolder.height;
486 + var max = combo.comboListHeight + combo.__styleInstance.comboListMargin;
487 + if (combo.expandedHeight < 0) {
488 + return max;
489 + }
490 +
491 + return MathUtils.clamp(h, 0, max);
492 + }
493 + }

This belongs in the style.

review: Needs Fixing
Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

494 + // for testing purposes only
495 + Binding {
496 + target: combo.__styleInstance.comboListPanel
497 + property: "objectName"
498 + value: "combobutton_combopanel"
499 + }

if it is for testing only, remove it before releasing.

Why don't you just set the objectName in the style?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

501 + /*! \internal */
502 + // on style change, update the visual's names so we can access it when testing
503 + onStyleChanged: if (__styleInstance) __styleInstance.dropdownButtonVisuals.objectName = "combobutton_dropdow_visuals"
504 +}

what if you set a style that doens't have dropdownButtonVisuals?

Again, why not set it in the style?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

528 + property Item backgroundSource: null

from reading only ButtonStyle it is not clear to me what this property does. Can you add a comment there that explains it?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

629 + /*!
630 + The item which will hold the combo list data.
631 + */
632 + property Item comboList: comboListContent

why do you need to expose this in the style?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

652 + /*!
653 + Default color for the dropdown button when released.
654 + */
655 + property color defaultDropdownColorReleased: defaultColor
656 + /*!
657 + Default color for dropdown button when pressed.
658 + */
659 + property color defaultDropdownColorPressed: Qt.rgba(0, 0, 0, 0.05)

I would name these Expanded and Collapsed instead of Pressed and Released.

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

673 + /*! \internal */
674 + property ComboButton combo: styledItem

you could make it really internal

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

    /*! \internal */
    function colorHack(color) { return Qt.rgba(color.r, color.g, color.b, color.a); }

also this could be really internal

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

It is not clear to me why we need this. Can you add a comment to explain?

Revision history for this message
Tim Peeters (tpeeters) wrote : Posted in a previous version of this proposal

^a comment in the code I mean :)

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 108 /*!
> 109 + The font used for the button's text.
> 110 + */
> 111 + property font font: __styleInstance ? __styleInstance.defaultFont :
> Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
> 112 +
>
>
> should this be readonly?

No. As with the colors, we need to be able to configure the fonts without the need to redo the style.

>
> if you overwrite the font, will the style pick it up?

Yes. This binding is just to take the style default, whatever the user will set will be reflected in the style.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 316 + The default value is \l collapsedHeight + 19.5 GU.
> 317 + \sa collapsedHeight
> 318 + */
> 319 + property real expandedHeight: collapsedHeight + units.gu(19.5)
>
>
> why 19.5?

Because that's the value that can keep 3 ListItems without clipping.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 362 + default property alias comboList: comboListHolder.data
>
> Is it needed to make this the default property? Does it make the code more
> clear to have the elements in the comboList as children of the ComboButton
> instead of giving this property?

And what would you do with the children components added to it eventually? Where would you put those? At least in this way you are sure that it lands in the combo list...

>
> If we keep the 'default' here, add a remark in the documentation that the
> children of the ComboButton are what will appear in the "panel" when expanded.

It's there :)

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 348 + readonly property real comboListHeight: (expandedHeight < 0) ?
> 349 + comboListHolder.height :
> 350 + (expandedHeight - collapsedHeight -
> 351 + (combo.__styleInstance ? combo.__styleInstance.comboListMargin : 0))
> 352 +
>
> Just to be safe with custom styles, check for
> combo.__styleInstance.hasOwnProperty(comboListMargin)

Actually we should not do that anymore. This is the first component that has the style API fixed, so we should no longer check for the existence of the properties.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> I'd like to see a code example where a very simple Column with
> (Abstract)Buttons is used instead of a ListView for the comboList.

If you mean you'd like to see an example in gallery/documentation, it's ok, I'll add one. However there's one not with Buttons but with other elements in the tests/resources/buttons

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 364 + /* ----------------- Color and font configurations -----------------
> */
> 365 + /*!
> 366 + The property specifies the color of the dropdown button when
> expanded.
> 367 + */
> 368 + property color dropdownColorPressed: __styleInstance ?
> __styleInstance.defaultDropdownColorPressed : color
> 369 +
> 370 + /*!
> 371 + The property specifies the color of the dropdown button when
> collapsed.
> 372 + */
> 373 + property color dropdownColorReleased: __styleInstance ?
> __styleInstance.defaultDropdownColorReleased : color
>
>
> 1 - check for hasOwnProperty(defaultDropdownColorPressed /
> defaultDropdownColorReleased).

Nope. As said, style API will need to match in order to have the component working properly.

> 2 - In this case expanded and collapsed is better than pressed/released, since
> you don't have to keep pressing to keep the item expanded.
> 3 - in the documentation, say the BACKGROUND color of the dropdown button AND
> THE COMBO LIST.

Agree. Will fix that.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> Do we need the autoCollapse property? It is easy enough to implement if the
> app developer wants it.
> What are use cases for having it/not having it?
>
> I like to keep the API as minimal as possible (while still being practical).
> It is always easier to add stuff later than to remove it, and by not making
> things configurable we can more easily keep it consistent among apps and
> change defaults when design requests that.

Removed.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> The positioning of the button label seems a bit inconsistent. When there is
> only a label or an icon present, it is centered. However if both the label and
> icon is present, then they are aligned to the left. Why? The Button component
> does not follow this format either.

Actually it is consistent with Button, especially that both the component and the style derives/uses the Button style. Check the Ubuntu UI Toolkit gallery's Buttons page, where all the buttons are presented.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> How does the coloring of the comboList work? Is it possible for the app dev to
> modify it? The Expansion ListItem by Mzanetti just uses the app background
> which makes it integrate well with an app. Does comboList follow the same
> behaviour? Same question regarding the dropdown button.

We've changed the API a bit and have dropdownColor which colors both the dropdown and the combo list background. The color codes we got are not yet in par with the app background, however those may change.

Expandable does not use any color, neither the text color is changeable. Which introduces problems like text not being readable when has the same tone as the background. We still don't have a proper fox for those cases.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 402 + // dropdown button
> 403 + MouseArea {
> 404 + id: dropDown
>
>
> Why not an abstractButton? That gives you a HapticsEffect and onClicked when
> enter is pressed.

Fixed.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 419 + // expansion list
> 420 + Flickable {
> 421 + id: comboHolder
>
>
> Some times you don't need to have a Flickable. Is it too complicated
> (reparenting) to put the Flickable in a Loader?

As we discussed, it is more bug-prone, beside it introduces an extra object for the cases we need a Flickable...

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 528 + property Item backgroundSource: null
>
> from reading only ButtonStyle it is not clear to me what this property does.
> Can you add a comment there that explains it?

Done.

Revision history for this message
Zsombor Egri (zsombi) wrote : Posted in a previous version of this proposal

> 629 + /*!
> 630 + The item which will hold the combo list data.
> 631 + */
> 632 + property Item comboList: comboListContent
>
> why do you need to expose this in the style?

The style exposes two properties for the combo list:
1) comboListPanel, which holds the entire combo list - this is exposed to the component so it can control its size
2) comboListHolder (former comboList) which is the actual item onto which the combo list will be placed.

Now, implementations can have both of them pointing to the same component, however we need now this to be separated as the first one is the UbuntuShape and the second one is the item that goes into the shape and clipped.

I've added additional explanation to the properties.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Prerequisite added, component to land in version 1.1

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

good stuff :)

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

Jenkins got confused, let's try again.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

3490 + def test_main_pressed():

It wasn't Jenkins, it was me. In one of the latest revisions the self param got removed from the method...

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:980
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/98/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/431
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/5055
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/98
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/98
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/98/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/98
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/389
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4678
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4678/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6400
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4349
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5244
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5244/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/98/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

thanks

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
983. By Zsombor Egri

rogue file removed

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'components.api'
2--- components.api 2014-04-25 12:06:54 +0000
3+++ components.api 2014-04-25 13:00:38 +0000
4@@ -45,6 +45,14 @@
5 readonly property color coolGrey
6 property Gradient orangeGradient
7 property Gradient greyGradient
8+ComboButton 1.1
9+Button
10+ property bool expanded
11+ property real collapsedHeight
12+ property real expandedHeight
13+ readonly property real comboListHeight
14+ default property list<Item> comboList
15+ property color dropdownColor
16 CrossFadeImage 0.1 1.0
17 Item
18 property url source
19
20=== modified file 'documentation/overview.qdoc'
21--- documentation/overview.qdoc 2014-04-20 19:25:12 +0000
22+++ documentation/overview.qdoc 2014-04-25 13:00:38 +0000
23@@ -31,7 +31,7 @@
24 \part Basic QML Types
25 Available through:
26 \code
27- import Ubuntu.Components 1.0
28+ import Ubuntu.Components 1.1
29 \endcode
30 \annotatedlist ubuntu
31
32@@ -66,28 +66,33 @@
33 \part Theming Elements
34 Available through:
35 \code
36- import Ubuntu.Components 1.0
37+ import Ubuntu.Components 1.1
38 \endcode
39 \annotatedlist theming
40
41+ \part Style API
42+ The Style API defines the interface components use to style the visuals.
43+ Themes must make sure that these interfaces are all implemented.
44+ \annotatedlist style-api
45+
46 \part Resolution Independence Items
47 Available through:
48 \code
49- import Ubuntu.Components 1.0
50+ import Ubuntu.Components 1.1
51 \endcode
52 \annotatedlist resolution-independence
53
54 \part Parsing Command-Line Arguments
55 Available through:
56 \code
57- import Ubuntu.Components 1.0
58+ import Ubuntu.Components 1.1
59 \endcode
60 \annotatedlist ubuntu-commandline
61
62 \part Services
63 Available through:
64 \code
65- import Ubuntu.Components 1.0
66+ import Ubuntu.Components 1.1
67 \endcode
68 \annotatedlist ubuntu-services
69
70
71=== modified file 'documentation/resolution-independence.qdoc'
72--- documentation/resolution-independence.qdoc 2014-04-20 19:25:12 +0000
73+++ documentation/resolution-independence.qdoc 2014-04-25 13:00:38 +0000
74@@ -64,7 +64,7 @@
75
76 Example Usage:
77 \code
78- import Ubuntu.Components 1.0
79+ import Ubuntu.Components 1.1
80
81 Item {
82 width: units.gu(2)
83@@ -79,7 +79,7 @@
84
85 Example Usage:
86 \code
87- import Ubuntu.Components 1.0
88+ import Ubuntu.Components 1.1
89
90 Rectangle {
91 height: units.dp(1)
92@@ -143,7 +143,7 @@
93
94 Example Usage:
95 \code
96- import Ubuntu.Components 1.0
97+ import Ubuntu.Components 1.1
98
99 Label {
100 fontSize: "small"
101
102=== modified file 'documentation/snippets/layouts/SimpleLayout.qml'
103--- documentation/snippets/layouts/SimpleLayout.qml 2014-04-20 19:25:12 +0000
104+++ documentation/snippets/layouts/SimpleLayout.qml 2014-04-25 13:00:38 +0000
105@@ -15,7 +15,7 @@
106 */
107
108 import QtQuick 2.0
109-import Ubuntu.Components 1.0
110+import Ubuntu.Components 1.1
111 import Ubuntu.Layouts 1.0
112
113 Item {
114
115=== modified file 'documentation/snippets/layouts/layout1.qml'
116--- documentation/snippets/layouts/layout1.qml 2014-04-20 19:25:12 +0000
117+++ documentation/snippets/layouts/layout1.qml 2014-04-25 13:00:38 +0000
118@@ -16,7 +16,7 @@
119
120 //![0]
121 import QtQuick 2.0
122-import Ubuntu.Components 1.0
123+import Ubuntu.Components 1.1
124 import Ubuntu.Layouts 1.0
125
126 Item {
127
128=== modified file 'documentation/snippets/layouts/layout2.qml'
129--- documentation/snippets/layouts/layout2.qml 2014-04-20 19:25:12 +0000
130+++ documentation/snippets/layouts/layout2.qml 2014-04-25 13:00:38 +0000
131@@ -16,7 +16,7 @@
132
133 //![0]
134 import QtQuick 2.0
135-import Ubuntu.Components 1.0
136+import Ubuntu.Components 1.1
137 import Ubuntu.Layouts 1.0
138
139 Item {
140
141=== modified file 'documentation/snippets/layouts/layout3.qml'
142--- documentation/snippets/layouts/layout3.qml 2014-04-20 19:25:12 +0000
143+++ documentation/snippets/layouts/layout3.qml 2014-04-25 13:00:38 +0000
144@@ -16,7 +16,7 @@
145
146 //![0]
147 import QtQuick 2.0
148-import Ubuntu.Components 1.0
149+import Ubuntu.Components 1.1
150 import Ubuntu.Layouts 1.0
151
152 Item {
153
154=== modified file 'documentation/snippets/layouts/layout6.qml'
155--- documentation/snippets/layouts/layout6.qml 2014-04-20 19:25:12 +0000
156+++ documentation/snippets/layouts/layout6.qml 2014-04-25 13:00:38 +0000
157@@ -16,7 +16,7 @@
158
159 //![0]
160 import QtQuick 2.0
161-import Ubuntu.Components 1.0
162+import Ubuntu.Components 1.1
163 import Ubuntu.Layouts 1.0
164
165 Item {
166
167=== modified file 'documentation/snippets/layouts/layout7.qml'
168--- documentation/snippets/layouts/layout7.qml 2014-04-20 19:25:12 +0000
169+++ documentation/snippets/layouts/layout7.qml 2014-04-25 13:00:38 +0000
170@@ -16,7 +16,7 @@
171
172 //![0]
173 import QtQuick 2.0
174-import Ubuntu.Components 1.0
175+import Ubuntu.Components 1.1
176 import Ubuntu.Layouts 1.0
177
178 Item {
179
180=== modified file 'documentation/snippets/statesaver/ColorChanger.qml'
181--- documentation/snippets/statesaver/ColorChanger.qml 2014-04-20 19:25:12 +0000
182+++ documentation/snippets/statesaver/ColorChanger.qml 2014-04-25 13:00:38 +0000
183@@ -16,7 +16,7 @@
184
185 //![color-saver]
186 import QtQuick 2.0
187-import Ubuntu.Components 1.0
188+import Ubuntu.Components 1.1
189
190 Rectangle {
191 id: root
192
193=== modified file 'documentation/snippets/statesaver/MultiplePropertySaver.qml'
194--- documentation/snippets/statesaver/MultiplePropertySaver.qml 2014-04-20 19:25:12 +0000
195+++ documentation/snippets/statesaver/MultiplePropertySaver.qml 2014-04-25 13:00:38 +0000
196@@ -16,7 +16,7 @@
197
198 //![group-saver]
199 import QtQuick 2.0
200-import Ubuntu.Components 1.0
201+import Ubuntu.Components 1.1
202
203 Rectangle {
204 id: root
205
206=== modified file 'documentation/snippets/statesaver/PropertyGroupSaver.qml'
207--- documentation/snippets/statesaver/PropertyGroupSaver.qml 2014-04-20 19:25:12 +0000
208+++ documentation/snippets/statesaver/PropertyGroupSaver.qml 2014-04-25 13:00:38 +0000
209@@ -16,7 +16,7 @@
210
211 //![property-group-saver]
212 import QtQuick 2.0
213-import Ubuntu.Components 1.0
214+import Ubuntu.Components 1.1
215
216 Rectangle {
217 id: root
218
219=== modified file 'documentation/snippets/statesaver/PropertyGroupSaver2.qml'
220--- documentation/snippets/statesaver/PropertyGroupSaver2.qml 2014-04-20 19:25:12 +0000
221+++ documentation/snippets/statesaver/PropertyGroupSaver2.qml 2014-04-25 13:00:38 +0000
222@@ -16,7 +16,7 @@
223
224 //![property-group-saver]
225 import QtQuick 2.0
226-import Ubuntu.Components 1.0
227+import Ubuntu.Components 1.1
228
229 Rectangle {
230 id: root
231
232=== modified file 'documentation/ubuntu-components.qdoc'
233--- documentation/ubuntu-components.qdoc 2014-04-20 19:25:12 +0000
234+++ documentation/ubuntu-components.qdoc 2014-04-25 13:00:38 +0000
235@@ -15,7 +15,7 @@
236 */
237
238 /*!
239- \qmlmodule Ubuntu.Components 1.0
240+ \qmlmodule Ubuntu.Components 1.1
241 \title Basic QML Types
242 \nextpage {Ubuntu User Interface Toolkit}
243 */
244
245=== modified file 'examples/calculator/calculator.qml'
246--- examples/calculator/calculator.qml 2014-04-20 19:25:12 +0000
247+++ examples/calculator/calculator.qml 2014-04-25 13:00:38 +0000
248@@ -17,7 +17,7 @@
249 */
250
251 import QtQuick 2.0
252-import Ubuntu.Components 1.0
253+import Ubuntu.Components 1.1
254 import Ubuntu.Layouts 1.0
255 import "components"
256 import "components/calculator.js" as Calculator
257
258=== modified file 'examples/calculator/components/DefaultLayout.qml'
259--- examples/calculator/components/DefaultLayout.qml 2014-04-20 19:25:12 +0000
260+++ examples/calculator/components/DefaultLayout.qml 2014-04-25 13:00:38 +0000
261@@ -17,7 +17,7 @@
262 */
263
264 import QtQuick 2.0
265-import Ubuntu.Components 1.0
266+import Ubuntu.Components 1.1
267 import Ubuntu.Layouts 1.0
268
269 Item {
270
271=== modified file 'examples/calculator/components/Functions.qml'
272--- examples/calculator/components/Functions.qml 2014-04-20 19:25:12 +0000
273+++ examples/calculator/components/Functions.qml 2014-04-25 13:00:38 +0000
274@@ -17,7 +17,7 @@
275 */
276
277 import QtQuick 2.0
278-import Ubuntu.Components 1.0
279+import Ubuntu.Components 1.1
280 import Ubuntu.Layouts 1.0
281
282 Grid {
283
284=== modified file 'examples/jokes/jokes.qml'
285--- examples/jokes/jokes.qml 2014-04-20 19:25:12 +0000
286+++ examples/jokes/jokes.qml 2014-04-25 13:00:38 +0000
287@@ -16,7 +16,7 @@
288 */
289
290 import QtQuick 2.0
291-import Ubuntu.Components 1.0
292+import Ubuntu.Components 1.1
293 import QtMultimedia 5.0
294
295 /*!
296
297=== modified file 'examples/locale/locale.qml'
298--- examples/locale/locale.qml 2014-04-20 19:25:12 +0000
299+++ examples/locale/locale.qml 2014-04-25 13:00:38 +0000
300@@ -16,7 +16,7 @@
301 */
302
303 import QtQuick 2.0
304-import Ubuntu.Components 1.0
305+import Ubuntu.Components 1.1
306 import Ubuntu.Components.ListItems 1.0 as ListItem
307
308 /*!
309
310=== modified file 'examples/ubuntu-ui-toolkit-gallery/Buttons.qml'
311--- examples/ubuntu-ui-toolkit-gallery/Buttons.qml 2014-04-23 09:21:09 +0000
312+++ examples/ubuntu-ui-toolkit-gallery/Buttons.qml 2014-04-25 13:00:38 +0000
313@@ -15,7 +15,8 @@
314 */
315
316 import QtQuick 2.0
317-import Ubuntu.Components 0.1
318+import Ubuntu.Components 1.1
319+import Ubuntu.Components.ListItems 1.0
320
321 Template {
322 objectName: "buttonsTemplate"
323@@ -80,4 +81,67 @@
324 }
325 }
326 }
327+
328+ TemplateSection {
329+ className: "ComboButton"
330+
331+ TemplateRow {
332+ title: i18n.tr("Collapsed")
333+
334+ ComboButton {
335+ text: "Press me"
336+ objectName: "combobutton_collapsed"
337+ comboList: UbuntuListView {
338+ model: 10
339+ delegate: Standard {
340+ text: "item #" + modelData
341+ }
342+ }
343+ }
344+ }
345+
346+ TemplateRow {
347+ title: i18n.tr("Icon")
348+
349+ ComboButton {
350+ iconSource: "call.png"
351+ comboList: UbuntuListView {
352+ model: 10
353+ delegate: Standard {
354+ text: "item #" + modelData
355+ }
356+ }
357+ }
358+ }
359+
360+ TemplateRow {
361+ title: i18n.tr("Icon+Text")
362+
363+ ComboButton {
364+ text: "Answer"
365+ iconSource: "call.png"
366+ comboList: UbuntuListView {
367+ model: 10
368+ delegate: Standard {
369+ text: "item #" + modelData
370+ }
371+ }
372+ }
373+ }
374+ TemplateRow {
375+ title: i18n.tr("Expanded")
376+
377+ ComboButton {
378+ text: "Press me"
379+ objectName: "combobutton_expanded"
380+ expanded: true
381+ comboList: UbuntuListView {
382+ model: 10
383+ delegate: Standard {
384+ text: "item #" + modelData
385+ }
386+ }
387+ }
388+ }
389+ }
390 }
391
392=== modified file 'examples/unit-converter/unit-converter.qml'
393--- examples/unit-converter/unit-converter.qml 2014-04-20 19:25:12 +0000
394+++ examples/unit-converter/unit-converter.qml 2014-04-25 13:00:38 +0000
395@@ -15,7 +15,7 @@
396 */
397
398 import QtQuick 2.0
399-import Ubuntu.Components 1.0
400+import Ubuntu.Components 1.1
401 import "conversion.js" as Converter
402
403 /*!
404
405=== modified file 'manual-tests/button.qml'
406--- manual-tests/button.qml 2014-04-20 19:25:12 +0000
407+++ manual-tests/button.qml 2014-04-25 13:00:38 +0000
408@@ -15,7 +15,7 @@
409 */
410
411 import QtQuick 2.0
412-import Ubuntu.Components 1.0
413+import Ubuntu.Components 1.1
414
415 Button {
416 id: button
417
418=== modified file 'modules/Ubuntu/Components/AbstractButton.qml'
419--- modules/Ubuntu/Components/AbstractButton.qml 2014-04-20 19:25:12 +0000
420+++ modules/Ubuntu/Components/AbstractButton.qml 2014-04-25 13:00:38 +0000
421@@ -19,7 +19,7 @@
422
423 /*!
424 \qmlabstract AbstractButton
425- \inqmlmodule Ubuntu.Components 1.0
426+ \inqmlmodule Ubuntu.Components 1.1
427 \ingroup ubuntu
428 \brief The AbstractButton class defines the behavior of the button.
429
430
431=== modified file 'modules/Ubuntu/Components/Action.qml'
432--- modules/Ubuntu/Components/Action.qml 2014-04-20 19:25:12 +0000
433+++ modules/Ubuntu/Components/Action.qml 2014-04-25 13:00:38 +0000
434@@ -19,7 +19,7 @@
435
436 /*!
437 \qmltype Action
438- \inqmlmodule Ubuntu.Components 1.0
439+ \inqmlmodule Ubuntu.Components 1.1
440 \ingroup ubuntu
441 \brief Describe an action that can be re-used in, for example a \l Button
442
443
444=== modified file 'modules/Ubuntu/Components/ActionItem.qml'
445--- modules/Ubuntu/Components/ActionItem.qml 2014-04-20 19:25:12 +0000
446+++ modules/Ubuntu/Components/ActionItem.qml 2014-04-25 13:00:38 +0000
447@@ -18,7 +18,7 @@
448
449 /*!
450 \qmlabstract ActionItem
451- \inqmlmodule Ubuntu.Components 1.0
452+ \inqmlmodule Ubuntu.Components 1.1
453 \ingroup ubuntu
454 \brief A visual representation of an Action. The API of ActionItem is a
455 copy of the API of \l Action, with additional properties to define
456
457=== modified file 'modules/Ubuntu/Components/ActionList.qml'
458--- modules/Ubuntu/Components/ActionList.qml 2014-04-20 19:25:12 +0000
459+++ modules/Ubuntu/Components/ActionList.qml 2014-04-25 13:00:38 +0000
460@@ -18,7 +18,7 @@
461
462 /*!
463 \qmltype ActionList
464- \inqmlmodule Ubuntu.Components 1.0
465+ \inqmlmodule Ubuntu.Components 1.1
466 \ingroup ubuntu
467 \brief List of \l Action items
468 */
469
470=== modified file 'modules/Ubuntu/Components/ActivityIndicator.qml'
471--- modules/Ubuntu/Components/ActivityIndicator.qml 2014-04-20 19:25:12 +0000
472+++ modules/Ubuntu/Components/ActivityIndicator.qml 2014-04-25 13:00:38 +0000
473@@ -18,7 +18,7 @@
474
475 /*!
476 \qmltype ActivityIndicator
477- \inqmlmodule Ubuntu.Components 1.0
478+ \inqmlmodule Ubuntu.Components 1.1
479 \ingroup ubuntu
480 \brief The ActivityIndicator component visually indicates that a task of
481 unknown duration is in progress, e.g. busy indication, connection in progress
482
483=== modified file 'modules/Ubuntu/Components/AnimatedItem.qml'
484--- modules/Ubuntu/Components/AnimatedItem.qml 2014-04-20 19:25:12 +0000
485+++ modules/Ubuntu/Components/AnimatedItem.qml 2014-04-25 13:00:38 +0000
486@@ -16,7 +16,7 @@
487
488 /*!
489 \qmltype AnimatedItem
490- \inqmlmodule Ubuntu.Components 1.0
491+ \inqmlmodule Ubuntu.Components 1.1
492 \ingroup ubuntu
493 \brief The AnimatedItem drives the animated components behavior inside a Flickable.
494 Reports whether the component whos parent is a Flickable is in the visible area or not,
495
496=== modified file 'modules/Ubuntu/Components/Button.qml'
497--- modules/Ubuntu/Components/Button.qml 2014-04-20 19:25:12 +0000
498+++ modules/Ubuntu/Components/Button.qml 2014-04-25 13:00:38 +0000
499@@ -18,7 +18,7 @@
500
501 /*!
502 \qmltype Button
503- \inqmlmodule Ubuntu.Components 1.0
504+ \inqmlmodule Ubuntu.Components 1.1
505 \ingroup ubuntu
506 \brief Standard Ubuntu button.
507
508@@ -83,6 +83,11 @@
509 property Gradient gradient: __styleInstance.defaultGradient
510
511 /*!
512+ The font used for the button's text.
513+ */
514+ property font font: __styleInstance ? __styleInstance.defaultFont : Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
515+
516+ /*!
517 The source URL of the icon to display inside the button.
518 Leave this value blank for a text-only button.
519 If \l action is set, the default iconSource is that of the action.
520
521=== modified file 'modules/Ubuntu/Components/CheckBox.qml'
522--- modules/Ubuntu/Components/CheckBox.qml 2014-04-20 19:25:12 +0000
523+++ modules/Ubuntu/Components/CheckBox.qml 2014-04-25 13:00:38 +0000
524@@ -18,7 +18,7 @@
525
526 /*!
527 \qmltype CheckBox
528- \inqmlmodule Ubuntu.Components 1.0
529+ \inqmlmodule Ubuntu.Components 1.1
530 \ingroup ubuntu
531 \brief CheckBox is a component with two states, checked or unchecked. It can
532 be used to set boolean options. The behavior is the same as \l Switch, the
533
534=== added file 'modules/Ubuntu/Components/ComboButton.qml'
535--- modules/Ubuntu/Components/ComboButton.qml 1970-01-01 00:00:00 +0000
536+++ modules/Ubuntu/Components/ComboButton.qml 2014-04-25 13:00:38 +0000
537@@ -0,0 +1,366 @@
538+/*
539+ * Copyright 2014 Canonical Ltd.
540+ *
541+ * This program is free software; you can redistribute it and/or modify
542+ * it under the terms of the GNU Lesser General Public License as published by
543+ * the Free Software Foundation; version 3.
544+ *
545+ * This program is distributed in the hope that it will be useful,
546+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
547+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
548+ * GNU Lesser General Public License for more details.
549+ *
550+ * You should have received a copy of the GNU Lesser General Public License
551+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
552+ */
553+
554+import QtQuick 2.0
555+import Ubuntu.Components.Popups 1.0
556+import "mathUtils.js" as MathUtils
557+
558+/*!
559+ \qmltype ComboButton
560+ \inqmlmodule Ubuntu.Components 1.1
561+ \ingroup ubuntu
562+ \brief Ubuntu button providing a drop-down panel visualizing custom options.
563+
564+ The component is composed of three main blocks: \b {main button}, \b {dropdown}
565+ and \b {combo list}.
566+
567+ The \a {main button} holds the main functionailty of the component, and it is
568+ located at the left-top side of the expanded button. The \a clicked() signal
569+ is triggered only when this button is pressed.
570+
571+ The \a {dropdown} is a button located on the right of the main button. Its
572+ functionality is to drive the component's expanded state.
573+
574+ The \a {combo list} is a panel showing the content specified in \l comboList
575+ property when expanded. The content is stretched horizontally to the component's
576+ width, and its height is controlled by the \l expandedHeight property as follows:
577+ \list
578+ \li If the content height is smaller than the value of \l expandedHeight, the combo
579+ list will be expanded only to the height of the content.
580+ \qml
581+ import QtQuick 2.0
582+ import Ubuntu.Components 1.1
583+ ComboButton {
584+ text: "smaller content"
585+ Rectangle {
586+ height: units.gu(5) // smaller than the default expandedHeight
587+ color: "blue"
588+ }
589+ }
590+ \endqml
591+ \li If the content height is greater than \l expandedHeight, the combo list will
592+ expand till the height specified by the property and the content will be
593+ scrolled; in case the combo list content is one single Flickable, ListView,
594+ GridView or PathView, the content scrolling will be provided by the content
595+ itself.
596+ \qml
597+ import QtQuick 2.0
598+ import Ubuntu.Components 1.1
599+ ComboButton {
600+ text: "long scrolled content"
601+ Column {
602+ Repeater {
603+ model: 5
604+ spacing: units.gu(1)
605+ Rectangle {
606+ height: units.gu(5)
607+ color: "blue"
608+ }
609+ }
610+ }
611+ }
612+ \endqml
613+ \li In case the content is a single Flickable, ListView, GridView or PathView,
614+ the content will be filling the entire combo list area defined.
615+ \qml
616+ import QtQuick 2.0
617+ import Ubuntu.Components 1.1
618+ import Ubuntu.Components.ListItems 1.0
619+ ComboButton {
620+ text: "listview"
621+ ListView {
622+ model: 10
623+ delegate: Standard {
624+ text: "Item #" + modelData
625+ }
626+ }
627+ }
628+ \endqml
629+ \li Vertical anchoring of combo list content to its parent is not possible
630+ as the expansion calculation is done based on the combo list content height.
631+ If the content wants to take the size of the entire combo list, it should
632+ bind its height to the \l comboListHeight property.
633+ \qml
634+ import QtQuick 2.0
635+ import Ubuntu.Components 1.1
636+ ComboButton {
637+ id: combo
638+ text: "smaller content"
639+ Rectangle {
640+ height: combo.comboListHeight
641+ color: "blue"
642+ }
643+ }
644+ \endqml
645+ \li In case the expansion needs to be the size of the combo list content, the \l
646+ expandedHeight should be set to -1.
647+ \qml
648+ import QtQuick 2.0
649+ import Ubuntu.Components 1.1
650+ ComboButton {
651+ text: "auto-sized content"
652+ expandedHeight: -1
653+ Column {
654+ Repeater {
655+ model: 5
656+ spacing: units.gu(1)
657+ Button {
658+ text: "Button #" + modelData
659+ }
660+ }
661+ }
662+ }
663+ \endqml
664+ \endlist
665+
666+ The combo list can be expanded/collapsed either through the \l expanded property
667+ or by clicking on the dropdown button. It is not collapsed when pressing the main
668+ button or clicking on the combo list. In order to do an auto-collapsing button
669+ you must reset the expanded property (set it to false) when the main button is
670+ clicked or when a selection is taken from the combo list content. The following
671+ example illustrates a possible implementation.
672+
673+ \qml
674+ import QtQuick 2.0
675+ import Ubuntu.Components 1.1
676+
677+ ComboButton {
678+ id: combo
679+ text: "Auto closing"
680+ expanded: true
681+ expandedHeight: units.gu(30)
682+ onClicked: expanded = false
683+ UbuntuListView {
684+ width: parent.width
685+ height: combo.comboListHeight
686+ model: 20
687+ delegate: Standard {
688+ text: "Action #" + modelData
689+ onClicked: {
690+ combo.text = text;
691+ combo.expanded = false;
692+ }
693+ }
694+ }
695+ }
696+ \endqml
697+
698+ \section2 Styling
699+ The style of the component is defined in \l ComboButtonStyle.
700+ */
701+Button {
702+ id: combo
703+
704+ /*!
705+ Specifies whether the combo list is expanded or not. The default falue is
706+ false.
707+ */
708+ property bool expanded: false
709+
710+ /*!
711+ The property holds the height of the component when collapsed. By default
712+ the value is the implicit height of the component.
713+ */
714+ property real collapsedHeight: implicitHeight
715+
716+ /*!
717+ The property holds the maximum height value the component should expand.
718+ When setting the property, remember to take into account the \l collapsedHeight
719+ value. The best practice is to use bind it with collapsedHeight.
720+ \qml
721+ ComboButton {
722+ text: "altered expandedHeight"
723+ expandedHeight: collapsedHeight + units.gu(25)
724+ }
725+ \endqml
726+
727+ A value of -1 will instruct the component to expand the combo list as
728+ much as its content height is.
729+
730+ The default value is \l collapsedHeight + 19.5 GU, so at least 3 ListItems
731+ can fit in the combo list.
732+ \sa collapsedHeight
733+ */
734+ property real expandedHeight: collapsedHeight + units.gu(19.5)
735+
736+ /*!
737+ The property holds the maximum combo list height allowed based on the
738+ \l expandedHeight and \l collapsedHeight values. It is a convenience property
739+ that can be used to size the combo list content.
740+ \qml
741+ import QtQuick 2.0
742+ import Ubuntu.Components 1.1
743+ import Ubuntu.Components.ListItems 0.1
744+ ComboButton {
745+ id: combo
746+ text: "Full comboList size"
747+ ListView {
748+ anchors {
749+ left: parent.left
750+ right: parent.right
751+ }
752+ height: combo.comboListHeight
753+ model: 20
754+ delegate: Standard {
755+ text: "Action #" + modelData
756+ }
757+ }
758+ }
759+ \endqml
760+
761+ \sa collapsedHeight, expandedHeight
762+ */
763+ readonly property real comboListHeight: (expandedHeight < 0) ?
764+ comboListHolder.height :
765+ (expandedHeight - collapsedHeight -
766+ (combo.__styleInstance ? combo.__styleInstance.comboListMargin : 0))
767+
768+ /*!
769+ \qmlproperty list<Item> comboList
770+ \default
771+ Property holding the list of items to be shown in the combo list. Being
772+ a default property children items declared will land in the combo list.
773+ \note The component is not responsible for layouting the content. It only
774+ provides scrolling abilities for the case the content exceeds the defined
775+ expanded height.
776+ */
777+ default property alias comboList: comboListHolder.data
778+
779+ /* ----------------- Color and font configurations ----------------- */
780+ /*!
781+ The property specifies the color of the dropdown button and the combo list
782+ for both collapsed and expanded states. You can use \l expanded to define
783+ different colors for expanded or collapsed states.
784+ */
785+ property color dropdownColor: __styleInstance ? __styleInstance.defaultDropdownColor : color
786+
787+
788+ style: Theme.createStyleComponent("ComboButtonStyle.qml", combo)
789+
790+ Component.onCompleted: {
791+ // update mouse area to report clicks only on the main button area
792+ // area excluding dropDown button and combo list
793+ // we must do separate bindings as __mouseArea is a read-only property
794+ __mouseArea.anchors.fill = undefined;
795+ __mouseArea.anchors.left = Qt.binding(function() {return combo.left;});
796+ __mouseArea.anchors.top = Qt.binding(function() {return combo.top;});
797+ __mouseArea.anchors.right = Qt.binding(function() {return combo.right;});
798+ __mouseArea.anchors.rightMargin = Qt.binding(function() {return combo.__styleInstance.dropDownWidth + combo.__styleInstance.dropDownSeparatorWidth;});
799+ __mouseArea.height = Qt.binding(function() {return collapsedHeight;});
800+ // for autopilot, set the main button name
801+ __mouseArea.objectName = "combobutton_mainbutton";
802+
803+ // bind a height calculation to avoid unwanted change
804+ combo.height = Qt.binding(function() {return collapsedHeight + __styleInstance.comboListPanel.height});
805+ }
806+
807+ // dropdown button
808+ AbstractButton {
809+ id: dropDown
810+ objectName: "combobutton_dropdown"
811+ anchors {
812+ right: parent.right
813+ top: parent.top
814+ }
815+ width: combo.__styleInstance ? combo.__styleInstance.dropDownWidth : 0
816+ height: combo.collapsedHeight
817+ // open dropdown when pressed, not when clicked
818+ onClicked: {
819+ // toggle expanded
820+ combo.expanded = !combo.expanded;
821+ }
822+ }
823+
824+ // expansion list
825+ Flickable {
826+ id: comboHolder
827+ parent: combo.__styleInstance ? combo.__styleInstance.comboListHolder : combo
828+ anchors.fill: parent
829+ interactive: combo.expanded && !contentIsFlickable() && (combo.expandedHeight > 0)
830+ flickableDirection: Flickable.VerticalFlick
831+ contentHeight: comboListHolder.height
832+
833+ // consider PathView as Flickable in this case as well!
834+ function contentIsFlickable() {
835+ return (comboListHolder.children.length === 1) &&
836+ comboListHolder.children[0].hasOwnProperty("flicking");
837+ }
838+
839+ Item {
840+ id: comboListHolder
841+ objectName: "combobutton_combolist"
842+ anchors {
843+ left: parent.left
844+ right: parent.right
845+ }
846+
847+ // stretch children width to holder's width
848+ // must do binding to height manually to avoid binding loops caused
849+ // by the vertical stretching when the component is a single flickable
850+ property bool stretch: (combo.expandedHeight > 0 && comboHolder.contentIsFlickable())
851+ onStretchChanged: stretchChildren()
852+ onChildrenChanged: stretchChildren()
853+ function stretchChildren() {
854+ for (var i in comboListHolder.children) {
855+ var child = comboListHolder.children[i];
856+ if (comboListHolder.stretch) {
857+ child.anchors.left = undefined;
858+ child.anchors.right = undefined;
859+ child.anchors.fill = comboListHolder;
860+ comboListHolder.height = Qt.binding(function() {
861+ return combo.comboListHeight;
862+ });
863+ } else {
864+ child.anchors.left = comboListHolder.left;
865+ child.anchors.right = comboListHolder.right;
866+ comboListHolder.height = Qt.binding(function() {
867+ return comboListHolder.childrenRect.height;
868+ });
869+ }
870+ }
871+ }
872+ }
873+ }
874+ Scrollbar {
875+ flickableItem: comboHolder
876+ }
877+
878+ /*
879+ Drive the expansion height of the combo list holder
880+ This is a common functionaity in all combo buttons, therefore we can have it
881+ in the main component.
882+ */
883+ Binding {
884+ target: combo.__styleInstance.comboListPanel
885+ property: "height"
886+ value: {
887+ if (!expanded) {
888+ return 0;
889+ }
890+ if (comboListHolder.stretch) {
891+ return combo.comboListHeight + combo.__styleInstance.comboListMargin;
892+ }
893+
894+ var h = comboListHolder.height;
895+ var max = combo.comboListHeight + combo.__styleInstance.comboListMargin;
896+ if (combo.expandedHeight < 0) {
897+ return max;
898+ }
899+
900+ return MathUtils.clamp(h, 0, max);
901+ }
902+ }
903+}
904
905=== modified file 'modules/Ubuntu/Components/CrossFadeImage.qml'
906--- modules/Ubuntu/Components/CrossFadeImage.qml 2014-04-20 19:25:12 +0000
907+++ modules/Ubuntu/Components/CrossFadeImage.qml 2014-04-25 13:00:38 +0000
908@@ -19,7 +19,7 @@
909 // we need to use named imports otherwise namespace collision is reported
910 // by the QML engine. As workaround, we use Ubuntu named import.
911 // Bug to watch: https://bugreports.qt-project.org/browse/QTBUG-27645
912-import Ubuntu.Components 1.0 as Ubuntu
913+import Ubuntu.Components 1.1 as Ubuntu
914
915 /*!
916 \qmltype CrossFadeImage
917@@ -28,7 +28,7 @@
918
919 \qml
920 import QtQuick 2.0
921- import Ubuntu.Components 1.0
922+ import Ubuntu.Components 1.1
923
924 CrossFadeImage {
925 width: units.gu(100)
926
927=== modified file 'modules/Ubuntu/Components/Header.qml'
928--- modules/Ubuntu/Components/Header.qml 2014-04-24 18:21:34 +0000
929+++ modules/Ubuntu/Components/Header.qml 2014-04-25 13:00:38 +0000
930@@ -20,7 +20,7 @@
931 /*!
932 \internal
933 \qmltype Header
934- \inqmlmodule Ubuntu.Components 1.0
935+ \inqmlmodule Ubuntu.Components 1.1
936 \ingroup ubuntu
937 */
938 StyledItem {
939
940=== modified file 'modules/Ubuntu/Components/Icon.qml'
941--- modules/Ubuntu/Components/Icon.qml 2014-04-20 19:25:12 +0000
942+++ modules/Ubuntu/Components/Icon.qml 2014-04-25 13:00:38 +0000
943@@ -18,7 +18,7 @@
944
945 /*!
946 \qmltype Icon
947- \inqmlmodule Ubuntu.Components 1.0
948+ \inqmlmodule Ubuntu.Components 1.1
949 \ingroup ubuntu
950 \brief The Icon component displays an icon from the icon theme.
951
952
953=== modified file 'modules/Ubuntu/Components/Label.qml'
954--- modules/Ubuntu/Components/Label.qml 2014-04-20 19:25:12 +0000
955+++ modules/Ubuntu/Components/Label.qml 2014-04-25 13:00:38 +0000
956@@ -18,7 +18,7 @@
957
958 /*!
959 \qmltype Label
960- \inqmlmodule Ubuntu.Components 1.0
961+ \inqmlmodule Ubuntu.Components 1.1
962 \ingroup ubuntu
963 \brief Text with Ubuntu styling.
964
965
966=== modified file 'modules/Ubuntu/Components/ListItems/Base.qml'
967--- modules/Ubuntu/Components/ListItems/Base.qml 2014-04-20 19:25:12 +0000
968+++ modules/Ubuntu/Components/ListItems/Base.qml 2014-04-25 13:00:38 +0000
969@@ -15,7 +15,7 @@
970 */
971
972 import QtQuick 2.0
973-import Ubuntu.Components 1.0
974+import Ubuntu.Components 1.1
975
976 /*!
977 \qmltype Base
978
979=== modified file 'modules/Ubuntu/Components/ListItems/Caption.qml'
980--- modules/Ubuntu/Components/ListItems/Caption.qml 2014-04-20 19:25:12 +0000
981+++ modules/Ubuntu/Components/ListItems/Caption.qml 2014-04-25 13:00:38 +0000
982@@ -15,7 +15,7 @@
983 */
984
985 import QtQuick 2.0
986-import Ubuntu.Components 1.0
987+import Ubuntu.Components 1.1
988
989 /*!
990 \qmltype Caption
991
992=== modified file 'modules/Ubuntu/Components/ListItems/Empty.qml'
993--- modules/Ubuntu/Components/ListItems/Empty.qml 2014-04-20 19:25:12 +0000
994+++ modules/Ubuntu/Components/ListItems/Empty.qml 2014-04-25 13:00:38 +0000
995@@ -15,7 +15,7 @@
996 */
997
998 import QtQuick 2.0
999-import Ubuntu.Components 1.0
1000+import Ubuntu.Components 1.1
1001
1002 /*!
1003 \qmltype Empty
1004@@ -34,7 +34,7 @@
1005
1006 Examples:
1007 \qml
1008- import Ubuntu.Components 1.0
1009+ import Ubuntu.Components 1.1
1010 import Ubuntu.Components.ListItems 1.0 as ListItem
1011
1012 Item {
1013
1014=== modified file 'modules/Ubuntu/Components/ListItems/Expandable.qml'
1015--- modules/Ubuntu/Components/ListItems/Expandable.qml 2014-04-20 19:25:12 +0000
1016+++ modules/Ubuntu/Components/ListItems/Expandable.qml 2014-04-25 13:00:38 +0000
1017@@ -14,7 +14,7 @@
1018 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1019 */
1020 import QtQuick 2.0
1021-import Ubuntu.Components 1.0
1022+import Ubuntu.Components 1.1
1023
1024 /*!
1025 \qmltype Expandable
1026@@ -35,7 +35,7 @@
1027
1028 Examples:
1029 \qml
1030- import Ubuntu.Components 1.0
1031+ import Ubuntu.Components 1.1
1032 import Ubuntu.Components.ListItems 1.0 as ListItem
1033
1034 Item {
1035
1036=== modified file 'modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml'
1037--- modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml 2014-04-20 19:25:12 +0000
1038+++ modules/Ubuntu/Components/ListItems/ExpandablesColumn.qml 2014-04-25 13:00:38 +0000
1039@@ -15,7 +15,7 @@
1040 */
1041
1042 import QtQuick 2.0
1043-import Ubuntu.Components 1.0
1044+import Ubuntu.Components 1.1
1045
1046 /*!
1047 \qmltype ExpandablesColumn
1048@@ -29,7 +29,7 @@
1049
1050 Examples:
1051 \qml
1052- import Ubuntu.Components 1.0
1053+ import Ubuntu.Components 1.1
1054 import Ubuntu.Components.ListItems 1.0 as ListItem
1055
1056 ListItem.ExpandablesColumn {
1057
1058=== modified file 'modules/Ubuntu/Components/ListItems/IconVisual.qml'
1059--- modules/Ubuntu/Components/ListItems/IconVisual.qml 2014-04-20 19:25:12 +0000
1060+++ modules/Ubuntu/Components/ListItems/IconVisual.qml 2014-04-25 13:00:38 +0000
1061@@ -15,7 +15,7 @@
1062 */
1063
1064 import QtQuick 2.0
1065-import Ubuntu.Components 1.0
1066+import Ubuntu.Components 1.1
1067
1068 // internal helper class to create the visuals
1069 // for the icon.
1070
1071=== modified file 'modules/Ubuntu/Components/ListItems/ItemSelector.qml'
1072--- modules/Ubuntu/Components/ListItems/ItemSelector.qml 2014-04-20 19:25:12 +0000
1073+++ modules/Ubuntu/Components/ListItems/ItemSelector.qml 2014-04-25 13:00:38 +0000
1074@@ -16,7 +16,7 @@
1075
1076 import QtQuick 2.0
1077 import "." as ListItem
1078-import Ubuntu.Components 1.0
1079+import Ubuntu.Components 1.1
1080
1081 /*!
1082 \qmltype ItemSelector
1083
1084=== modified file 'modules/Ubuntu/Components/ListItems/LabelVisual.qml'
1085--- modules/Ubuntu/Components/ListItems/LabelVisual.qml 2014-04-20 19:25:12 +0000
1086+++ modules/Ubuntu/Components/ListItems/LabelVisual.qml 2014-04-25 13:00:38 +0000
1087@@ -15,7 +15,7 @@
1088 */
1089
1090 import QtQuick 2.0
1091-import Ubuntu.Components 1.0
1092+import Ubuntu.Components 1.1
1093
1094 // internal helper class for text inside the list items.
1095 Label {
1096
1097=== modified file 'modules/Ubuntu/Components/ListItems/ProgressionVisual.qml'
1098--- modules/Ubuntu/Components/ListItems/ProgressionVisual.qml 2014-04-20 19:25:12 +0000
1099+++ modules/Ubuntu/Components/ListItems/ProgressionVisual.qml 2014-04-25 13:00:38 +0000
1100@@ -15,7 +15,7 @@
1101 */
1102
1103 import QtQuick 2.0
1104-import Ubuntu.Components 1.0
1105+import Ubuntu.Components 1.1
1106
1107 // Internal helper class for the visuals of
1108 // the progression symbol.
1109
1110=== modified file 'modules/Ubuntu/Components/ListItems/SingleControl.qml'
1111--- modules/Ubuntu/Components/ListItems/SingleControl.qml 2014-04-20 19:25:12 +0000
1112+++ modules/Ubuntu/Components/ListItems/SingleControl.qml 2014-04-25 13:00:38 +0000
1113@@ -15,7 +15,7 @@
1114 */
1115
1116 import QtQuick 2.0
1117-import Ubuntu.Components 1.0
1118+import Ubuntu.Components 1.1
1119 import Ubuntu.Components.ListItems 1.0
1120
1121 /*!
1122@@ -26,7 +26,7 @@
1123
1124 Examples:
1125 \qml
1126- import Ubuntu.Components 1.0
1127+ import Ubuntu.Components 1.1
1128 import Ubuntu.Components.ListItems 1.0 as ListItem
1129 Column {
1130 ListItem.SingleControl {
1131
1132=== modified file 'modules/Ubuntu/Components/ListItems/Standard.qml'
1133--- modules/Ubuntu/Components/ListItems/Standard.qml 2014-04-20 19:25:12 +0000
1134+++ modules/Ubuntu/Components/ListItems/Standard.qml 2014-04-25 13:00:38 +0000
1135@@ -15,7 +15,7 @@
1136 */
1137
1138 import QtQuick 2.0
1139-import Ubuntu.Components 1.0
1140+import Ubuntu.Components 1.1
1141
1142 /*!
1143 \qmltype Standard
1144@@ -30,7 +30,7 @@
1145
1146 Examples:
1147 \qml
1148- import Ubuntu.Components 1.0
1149+ import Ubuntu.Components 1.1
1150 import Ubuntu.Components.ListItems 1.0 as ListItem
1151 Column {
1152 ListItem.Standard {
1153
1154=== modified file 'modules/Ubuntu/Components/ListItems/Subtitled.qml'
1155--- modules/Ubuntu/Components/ListItems/Subtitled.qml 2014-04-20 19:25:12 +0000
1156+++ modules/Ubuntu/Components/ListItems/Subtitled.qml 2014-04-25 13:00:38 +0000
1157@@ -15,7 +15,7 @@
1158 */
1159
1160 import QtQuick 2.0
1161-import Ubuntu.Components 1.0
1162+import Ubuntu.Components 1.1
1163
1164 /*!
1165 \qmltype MultiValue
1166
1167=== modified file 'modules/Ubuntu/Components/ListItems/ValueSelector.qml'
1168--- modules/Ubuntu/Components/ListItems/ValueSelector.qml 2014-04-20 19:25:12 +0000
1169+++ modules/Ubuntu/Components/ListItems/ValueSelector.qml 2014-04-25 13:00:38 +0000
1170@@ -15,7 +15,7 @@
1171 */
1172
1173 import QtQuick 2.0
1174-import Ubuntu.Components 1.0
1175+import Ubuntu.Components 1.1
1176
1177 /*!
1178 ****DEPRECATED! PLEASE USE ITEM SELECTOR OR FOR THE UBUNTU SHAPE VERSION THE OPTION SELECTOR.****
1179
1180=== modified file 'modules/Ubuntu/Components/MainView.qml'
1181--- modules/Ubuntu/Components/MainView.qml 2014-04-24 18:21:34 +0000
1182+++ modules/Ubuntu/Components/MainView.qml 2014-04-25 13:00:38 +0000
1183@@ -21,7 +21,7 @@
1184
1185 /*!
1186 \qmltype MainView
1187- \inqmlmodule Ubuntu.Components 1.0
1188+ \inqmlmodule Ubuntu.Components 1.1
1189 \ingroup ubuntu
1190 \brief MainView is the root Item that should be used for all applications.
1191 It automatically adds a header and toolbar for its contents and can
1192@@ -30,7 +30,7 @@
1193 The simplest way to use a MainView is to include a \l Page object inside the MainView:
1194 \qml
1195 import QtQuick 2.0
1196- import Ubuntu.Components 1.0
1197+ import Ubuntu.Components 1.1
1198
1199 MainView {
1200 width: units.gu(48)
1201@@ -57,7 +57,7 @@
1202 will automatically hide and show when the user scrolls up or down:
1203 \qml
1204 import QtQuick 2.0
1205- import Ubuntu.Components 1.0
1206+ import Ubuntu.Components 1.1
1207
1208 MainView {
1209 width: units.gu(48)
1210@@ -89,7 +89,7 @@
1211 A toolbar can be added to the application by setting the tools property of the \l Page:
1212 \qml
1213 import QtQuick 2.0
1214- import Ubuntu.Components 1.0
1215+ import Ubuntu.Components 1.1
1216
1217 MainView {
1218 width: units.gu(48)
1219@@ -169,7 +169,7 @@
1220 the content:
1221 \qml
1222 import QtQuick 2.0
1223- import Ubuntu.Components 1.0
1224+ import Ubuntu.Components 1.1
1225
1226 MainView {
1227 width: units.gu(40)
1228
1229=== modified file 'modules/Ubuntu/Components/Object.qml'
1230--- modules/Ubuntu/Components/Object.qml 2014-04-20 19:25:12 +0000
1231+++ modules/Ubuntu/Components/Object.qml 2014-04-25 13:00:38 +0000
1232@@ -19,7 +19,7 @@
1233 /*!
1234 \qmltype Object
1235 \internal
1236- \inqmlmodule Ubuntu.Components 1.0
1237+ \inqmlmodule Ubuntu.Components 1.1
1238 \ingroup ubuntu
1239 \brief Internal type used for lightweight objects that can have children.
1240 */
1241
1242=== modified file 'modules/Ubuntu/Components/OptionSelector.qml'
1243--- modules/Ubuntu/Components/OptionSelector.qml 2014-04-20 19:25:12 +0000
1244+++ modules/Ubuntu/Components/OptionSelector.qml 2014-04-25 13:00:38 +0000
1245@@ -16,11 +16,11 @@
1246
1247 import QtQuick 2.0
1248 import "ListItems" as ListItem
1249-import Ubuntu.Components 1.0 as Toolkit
1250+import Ubuntu.Components 1.1 as Toolkit
1251
1252 /*!
1253 \qmltype OptionSelector
1254- \inqmlmodule Ubuntu.Components 1.0
1255+ \inqmlmodule Ubuntu.Components 1.1
1256 \ingroup ubuntu-components
1257 \brief Component displaying either a single selected value or expanded multiple choice with an optional image and subtext when not expanded, when expanding it opens a
1258 listing of all the possible values for selection with an additional option of always being expanded. If multiple choice is selected the list is expanded automatically.
1259@@ -29,7 +29,7 @@
1260
1261 Examples:
1262 \qml
1263- import Ubuntu.Components 1.0
1264+ import Ubuntu.Components 1.1
1265 Column {
1266 spacing: units.gu(3)
1267
1268
1269=== modified file 'modules/Ubuntu/Components/OptionSelectorDelegate.qml'
1270--- modules/Ubuntu/Components/OptionSelectorDelegate.qml 2014-04-20 19:25:12 +0000
1271+++ modules/Ubuntu/Components/OptionSelectorDelegate.qml 2014-04-25 13:00:38 +0000
1272@@ -16,7 +16,7 @@
1273
1274 /*!
1275 \qmltype OptionSelectorDelegate
1276- \inqmlmodule Ubuntu.Components 1.0
1277+ \inqmlmodule Ubuntu.Components 1.1
1278 \ingroup ubuntu-components
1279 \brief OptionSelector delegate which can display text, subtext and an image from a custom model.
1280
1281@@ -24,7 +24,7 @@
1282
1283 Examples:
1284 \qml
1285- import Ubuntu.Components 1.0
1286+ import Ubuntu.Components 1.1
1287 Column {
1288 width: 250
1289 OptionSelector {
1290@@ -45,7 +45,7 @@
1291
1292 import QtQuick 2.0
1293 import "ListItems" as ListItem
1294-import Ubuntu.Components 1.0 as Toolkit
1295+import Ubuntu.Components 1.1 as Toolkit
1296
1297 ListItem.Standard {
1298 id: option
1299
1300=== modified file 'modules/Ubuntu/Components/OrientationHelper.qml'
1301--- modules/Ubuntu/Components/OrientationHelper.qml 2014-04-23 09:10:47 +0000
1302+++ modules/Ubuntu/Components/OrientationHelper.qml 2014-04-25 13:00:38 +0000
1303@@ -20,7 +20,7 @@
1304
1305 /*!
1306 \qmltype OrientationHelper
1307- \inqmlmodule Ubuntu.Components 1.0
1308+ \inqmlmodule Ubuntu.Components 1.1
1309 \ingroup ubuntu
1310 \brief The OrientationHelper automatically rotates its children following the
1311 orientation of the device.
1312
1313=== modified file 'modules/Ubuntu/Components/Page.qml'
1314--- modules/Ubuntu/Components/Page.qml 2014-04-24 18:21:34 +0000
1315+++ modules/Ubuntu/Components/Page.qml 2014-04-25 13:00:38 +0000
1316@@ -19,7 +19,7 @@
1317
1318 /*!
1319 \qmltype Page
1320- \inqmlmodule Ubuntu.Components 1.0
1321+ \inqmlmodule Ubuntu.Components 1.1
1322 \ingroup ubuntu
1323 \brief A page is the basic Item that must be used inside the \l MainView,
1324 \l PageStack and \l Tabs.
1325@@ -33,7 +33,7 @@
1326
1327 \qml
1328 import QtQuick 2.0
1329- import Ubuntu.Components 1.0
1330+ import Ubuntu.Components 1.1
1331
1332 MainView {
1333 width: units.gu(48)
1334@@ -94,7 +94,7 @@
1335 and anchors to the top of the page or fills the page. For example:
1336 \qml
1337 import QtQuick 2.0
1338- import Ubuntu.Components 1.0
1339+ import Ubuntu.Components 1.1
1340
1341 MainView {
1342 width: units.gu(30)
1343
1344=== modified file 'modules/Ubuntu/Components/PageStack.qml'
1345--- modules/Ubuntu/Components/PageStack.qml 2014-04-20 19:25:12 +0000
1346+++ modules/Ubuntu/Components/PageStack.qml 2014-04-25 13:00:38 +0000
1347@@ -19,7 +19,7 @@
1348
1349 /*!
1350 \qmltype PageStack
1351- \inqmlmodule Ubuntu.Components 1.0
1352+ \inqmlmodule Ubuntu.Components 1.1
1353 \ingroup ubuntu
1354 \brief A stack of \l Page items that is used for inter-Page navigation.
1355 Pages on the stack can be popped, and new Pages can be pushed.
1356@@ -39,7 +39,7 @@
1357 Example:
1358 \qml
1359 import QtQuick 2.0
1360- import Ubuntu.Components 1.0
1361+ import Ubuntu.Components 1.1
1362 import Ubuntu.Components.ListItems 1.0 as ListItem
1363
1364 MainView {
1365
1366=== modified file 'modules/Ubuntu/Components/PageTreeNode.qml'
1367--- modules/Ubuntu/Components/PageTreeNode.qml 2014-04-20 19:25:12 +0000
1368+++ modules/Ubuntu/Components/PageTreeNode.qml 2014-04-25 13:00:38 +0000
1369@@ -19,7 +19,7 @@
1370 /*!
1371 \internal
1372 \qmltype PageTreeNode
1373- \inqmlmodule Ubuntu.Components 1.0
1374+ \inqmlmodule Ubuntu.Components 1.1
1375 \ingroup ubuntu
1376 \brief The common parent of \l Page, \l MainView, \l PageStack and \l Tabs.
1377
1378
1379=== modified file 'modules/Ubuntu/Components/PageWrapper.qml'
1380--- modules/Ubuntu/Components/PageWrapper.qml 2014-04-20 19:25:12 +0000
1381+++ modules/Ubuntu/Components/PageWrapper.qml 2014-04-25 13:00:38 +0000
1382@@ -20,7 +20,7 @@
1383 /*!
1384 \internal
1385 \qmltype PageWrapper
1386- \inqmlmodule Ubuntu.Components 1.0
1387+ \inqmlmodule Ubuntu.Components 1.1
1388 \ingroup ubuntu
1389 \brief Internal class used by \l PageStack
1390
1391
1392=== modified file 'modules/Ubuntu/Components/Panel.qml'
1393--- modules/Ubuntu/Components/Panel.qml 2014-04-24 18:28:43 +0000
1394+++ modules/Ubuntu/Components/Panel.qml 2014-04-25 13:00:38 +0000
1395@@ -15,11 +15,11 @@
1396 */
1397
1398 import QtQuick 2.0
1399-import Ubuntu.Components 1.0 as Toolkit
1400+import Ubuntu.Components 1.1 as Toolkit
1401
1402 /*!
1403 \qmltype Panel
1404- \inqmlmodule Ubuntu.Components 1.0
1405+ \inqmlmodule Ubuntu.Components 1.1
1406 \ingroup ubuntu
1407 \brief A panel that can be swiped in and out from an edge of the window by the user.
1408 For most applications, it is highly recommended to use the \l MainView instead which includes
1409@@ -38,7 +38,7 @@
1410 A black panel that can be swiped in from the lower-right of the window can be created like this:
1411 \qml
1412 import QtQuick 2.0
1413- import Ubuntu.Components 1.0
1414+ import Ubuntu.Components 1.1
1415
1416 Item {
1417 width: units.gu(80)
1418@@ -69,7 +69,7 @@
1419 A panel that looks like the standard (bottom-aligned) toolbar, but with custom contents, can be created like this:
1420 \qml
1421 import QtQuick 2.0
1422- import Ubuntu.Components 1.0
1423+ import Ubuntu.Components 1.1
1424
1425 Item {
1426 width: units.gu(80)
1427@@ -106,7 +106,7 @@
1428 signals are forwarded from the panel by calling the child's trigger() function. Example:
1429 \qml
1430 import QtQuick 2.0
1431- import Ubuntu.Components 1.0
1432+ import Ubuntu.Components 1.1
1433
1434 Rectangle {
1435 color: Theme.palette.normal.background
1436
1437=== modified file 'modules/Ubuntu/Components/Pickers/DatePicker.qml'
1438--- modules/Ubuntu/Components/Pickers/DatePicker.qml 2014-04-20 19:25:12 +0000
1439+++ modules/Ubuntu/Components/Pickers/DatePicker.qml 2014-04-25 13:00:38 +0000
1440@@ -15,7 +15,7 @@
1441 */
1442
1443 import QtQuick 2.0
1444-import Ubuntu.Components 1.0
1445+import Ubuntu.Components 1.1
1446
1447 /*!
1448 \qmltype DatePicker
1449@@ -36,7 +36,7 @@
1450
1451 \qml
1452 import QtQuick 2.0
1453- import Ubuntu.Components 1.0
1454+ import Ubuntu.Components 1.1
1455 import Ubuntu.Components.Pickers 1.0
1456
1457 Column {
1458@@ -56,7 +56,7 @@
1459 which shows only year and month date units would look as follows:
1460 \qml
1461 import QtQuick 2.0
1462- import Ubuntu.Components 1.0
1463+ import Ubuntu.Components 1.1
1464 import Ubuntu.Components.Pickers 1.0
1465
1466 Column {
1467@@ -75,7 +75,7 @@
1468 The following example demonstrates how to use DatePicker for time picking.
1469 \qml
1470 import QtQuick 2.0
1471- import Ubuntu.Components 1.0
1472+ import Ubuntu.Components 1.1
1473 import Ubuntu.Components.Pickers 1.0
1474
1475 Column {
1476@@ -112,7 +112,7 @@
1477 \endlist
1478 \qml
1479 import QtQuick 2.0
1480- import Ubuntu.Components 1.0
1481+ import Ubuntu.Components 1.1
1482 import Ubuntu.Components.Pickers 1.0
1483
1484 Column {
1485
1486=== modified file 'modules/Ubuntu/Components/Pickers/DayModel.qml'
1487--- modules/Ubuntu/Components/Pickers/DayModel.qml 2014-04-20 19:25:12 +0000
1488+++ modules/Ubuntu/Components/Pickers/DayModel.qml 2014-04-25 13:00:38 +0000
1489@@ -15,7 +15,7 @@
1490 */
1491
1492 import QtQuick 2.0
1493-import Ubuntu.Components 1.0
1494+import Ubuntu.Components 1.1
1495
1496 PickerModelBase {
1497 circular: true
1498
1499=== modified file 'modules/Ubuntu/Components/Pickers/Dialer.qml'
1500--- modules/Ubuntu/Components/Pickers/Dialer.qml 2014-04-23 10:01:42 +0000
1501+++ modules/Ubuntu/Components/Pickers/Dialer.qml 2014-04-25 13:00:38 +0000
1502@@ -15,7 +15,7 @@
1503 */
1504
1505 import QtQuick 2.0
1506-import Ubuntu.Components 1.0
1507+import Ubuntu.Components 1.1
1508
1509 /*!
1510 \qmltype Dialer
1511
1512=== modified file 'modules/Ubuntu/Components/Pickers/DialerHand.qml'
1513--- modules/Ubuntu/Components/Pickers/DialerHand.qml 2014-04-23 10:01:42 +0000
1514+++ modules/Ubuntu/Components/Pickers/DialerHand.qml 2014-04-25 13:00:38 +0000
1515@@ -15,7 +15,7 @@
1516 */
1517
1518 import QtQuick 2.0
1519-import Ubuntu.Components 1.0
1520+import Ubuntu.Components 1.1
1521
1522 /*!
1523 \qmltype DialerHand
1524
1525=== modified file 'modules/Ubuntu/Components/Pickers/DialerHandGroup.qml'
1526--- modules/Ubuntu/Components/Pickers/DialerHandGroup.qml 2014-04-23 10:01:42 +0000
1527+++ modules/Ubuntu/Components/Pickers/DialerHandGroup.qml 2014-04-25 13:00:38 +0000
1528@@ -14,7 +14,7 @@
1529 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1530 */
1531 import QtQuick 2.0
1532-import Ubuntu.Components 1.0
1533+import Ubuntu.Components 1.1
1534
1535 /*!
1536 \internal
1537
1538=== modified file 'modules/Ubuntu/Components/Pickers/HoursModel.qml'
1539--- modules/Ubuntu/Components/Pickers/HoursModel.qml 2014-04-20 19:25:12 +0000
1540+++ modules/Ubuntu/Components/Pickers/HoursModel.qml 2014-04-25 13:00:38 +0000
1541@@ -15,7 +15,7 @@
1542 */
1543
1544 import QtQuick 2.0
1545-import Ubuntu.Components 1.0
1546+import Ubuntu.Components 1.1
1547
1548 PickerModelBase {
1549 property int from
1550
1551=== modified file 'modules/Ubuntu/Components/Pickers/MinutesModel.qml'
1552--- modules/Ubuntu/Components/Pickers/MinutesModel.qml 2014-04-20 19:25:12 +0000
1553+++ modules/Ubuntu/Components/Pickers/MinutesModel.qml 2014-04-25 13:00:38 +0000
1554@@ -15,7 +15,7 @@
1555 */
1556
1557 import QtQuick 2.0
1558-import Ubuntu.Components 1.0
1559+import Ubuntu.Components 1.1
1560
1561 PickerModelBase {
1562 property int from
1563
1564=== modified file 'modules/Ubuntu/Components/Pickers/MonthModel.qml'
1565--- modules/Ubuntu/Components/Pickers/MonthModel.qml 2014-04-20 19:25:12 +0000
1566+++ modules/Ubuntu/Components/Pickers/MonthModel.qml 2014-04-25 13:00:38 +0000
1567@@ -15,7 +15,7 @@
1568 */
1569
1570 import QtQuick 2.0
1571-import Ubuntu.Components 1.0
1572+import Ubuntu.Components 1.1
1573
1574 PickerModelBase {
1575 circular: (count >= 11)
1576
1577=== modified file 'modules/Ubuntu/Components/Pickers/Picker.qml'
1578--- modules/Ubuntu/Components/Pickers/Picker.qml 2014-04-20 19:25:12 +0000
1579+++ modules/Ubuntu/Components/Pickers/Picker.qml 2014-04-25 13:00:38 +0000
1580@@ -15,7 +15,7 @@
1581 */
1582
1583 import QtQuick 2.0
1584-import Ubuntu.Components 1.0
1585+import Ubuntu.Components 1.1
1586
1587 /*!
1588 \qmltype Picker
1589@@ -35,7 +35,7 @@
1590 Example:
1591 \qml
1592 import QtQuick 2.0
1593- import Ubuntu.Components 1.0
1594+ import Ubuntu.Components 1.1
1595 import Ubuntu.Components.Pickers 1.0
1596
1597 Picker {
1598
1599=== modified file 'modules/Ubuntu/Components/Pickers/PickerDelegate.qml'
1600--- modules/Ubuntu/Components/Pickers/PickerDelegate.qml 2014-04-23 10:01:42 +0000
1601+++ modules/Ubuntu/Components/Pickers/PickerDelegate.qml 2014-04-25 13:00:38 +0000
1602@@ -15,7 +15,7 @@
1603 */
1604
1605 import QtQuick 2.0
1606-import Ubuntu.Components 1.0
1607+import Ubuntu.Components 1.1
1608
1609 /*!
1610 \qmltype PickerDelegate
1611
1612=== modified file 'modules/Ubuntu/Components/Pickers/PickerPanel.qml'
1613--- modules/Ubuntu/Components/Pickers/PickerPanel.qml 2014-04-20 19:25:12 +0000
1614+++ modules/Ubuntu/Components/Pickers/PickerPanel.qml 2014-04-25 13:00:38 +0000
1615@@ -16,13 +16,13 @@
1616
1617 import QtQuick 2.0
1618 import QtQuick.Window 2.0
1619-import Ubuntu.Components 1.0
1620+import Ubuntu.Components 1.1
1621 import Ubuntu.Components.ListItems 1.0
1622 import Ubuntu.Components.Popups 1.0
1623
1624 /*!
1625 \qmltype PickerPanel
1626- \inqmlmodule Ubuntu.Components 1.0
1627+ \inqmlmodule Ubuntu.Components 1.1
1628 \ingroup ubuntu-pickers
1629 \brief Provides a panel for opening a DatePicker in place of the input panel or
1630 as Popover, depending on the form factor.
1631@@ -32,7 +32,7 @@
1632 on date pickers.
1633 \qml
1634 import QtQuick 2.0
1635- import Ubuntu.Components 1.0
1636+ import Ubuntu.Components 1.1
1637
1638 MainWindow {
1639 width: units.gu(40)
1640
1641=== modified file 'modules/Ubuntu/Components/Pickers/PickerRow.qml'
1642--- modules/Ubuntu/Components/Pickers/PickerRow.qml 2014-04-20 19:25:12 +0000
1643+++ modules/Ubuntu/Components/Pickers/PickerRow.qml 2014-04-25 13:00:38 +0000
1644@@ -15,7 +15,7 @@
1645 */
1646
1647 import QtQuick 2.0
1648-import Ubuntu.Components 1.0
1649+import Ubuntu.Components 1.1
1650
1651 Row {
1652 id: row
1653
1654=== modified file 'modules/Ubuntu/Components/Pickers/SecondsModel.qml'
1655--- modules/Ubuntu/Components/Pickers/SecondsModel.qml 2014-04-20 19:25:12 +0000
1656+++ modules/Ubuntu/Components/Pickers/SecondsModel.qml 2014-04-25 13:00:38 +0000
1657@@ -15,7 +15,7 @@
1658 */
1659
1660 import QtQuick 2.0
1661-import Ubuntu.Components 1.0
1662+import Ubuntu.Components 1.1
1663
1664 PickerModelBase {
1665 property int from
1666
1667=== modified file 'modules/Ubuntu/Components/Pickers/YearModel.qml'
1668--- modules/Ubuntu/Components/Pickers/YearModel.qml 2014-04-20 19:25:12 +0000
1669+++ modules/Ubuntu/Components/Pickers/YearModel.qml 2014-04-25 13:00:38 +0000
1670@@ -15,7 +15,7 @@
1671 */
1672
1673 import QtQuick 2.0
1674-import Ubuntu.Components 1.0
1675+import Ubuntu.Components 1.1
1676
1677 PickerModelBase {
1678 // local properties
1679
1680=== modified file 'modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml'
1681--- modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml 2014-04-23 10:01:42 +0000
1682+++ modules/Ubuntu/Components/Popups/ActionSelectionPopover.qml 2014-04-25 13:00:38 +0000
1683@@ -15,7 +15,7 @@
1684 */
1685
1686 import QtQuick 2.0
1687-import Ubuntu.Components 1.0
1688+import Ubuntu.Components 1.1
1689 import Ubuntu.Components.ListItems 1.0
1690
1691 /*!
1692
1693=== modified file 'modules/Ubuntu/Components/Popups/ComposerSheet.qml'
1694--- modules/Ubuntu/Components/Popups/ComposerSheet.qml 2014-04-20 19:25:12 +0000
1695+++ modules/Ubuntu/Components/Popups/ComposerSheet.qml 2014-04-25 13:00:38 +0000
1696@@ -15,7 +15,7 @@
1697 */
1698
1699 import QtQuick 2.0
1700-import Ubuntu.Components 1.0
1701+import Ubuntu.Components 1.1
1702 /*!
1703 \qmltype ComposerSheet
1704 \inherits SheetBase
1705@@ -31,7 +31,7 @@
1706
1707 Example:
1708 \qml
1709- import Ubuntu.Components 1.0
1710+ import Ubuntu.Components 1.1
1711 import Ubuntu.Components.Popups 1.0
1712
1713 Item {
1714
1715=== modified file 'modules/Ubuntu/Components/Popups/DefaultSheet.qml'
1716--- modules/Ubuntu/Components/Popups/DefaultSheet.qml 2014-04-20 19:25:12 +0000
1717+++ modules/Ubuntu/Components/Popups/DefaultSheet.qml 2014-04-25 13:00:38 +0000
1718@@ -15,7 +15,7 @@
1719 */
1720
1721 import QtQuick 2.0
1722-import Ubuntu.Components 1.0
1723+import Ubuntu.Components 1.1
1724
1725 /*!
1726 \qmltype DefaultSheet
1727@@ -32,7 +32,7 @@
1728
1729 Example:
1730 \qml
1731- import Ubuntu.Components 1.0
1732+ import Ubuntu.Components 1.1
1733 import Ubuntu.Components.Popups 1.0
1734
1735 Item {
1736
1737=== modified file 'modules/Ubuntu/Components/Popups/Dialog.qml'
1738--- modules/Ubuntu/Components/Popups/Dialog.qml 2014-04-20 19:25:12 +0000
1739+++ modules/Ubuntu/Components/Popups/Dialog.qml 2014-04-25 13:00:38 +0000
1740@@ -15,7 +15,7 @@
1741 */
1742
1743 import QtQuick 2.0
1744-import Ubuntu.Components 1.0
1745+import Ubuntu.Components 1.1
1746 import "internalPopupUtils.js" as InternalPopupUtils
1747
1748 /*!
1749@@ -33,7 +33,7 @@
1750 Example:
1751 \qml
1752 import QtQuick 2.0
1753- import Ubuntu.Components 1.0
1754+ import Ubuntu.Components 1.1
1755 import Ubuntu.Components.Popups 1.0
1756
1757 Item {
1758
1759=== modified file 'modules/Ubuntu/Components/Popups/Popover.qml'
1760--- modules/Ubuntu/Components/Popups/Popover.qml 2014-04-20 19:25:12 +0000
1761+++ modules/Ubuntu/Components/Popups/Popover.qml 2014-04-25 13:00:38 +0000
1762@@ -16,7 +16,7 @@
1763
1764 import QtQuick 2.0
1765 import "internalPopupUtils.js" as InternalPopupUtils
1766-import Ubuntu.Components 1.0
1767+import Ubuntu.Components 1.1
1768
1769 /*!
1770 \qmltype Popover
1771@@ -32,7 +32,7 @@
1772 Example:
1773 \qml
1774 import QtQuick 2.0
1775- import Ubuntu.Components 1.0
1776+ import Ubuntu.Components 1.1
1777 import Ubuntu.Components.ListItems 1.0 as ListItem
1778 import Ubuntu.Components.Popups 1.0
1779
1780
1781=== modified file 'modules/Ubuntu/Components/Popups/PopupBase.qml'
1782--- modules/Ubuntu/Components/Popups/PopupBase.qml 2014-04-20 19:25:12 +0000
1783+++ modules/Ubuntu/Components/Popups/PopupBase.qml 2014-04-25 13:00:38 +0000
1784@@ -15,7 +15,7 @@
1785 */
1786
1787 import QtQuick 2.0
1788-import Ubuntu.Components 1.0
1789+import Ubuntu.Components 1.1
1790
1791 /*!
1792 \qmltype PopupBase
1793
1794=== modified file 'modules/Ubuntu/Components/Popups/SheetBase.qml'
1795--- modules/Ubuntu/Components/Popups/SheetBase.qml 2014-04-20 19:25:12 +0000
1796+++ modules/Ubuntu/Components/Popups/SheetBase.qml 2014-04-25 13:00:38 +0000
1797@@ -15,7 +15,7 @@
1798 */
1799
1800 import QtQuick 2.0
1801-import Ubuntu.Components 1.0
1802+import Ubuntu.Components 1.1
1803
1804 /*!
1805 \qmltype SheetBase
1806
1807=== modified file 'modules/Ubuntu/Components/ProgressBar.qml'
1808--- modules/Ubuntu/Components/ProgressBar.qml 2014-04-20 19:25:12 +0000
1809+++ modules/Ubuntu/Components/ProgressBar.qml 2014-04-25 13:00:38 +0000
1810@@ -18,7 +18,7 @@
1811
1812 /*!
1813 \qmltype ProgressBar
1814- \inqmlmodule Ubuntu.Components 1.0
1815+ \inqmlmodule Ubuntu.Components 1.1
1816 \ingroup ubuntu
1817 \brief The ProgressBar component visually indicates the progress of a process of
1818 determinate or indeterminate duration.
1819
1820=== modified file 'modules/Ubuntu/Components/Scrollbar.qml'
1821--- modules/Ubuntu/Components/Scrollbar.qml 2014-04-20 19:25:12 +0000
1822+++ modules/Ubuntu/Components/Scrollbar.qml 2014-04-25 13:00:38 +0000
1823@@ -18,7 +18,7 @@
1824
1825 /*!
1826 \qmltype ScrollBar
1827- \inqmlmodule Ubuntu.Components 1.0
1828+ \inqmlmodule Ubuntu.Components 1.1
1829 \ingroup ubuntu
1830 \brief The ScrollBar component provides scrolling functionality for
1831 scrollable views (i.e. Flickable, ListView).
1832
1833=== modified file 'modules/Ubuntu/Components/Slider.qml'
1834--- modules/Ubuntu/Components/Slider.qml 2014-04-20 19:25:12 +0000
1835+++ modules/Ubuntu/Components/Slider.qml 2014-04-25 13:00:38 +0000
1836@@ -21,7 +21,7 @@
1837
1838 /*!
1839 \qmltype Slider
1840- \inqmlmodule Ubuntu.Components 1.0
1841+ \inqmlmodule Ubuntu.Components 1.1
1842 \ingroup ubuntu
1843 \brief Slider is a component to select a value from a continuous range of
1844 values.
1845
1846=== modified file 'modules/Ubuntu/Components/StyledItem.qml'
1847--- modules/Ubuntu/Components/StyledItem.qml 2014-04-20 19:25:12 +0000
1848+++ modules/Ubuntu/Components/StyledItem.qml 2014-04-25 13:00:38 +0000
1849@@ -18,7 +18,7 @@
1850
1851 /*!
1852 \qmlabstract StyledItem
1853- \inqmlmodule Ubuntu.Components 1.0
1854+ \inqmlmodule Ubuntu.Components 1.1
1855 \ingroup theming
1856 \brief The StyledItem class allows items to be styled by the theme.
1857
1858
1859=== modified file 'modules/Ubuntu/Components/Switch.qml'
1860--- modules/Ubuntu/Components/Switch.qml 2014-04-20 19:25:12 +0000
1861+++ modules/Ubuntu/Components/Switch.qml 2014-04-25 13:00:38 +0000
1862@@ -21,7 +21,7 @@
1863
1864 /*!
1865 \qmltype Switch
1866- \inqmlmodule Ubuntu.Components 1.0
1867+ \inqmlmodule Ubuntu.Components 1.1
1868 \ingroup ubuntu
1869 \brief Switch is a component with two states, checked or unchecked. It can
1870 be used to set boolean options. The behavior is the same as \l CheckBox, the
1871
1872=== modified file 'modules/Ubuntu/Components/Tab.qml'
1873--- modules/Ubuntu/Components/Tab.qml 2014-04-20 19:25:12 +0000
1874+++ modules/Ubuntu/Components/Tab.qml 2014-04-25 13:00:38 +0000
1875@@ -18,7 +18,7 @@
1876
1877 /*!
1878 \qmltype Tab
1879- \inqmlmodule Ubuntu.Components 1.0
1880+ \inqmlmodule Ubuntu.Components 1.1
1881 \ingroup ubuntu
1882 \brief Component to represent a single tab in a \l Tabs environment.
1883
1884
1885=== modified file 'modules/Ubuntu/Components/TabBar.qml'
1886--- modules/Ubuntu/Components/TabBar.qml 2014-04-23 15:20:44 +0000
1887+++ modules/Ubuntu/Components/TabBar.qml 2014-04-25 13:00:38 +0000
1888@@ -18,7 +18,7 @@
1889
1890 /*!
1891 \qmltype TabBar
1892- \inqmlmodule Ubuntu.Components 1.0
1893+ \inqmlmodule Ubuntu.Components 1.1
1894 \ingroup ubuntu
1895 \brief Tab bar that will be shown in the header when \l Tabs is active.
1896 This component does not need to be instantiated by the developer, it is
1897
1898=== modified file 'modules/Ubuntu/Components/Tabs.qml'
1899--- modules/Ubuntu/Components/Tabs.qml 2014-04-23 22:36:54 +0000
1900+++ modules/Ubuntu/Components/Tabs.qml 2014-04-25 13:00:38 +0000
1901@@ -18,7 +18,7 @@
1902
1903 /*!
1904 \qmltype Tabs
1905- \inqmlmodule Ubuntu.Components 1.0
1906+ \inqmlmodule Ubuntu.Components 1.1
1907 \ingroup ubuntu
1908 \brief The Tabs class provides an environment where multible \l Tab
1909 children can be added, and the user is presented with a tab
1910@@ -33,7 +33,7 @@
1911 Example:
1912 \qml
1913 import QtQuick 2.0
1914- import Ubuntu.Components 1.0
1915+ import Ubuntu.Components 1.1
1916 import Ubuntu.Components.ListItems 1.0 as ListItem
1917
1918 MainView {
1919@@ -104,7 +104,7 @@
1920
1921 \qml
1922 import QtQuick 2.0
1923- import Ubuntu.Components 1.0
1924+ import Ubuntu.Components 1.1
1925
1926 MainView {
1927 id: mainView
1928
1929=== modified file 'modules/Ubuntu/Components/TextArea.qml'
1930--- modules/Ubuntu/Components/TextArea.qml 2014-04-23 10:01:42 +0000
1931+++ modules/Ubuntu/Components/TextArea.qml 2014-04-25 13:00:38 +0000
1932@@ -20,7 +20,7 @@
1933
1934 /*!
1935 \qmltype TextArea
1936- \inqmlmodule Ubuntu.Components 1.0
1937+ \inqmlmodule Ubuntu.Components 1.1
1938 \ingroup ubuntu
1939 \brief The TextArea item displays a block of editable, scrollable, formatted
1940 text.
1941
1942=== modified file 'modules/Ubuntu/Components/TextField.qml'
1943--- modules/Ubuntu/Components/TextField.qml 2014-04-23 10:01:42 +0000
1944+++ modules/Ubuntu/Components/TextField.qml 2014-04-25 13:00:38 +0000
1945@@ -20,7 +20,7 @@
1946
1947 /*!
1948 \qmltype TextField
1949- \inqmlmodule Ubuntu.Components 1.0
1950+ \inqmlmodule Ubuntu.Components 1.1
1951 \ingroup ubuntu
1952 \brief The TextField element displays a single line of editable plain text.
1953 Input constraints can be set through validator or inputMask. Setting echoMode
1954@@ -529,7 +529,7 @@
1955
1956 \qml
1957 import QtQuick 2.0
1958- import Ubuntu.Components 1.0
1959+ import Ubuntu.Components 1.1
1960 TextField{
1961 validator: IntValidator{bottom: 11; top: 31;}
1962 focus: true
1963
1964=== modified file 'modules/Ubuntu/Components/TextInputPopover.qml'
1965--- modules/Ubuntu/Components/TextInputPopover.qml 2014-04-20 19:25:12 +0000
1966+++ modules/Ubuntu/Components/TextInputPopover.qml 2014-04-25 13:00:38 +0000
1967@@ -15,7 +15,7 @@
1968 */
1969
1970 import QtQuick 2.0
1971-import Ubuntu.Components 1.0 as Toolkit
1972+import Ubuntu.Components 1.1 as Toolkit
1973 import "Popups" 0.1
1974
1975 ActionSelectionPopover {
1976
1977=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml'
1978--- modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml 2014-04-20 19:25:12 +0000
1979+++ modules/Ubuntu/Components/Themes/Ambiance/ActivityIndicatorStyle.qml 2014-04-25 13:00:38 +0000
1980@@ -15,7 +15,7 @@
1981 */
1982
1983 import QtQuick 2.0
1984-import Ubuntu.Components 1.0
1985+import Ubuntu.Components 1.1
1986
1987 Image {
1988 id: container
1989
1990=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml'
1991--- modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml 2014-04-20 19:25:12 +0000
1992+++ modules/Ubuntu/Components/Themes/Ambiance/BubbleShape.qml 2014-04-25 13:00:38 +0000
1993@@ -15,7 +15,7 @@
1994 */
1995
1996 import QtQuick 2.0
1997-import Ubuntu.Components 1.0
1998+import Ubuntu.Components 1.1
1999
2000 Item {
2001 id: bubbleShape
2002
2003=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml'
2004--- modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml 2014-04-20 19:25:12 +0000
2005+++ modules/Ubuntu/Components/Themes/Ambiance/ButtonForeground.qml 2014-04-25 13:00:38 +0000
2006@@ -17,7 +17,7 @@
2007 */
2008
2009 import QtQuick 2.0
2010-import Ubuntu.Components 1.0
2011+import Ubuntu.Components 1.1
2012
2013 Item {
2014 id: buttonForeground
2015@@ -30,6 +30,7 @@
2016 property real spacing
2017 property bool hasIcon: iconSource != ""
2018 property bool hasText: text != ""
2019+ property alias font: label.font
2020
2021 opacity: enabled ? 1.0 : 0.5
2022 implicitHeight: Math.max(icon.height, label.height)
2023
2024=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml'
2025--- modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml 2014-04-20 19:25:12 +0000
2026+++ modules/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml 2014-04-25 13:00:38 +0000
2027@@ -17,7 +17,7 @@
2028 */
2029
2030 import QtQuick 2.0
2031-import Ubuntu.Components 1.0
2032+import Ubuntu.Components 1.1
2033
2034 Item {
2035 id: buttonStyle
2036@@ -26,7 +26,16 @@
2037 property real minimumWidth: units.gu(10)
2038 property real horizontalPadding: units.gu(1)
2039 property color defaultColor: UbuntuColors.orange
2040+ property font defaultFont: Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")})
2041 property Gradient defaultGradient
2042+ property real buttonFaceOffset: 0
2043+ /*!
2044+ The property overrides the button's default background with an item. This
2045+ item can be used by derived styles to reuse the ButtonStyle and override
2046+ the default coloured background with an image or any other drawing.
2047+ The default value is null.
2048+ */
2049+ property Item backgroundSource: null
2050
2051 width: button.width
2052 height: button.height
2053@@ -36,12 +45,22 @@
2054 LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
2055 LayoutMirroring.childrenInherit: true
2056
2057+ /*! \internal */
2058+ // Color properties in a JS ternary operator don't work as expected in
2059+ // QML because it overwrites alpha values with 1. A workaround is to use
2060+ // Qt.rgba(). For more information, see
2061+ // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1197802 and
2062+ // https://bugreports.qt-project.org/browse/QTBUG-32238.
2063+ function __colorHack(color) { return Qt.rgba(color.r, color.g, color.b, color.a); }
2064+
2065+
2066 /* The proxy is necessary because Gradient.stops and GradientStop.color are
2067 non-NOTIFYable properties. They cannot be written to so it is fine but
2068 the proxy avoids the warnings.
2069 */
2070+ property QtObject gradientProxy: gradientProxyObject
2071 QtObject {
2072- id: gradientProxy
2073+ id: gradientProxyObject
2074 property color topColor
2075 property color bottomColor
2076
2077@@ -67,16 +86,11 @@
2078 id: background
2079 anchors.fill: parent
2080 borderSource: "radius_idle.sci"
2081- visible: color.a != 0.0
2082+ visible: (color.a != 0.0) || backgroundSource
2083+ image: backgroundSource
2084
2085- // Color properties in a JS ternary operator don't work as expected in
2086- // QML because it overwrites alpha values with 1. A workaround is to use
2087- // Qt.rgba(). For more information, see
2088- // https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1197802 and
2089- // https://bugreports.qt-project.org/browse/QTBUG-32238.
2090- function colorHack(color) { return Qt.rgba(color.r, color.g, color.b, color.a); }
2091- color: isGradient ? colorHack(gradientProxy.topColor) : colorHack(button.color)
2092- gradientColor: isGradient ? colorHack(gradientProxy.bottomColor) : colorHack(button.color)
2093+ color: backgroundSource ? "#00000000" : (isGradient ? __colorHack(gradientProxy.topColor) : __colorHack(button.color))
2094+ gradientColor: backgroundSource ? "#00000000" : (isGradient ? __colorHack(gradientProxy.bottomColor) : __colorHack(button.color))
2095 }
2096
2097 UbuntuShape {
2098@@ -98,7 +112,10 @@
2099 ButtonForeground {
2100 id: foreground
2101 width: parent.width - 2*horizontalPadding
2102- anchors.centerIn: parent
2103+ anchors {
2104+ centerIn: parent
2105+ horizontalCenterOffset: buttonFaceOffset
2106+ }
2107 text: button.text
2108 /* Pick either a clear or dark text color depending on the luminance of the
2109 background color to maintain good contrast (works in most cases)
2110@@ -107,6 +124,7 @@
2111 iconSource: button.iconSource
2112 iconPosition: button.iconPosition
2113 iconSize: units.gu(3)
2114+ font: button.font
2115 spacing: horizontalPadding
2116 transformOrigin: Item.Top
2117 scale: button.pressed ? 0.98 : 1.0
2118
2119=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml'
2120--- modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml 2014-04-20 19:25:12 +0000
2121+++ modules/Ubuntu/Components/Themes/Ambiance/CheckBoxStyle.qml 2014-04-25 13:00:38 +0000
2122@@ -15,7 +15,7 @@
2123 */
2124
2125 import QtQuick 2.0
2126-import Ubuntu.Components 1.0
2127+import Ubuntu.Components 1.1
2128
2129 Item {
2130 id: checkBoxStyle
2131
2132=== added file 'modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml'
2133--- modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml 1970-01-01 00:00:00 +0000
2134+++ modules/Ubuntu/Components/Themes/Ambiance/ComboButtonStyle.qml 2014-04-25 13:00:38 +0000
2135@@ -0,0 +1,243 @@
2136+/*
2137+ * Copyright 2014 Canonical Ltd.
2138+ *
2139+ * This program is free software; you can redistribute it and/or modify
2140+ * it under the terms of the GNU Lesser General Public License as published by
2141+ * the Free Software Foundation; version 3.
2142+ *
2143+ * This program is distributed in the hope that it will be useful,
2144+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
2145+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2146+ * GNU Lesser General Public License for more details.
2147+ *
2148+ * You should have received a copy of the GNU Lesser General Public License
2149+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
2150+ */
2151+
2152+import QtQuick 2.0
2153+import Ubuntu.Components 1.1
2154+
2155+/*!
2156+ \qmltype ComboButton
2157+ \ingroup style-api
2158+ \brief ComboButton style API.
2159+
2160+ The component defines the style of the ComboButton component.
2161+ */
2162+Item {
2163+ id: comboStyle
2164+
2165+ /*!
2166+ Width of the drop down button.
2167+ */
2168+ property real dropDownWidth: units.gu(5)
2169+
2170+ /*!
2171+ Width of the dropdown button separator.
2172+ */
2173+ property real dropDownSeparatorWidth: units.dp(2)
2174+
2175+ /*!
2176+ Distance between the combo list and the main button.
2177+ */
2178+ property real comboListMargin: units.gu(0.8)
2179+
2180+ /*!
2181+ The item which will holds the combo list data. Implementations can point both
2182+ this \l comboListPanel to the same component, however separate items should be
2183+ used if a gap between the panel and the content is required.
2184+ See Ambiance theme.
2185+ */
2186+ property Item comboListHolder: comboListContent
2187+
2188+ /*!
2189+ The item pointing to the panel holding the combo list and additional design
2190+ artifacts. It is used by the component to drive the expansion size.
2191+ */
2192+ property Item comboListPanel: panelItem
2193+
2194+ /*!
2195+ \qmlproperty color defaultColor
2196+ Default color for the main button.
2197+ */
2198+ property alias defaultColor: mainButton.defaultColor
2199+
2200+ /*!
2201+ \qmlproperty Gradient defaultGradient
2202+ Default gradient for the main button.
2203+ */
2204+ property alias defaultGradient: mainButton.defaultGradient
2205+
2206+ /*!
2207+ Default color for the dropdown button when released.
2208+ */
2209+ property color defaultDropdownColor: __combo.expanded ? Qt.rgba(0, 0, 0, 0.05) : defaultColor
2210+ /*!
2211+ Default button face font.
2212+ */
2213+ property alias defaultFont: mainButton.defaultFont
2214+
2215+
2216+ width: __combo.width
2217+ height: __combo.collapsedHeight
2218+
2219+ /*! \internal */
2220+ property ComboButton __combo: styledItem
2221+
2222+ implicitWidth: mainButton.implicitWidth
2223+ implicitHeight: mainButton.implicitHeight
2224+
2225+ LayoutMirroring.enabled: Qt.application.layoutDirection == Qt.RightToLeft
2226+ LayoutMirroring.childrenInherit: true
2227+
2228+ ButtonStyle {
2229+ id: mainButton
2230+ anchors {
2231+ left: parent.left
2232+ top: parent.top
2233+ right: parent.right
2234+ }
2235+ height: __combo.collapsedHeight
2236+ // overrides
2237+ backgroundSource: comboFace
2238+ buttonFaceOffset: -dropDownWidth/2 - dropDownSeparatorWidth
2239+ horizontalPadding: units.gu(4) - dropDownSeparatorWidth
2240+ minimumWidth: units.gu(36)
2241+
2242+ // FIXME: use hardcoded color while we get the theme palette updated
2243+ defaultColor: "#b2b2b2"
2244+ defaultGradient: null
2245+
2246+ // button face
2247+ ShaderEffectSource {
2248+ id: comboFace
2249+ sourceItem: content
2250+ hideSource: true
2251+ // FIXME: visible: false prevents rendering so make it a nearly
2252+ // transparent 1x1 pixel instead
2253+ opacity: 0.01
2254+ width: 1
2255+ height: 1
2256+ }
2257+
2258+ Item {
2259+ id: content
2260+ width: mainButton.width
2261+ height: mainButton.height
2262+
2263+ Rectangle {
2264+ anchors {
2265+ fill: parent
2266+ rightMargin: comboStyle.dropDownSeparatorWidth + comboStyle.dropDownWidth
2267+ }
2268+ color: __combo.color
2269+ gradient: mainButton.isGradient ? __combo.gradient : null
2270+ }
2271+
2272+ // distancer
2273+ Item {
2274+ anchors {
2275+ right: dropDownButton.right
2276+ top: parent.top
2277+ bottom: parent.bottom
2278+ }
2279+ width: comboStyle.dropDownSeparatorWidth
2280+ }
2281+
2282+ Rectangle {
2283+ id: dropDownButton
2284+ objectName: "combobutton_dropdown_visuals"
2285+ anchors {
2286+ right: parent.right
2287+ top: parent.top
2288+ bottom: parent.bottom
2289+ }
2290+ width: comboStyle.dropDownWidth
2291+ color: mainButton.__colorHack(__combo.dropdownColor)
2292+ Image {
2293+ source: "artwork/chevron.png"
2294+ anchors.centerIn: parent
2295+ rotation: __combo.expanded ? -90 : 90
2296+ }
2297+ }
2298+ }
2299+ }
2300+
2301+ Item {
2302+ id: panelItem
2303+ objectName: "combobutton_combopanel"
2304+ anchors {
2305+ left: parent.left
2306+ top: mainButton.bottom
2307+ right: parent.right
2308+ }
2309+ opacity: __combo.expanded && (__combo.comboList.length > 0)? 1.0 : 0.0
2310+
2311+ ShaderEffectSource {
2312+ id: listContent
2313+ sourceItem: comboListContent
2314+ hideSource: true
2315+ // FIXME: visible: false prevents rendering so make it a nearly
2316+ // transparent 1x1 pixel instead
2317+ opacity: 0.01
2318+ width: 1
2319+ height: 1
2320+ }
2321+ Rectangle {
2322+ id: comboListContent
2323+ anchors {
2324+ fill: parent
2325+ topMargin: comboListMargin
2326+ }
2327+ clip: true
2328+ color: mainButton.__colorHack(__combo.dropdownColor)
2329+ }
2330+
2331+ BorderImage {
2332+ id: shadow
2333+ anchors {
2334+ fill: parent
2335+ leftMargin: -units.gu(0.5)
2336+ topMargin: comboListMargin - units.gu(0.5)
2337+ rightMargin: -units.gu(0.5)
2338+ bottomMargin: -units.gu(0.5)
2339+ }
2340+ source: "artwork/bubble_shadow.sci"
2341+ }
2342+ UbuntuShape {
2343+ id: shape
2344+ anchors {
2345+ fill: parent
2346+ topMargin: comboListMargin
2347+ }
2348+ visible: true
2349+ borderSource: "radius_idle.sci"
2350+ image: listContent
2351+ }
2352+
2353+ Image {
2354+ source: "artwork/bubble_arrow.png"
2355+ rotation: 180
2356+ anchors {
2357+ bottom: shape.top
2358+ bottomMargin: -1
2359+ right: parent.right
2360+ rightMargin: dropDownWidth / 2 - units.gu(0.5)
2361+ }
2362+
2363+ }
2364+
2365+ Behavior on height {
2366+ NumberAnimation {
2367+ duration: UbuntuAnimation.FastDuration
2368+ easing: UbuntuAnimation.StandardEasing
2369+ }
2370+ }
2371+ Behavior on opacity {
2372+ NumberAnimation {
2373+ duration: UbuntuAnimation.FastDuration
2374+ easing: UbuntuAnimation.StandardEasing
2375+ }
2376+ }
2377+ }
2378+}
2379
2380=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml'
2381--- modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml 2014-04-20 19:25:12 +0000
2382+++ modules/Ubuntu/Components/Themes/Ambiance/DatePickerStyle.qml 2014-04-25 13:00:38 +0000
2383@@ -15,7 +15,7 @@
2384 */
2385
2386 import QtQuick 2.0
2387-import Ubuntu.Components 1.0
2388+import Ubuntu.Components 1.1
2389 import Ubuntu.Components.ListItems 1.0
2390
2391 Item {
2392
2393=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml'
2394--- modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml 2014-04-20 19:25:12 +0000
2395+++ modules/Ubuntu/Components/Themes/Ambiance/DialerHandStyle.qml 2014-04-25 13:00:38 +0000
2396@@ -15,7 +15,7 @@
2397 */
2398
2399 import QtQuick 2.0
2400-import Ubuntu.Components 1.0
2401+import Ubuntu.Components 1.1
2402
2403 Item {
2404 // style API
2405
2406=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml'
2407--- modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml 2014-04-20 19:25:12 +0000
2408+++ modules/Ubuntu/Components/Themes/Ambiance/DialerStyle.qml 2014-04-25 13:00:38 +0000
2409@@ -15,7 +15,7 @@
2410 */
2411
2412 import QtQuick 2.0
2413-import Ubuntu.Components 1.0
2414+import Ubuntu.Components 1.1
2415 import QtGraphicalEffects 1.0
2416
2417 // FIXME: Replace this once UbuntuShape support for gradients and shading has landed
2418
2419=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml'
2420--- modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml 2014-04-20 19:25:12 +0000
2421+++ modules/Ubuntu/Components/Themes/Ambiance/DialogForegroundStyle.qml 2014-04-25 13:00:38 +0000
2422@@ -15,7 +15,7 @@
2423 */
2424
2425 import QtQuick 2.0
2426-import Ubuntu.Components 1.0
2427+import Ubuntu.Components 1.1
2428
2429 Item {
2430 id: dialogForegroundStyle
2431
2432=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml'
2433--- modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml 2014-04-23 18:14:56 +0000
2434+++ modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml 2014-04-25 13:00:38 +0000
2435@@ -14,7 +14,7 @@
2436 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2437 */
2438 import QtQuick 2.0
2439-import Ubuntu.Components 1.0
2440+import Ubuntu.Components 1.1
2441
2442 Item {
2443 id: headerStyle
2444
2445=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml'
2446--- modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml 2014-04-20 19:25:12 +0000
2447+++ modules/Ubuntu/Components/Themes/Ambiance/ListItemOptionSelectorStyle.qml 2014-04-25 13:00:38 +0000
2448@@ -16,7 +16,7 @@
2449 */
2450
2451 import QtQuick 2.0
2452-import Ubuntu.Components 1.0
2453+import Ubuntu.Components 1.1
2454
2455 Item {
2456 id: ambianceStyle
2457
2458=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml'
2459--- modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml 2014-04-20 19:25:12 +0000
2460+++ modules/Ubuntu/Components/Themes/Ambiance/MainViewStyle.qml 2014-04-25 13:00:38 +0000
2461@@ -14,7 +14,7 @@
2462 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2463 */
2464 import QtQuick 2.0
2465-import Ubuntu.Components 1.0
2466+import Ubuntu.Components 1.1
2467
2468 Item {
2469 // styling properties
2470
2471=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml'
2472--- modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml 2014-04-20 19:25:12 +0000
2473+++ modules/Ubuntu/Components/Themes/Ambiance/OptionSelectorStyle.qml 2014-04-25 13:00:38 +0000
2474@@ -16,7 +16,7 @@
2475 */
2476
2477 import QtQuick 2.0
2478-import Ubuntu.Components 1.0
2479+import Ubuntu.Components 1.1
2480
2481 Item {
2482 id: ambianceStyle
2483
2484=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml'
2485--- modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml 2014-04-20 19:25:12 +0000
2486+++ modules/Ubuntu/Components/Themes/Ambiance/PickerDelegateStyle.qml 2014-04-25 13:00:38 +0000
2487@@ -15,7 +15,7 @@
2488 */
2489
2490 import QtQuick 2.0
2491-import Ubuntu.Components 1.0
2492+import Ubuntu.Components 1.1
2493
2494 Item {
2495 property real minFade: 0.2
2496
2497=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml'
2498--- modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml 2014-04-20 19:25:12 +0000
2499+++ modules/Ubuntu/Components/Themes/Ambiance/PickerStyle.qml 2014-04-25 13:00:38 +0000
2500@@ -15,7 +15,7 @@
2501 */
2502
2503 import QtQuick 2.0
2504-import Ubuntu.Components 1.0
2505+import Ubuntu.Components 1.1
2506 import Ubuntu.Components.ListItems 1.0
2507
2508 Item {
2509
2510=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml'
2511--- modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml 2014-04-20 19:25:12 +0000
2512+++ modules/Ubuntu/Components/Themes/Ambiance/ProgressBarStyle.qml 2014-04-25 13:00:38 +0000
2513@@ -15,7 +15,7 @@
2514 */
2515
2516 import QtQuick 2.0
2517-import Ubuntu.Components 1.0
2518+import Ubuntu.Components 1.1
2519
2520 Item {
2521 id: progressBarStyle
2522
2523=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml'
2524--- modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml 2014-04-20 19:25:12 +0000
2525+++ modules/Ubuntu/Components/Themes/Ambiance/ProgressionVisualStyle.qml 2014-04-25 13:00:38 +0000
2526@@ -15,7 +15,7 @@
2527 */
2528
2529 import QtQuick 2.0
2530-import Ubuntu.Components 1.0
2531+import Ubuntu.Components 1.1
2532
2533 Item {
2534 id: progressionVisualStyle
2535
2536=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml'
2537--- modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml 2014-04-20 19:25:12 +0000
2538+++ modules/Ubuntu/Components/Themes/Ambiance/ScrollbarStyle.qml 2014-04-25 13:00:38 +0000
2539@@ -15,7 +15,7 @@
2540 */
2541
2542 import QtQuick 2.0
2543-import Ubuntu.Components 1.0
2544+import Ubuntu.Components 1.1
2545
2546 /*
2547 The visuals handle both active and passive modes. This behavior is driven yet by
2548
2549=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml'
2550--- modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml 2014-04-20 19:25:12 +0000
2551+++ modules/Ubuntu/Components/Themes/Ambiance/SelectionCursorStyle.qml 2014-04-25 13:00:38 +0000
2552@@ -15,7 +15,7 @@
2553 */
2554
2555 import QtQuick 2.0
2556-import Ubuntu.Components 1.0
2557+import Ubuntu.Components 1.1
2558
2559 EditorCursorStyle {
2560 id: cursor
2561
2562=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml'
2563--- modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml 2014-04-20 19:25:12 +0000
2564+++ modules/Ubuntu/Components/Themes/Ambiance/SheetForegroundStyle.qml 2014-04-25 13:00:38 +0000
2565@@ -15,7 +15,7 @@
2566 */
2567
2568 import QtQuick 2.0
2569-import Ubuntu.Components 1.0
2570+import Ubuntu.Components 1.1
2571
2572 Item {
2573 id: visuals
2574
2575=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml'
2576--- modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml 2014-04-20 19:25:12 +0000
2577+++ modules/Ubuntu/Components/Themes/Ambiance/SliderStyle.qml 2014-04-25 13:00:38 +0000
2578@@ -15,7 +15,7 @@
2579 */
2580
2581 import QtQuick 2.0
2582-import Ubuntu.Components 1.0
2583+import Ubuntu.Components 1.1
2584
2585 /*
2586 The default slider style consists of a bar and a thumb shape.
2587
2588=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml'
2589--- modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml 2014-04-20 19:25:12 +0000
2590+++ modules/Ubuntu/Components/Themes/Ambiance/SwitchStyle.qml 2014-04-25 13:00:38 +0000
2591@@ -15,7 +15,7 @@
2592 */
2593
2594 import QtQuick 2.0
2595-import Ubuntu.Components 1.0
2596+import Ubuntu.Components 1.1
2597
2598 Item {
2599 id: switchStyle
2600
2601=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml'
2602--- modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml 2014-04-23 15:20:44 +0000
2603+++ modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml 2014-04-25 13:00:38 +0000
2604@@ -15,7 +15,7 @@
2605 */
2606
2607 import QtQuick 2.0
2608-import Ubuntu.Components 1.0
2609+import Ubuntu.Components 1.1
2610
2611 Item {
2612 id: tabBarStyle
2613
2614=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml'
2615--- modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml 2014-04-23 10:01:42 +0000
2616+++ modules/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml 2014-04-25 13:00:38 +0000
2617@@ -15,7 +15,7 @@
2618 */
2619
2620 import QtQuick 2.0
2621-import Ubuntu.Components 1.0
2622+import Ubuntu.Components 1.1
2623
2624 // frame
2625 Item {
2626
2627=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml'
2628--- modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml 2014-04-20 19:25:12 +0000
2629+++ modules/Ubuntu/Components/Themes/Ambiance/ToolbarButtonStyle.qml 2014-04-25 13:00:38 +0000
2630@@ -15,7 +15,7 @@
2631 */
2632
2633 import QtQuick 2.0
2634-import Ubuntu.Components 1.0
2635+import Ubuntu.Components 1.1
2636
2637 Item {
2638 id: visuals
2639
2640=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml'
2641--- modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml 2014-04-20 19:25:12 +0000
2642+++ modules/Ubuntu/Components/Themes/Ambiance/ToolbarStyle.qml 2014-04-25 13:00:38 +0000
2643@@ -14,7 +14,7 @@
2644 * along with this program. If not, see <http://www.gnu.org/licenses/>.
2645 */
2646 import QtQuick 2.0
2647-import Ubuntu.Components 1.0
2648+import Ubuntu.Components 1.1
2649
2650 Item {
2651 id: visuals
2652
2653=== modified file 'modules/Ubuntu/Components/Themes/Ambiance/qmldir'
2654--- modules/Ubuntu/Components/Themes/Ambiance/qmldir 2014-03-07 21:09:54 +0000
2655+++ modules/Ubuntu/Components/Themes/Ambiance/qmldir 2014-04-25 13:00:38 +0000
2656@@ -27,3 +27,21 @@
2657 DialerStyle 0.1 DialerStyle.qml
2658 DialerHandStyle 0.1 DialerHandStyle.qml
2659 internal HighlightMagnifier HighlightMagnifier.qml
2660+
2661+#version 1.0
2662+
2663+MainViewStyle 1.0 MainViewStyle.qml
2664+ListItemOptionSelector 1.0 ListItemOptionSelector.qml
2665+OptionSelectorStyle 1.0 OptionSelectorStyle.qml
2666+PopoverForegroundStyle 1.0 PopoverForegroundStyle.qml
2667+TabBarStyle 1.0 TabBarStyle.qml
2668+TextAreaStyle 1.0 TextAreaStyle.qml
2669+TextFieldStyle 1.0 TextFieldStyle.qml
2670+PickerStyle 1.0 PickerStyle.qml
2671+DatePickerStyle 1.0 DatePickerStyle.qml
2672+PickerDelegateStyle 1.0 PickerDelegateStyle.qml
2673+DialerStyle 1.0 DialerStyle.qml
2674+DialerHandStyle 1.0 DialerHandStyle.qml
2675+
2676+#version 1.1
2677+ComboButtonStyle 1.1 ComboButtonStyle.qml
2678
2679=== modified file 'modules/Ubuntu/Components/Toolbar.qml'
2680--- modules/Ubuntu/Components/Toolbar.qml 2014-04-20 19:25:12 +0000
2681+++ modules/Ubuntu/Components/Toolbar.qml 2014-04-25 13:00:38 +0000
2682@@ -19,7 +19,7 @@
2683 /*!
2684 \internal
2685 \qmltype Toolbar
2686- \inqmlmodule Ubuntu.Components 1.0
2687+ \inqmlmodule Ubuntu.Components 1.1
2688 \ingroup ubuntu
2689 \brief Application toolbar. This class is not exposed because it will
2690 be automatically added when a Page defines tools.
2691
2692=== modified file 'modules/Ubuntu/Components/ToolbarButton.qml'
2693--- modules/Ubuntu/Components/ToolbarButton.qml 2014-04-20 19:25:12 +0000
2694+++ modules/Ubuntu/Components/ToolbarButton.qml 2014-04-25 13:00:38 +0000
2695@@ -18,7 +18,7 @@
2696
2697 /*!
2698 \qmltype ToolbarButton
2699- \inqmlmodule Ubuntu.Components 1.0
2700+ \inqmlmodule Ubuntu.Components 1.1
2701 \ingroup ubuntu
2702 \brief An \l ActionItem that represents a button in the toolbar.
2703 ToolbarButtons should be included in \l ToolbarItems to define the tools of a \l Page.
2704@@ -28,7 +28,7 @@
2705 Example of different ways to define the toolbar button:
2706 \qml
2707 import QtQuick 2.0
2708- import Ubuntu.Components 1.0
2709+ import Ubuntu.Components 1.1
2710
2711 MainView {
2712 width: units.gu(50)
2713
2714=== modified file 'modules/Ubuntu/Components/ToolbarItems.qml'
2715--- modules/Ubuntu/Components/ToolbarItems.qml 2014-04-20 19:25:12 +0000
2716+++ modules/Ubuntu/Components/ToolbarItems.qml 2014-04-25 13:00:38 +0000
2717@@ -18,7 +18,7 @@
2718
2719 /*!
2720 \qmltype ToolbarItems
2721- \inqmlmodule Ubuntu.Components 1.0
2722+ \inqmlmodule Ubuntu.Components 1.1
2723 \ingroup ubuntu
2724 \brief Row of Items to be placed in a toolbar.
2725
2726@@ -38,7 +38,7 @@
2727 be visible to the user:
2728 \qml
2729 import QtQuick 2.0
2730- import Ubuntu.Components 1.0
2731+ import Ubuntu.Components 1.1
2732
2733 MainView {
2734 width: units.gu(50)
2735@@ -70,7 +70,7 @@
2736 the full height of the toolbar, and other Items you will probably want to center vertically:
2737 \qml
2738 import QtQuick 2.0
2739- import Ubuntu.Components 1.0
2740+ import Ubuntu.Components 1.1
2741
2742 MainView {
2743 width: units.gu(50)
2744@@ -119,7 +119,7 @@
2745 visible in the toolbar, instead of the default toolbar-styled back button:
2746 \qml
2747 import QtQuick 2.0
2748- import Ubuntu.Components 1.0
2749+ import Ubuntu.Components 1.1
2750
2751 MainView {
2752 width: units.gu(50)
2753
2754=== modified file 'modules/Ubuntu/Components/UbuntuListView.qml'
2755--- modules/Ubuntu/Components/UbuntuListView.qml 2014-04-20 19:25:12 +0000
2756+++ modules/Ubuntu/Components/UbuntuListView.qml 2014-04-25 13:00:38 +0000
2757@@ -15,11 +15,11 @@
2758 */
2759
2760 import QtQuick 2.0
2761-import Ubuntu.Components 1.0 as Toolkit
2762+import Ubuntu.Components 1.1 as Toolkit
2763
2764 /*!
2765 \qmltype UbuntuListView
2766- \inqmlmodule Ubuntu.Components 1.0
2767+ \inqmlmodule Ubuntu.Components 1.1
2768 \ingroup ubuntu
2769 \brief A ListView with special features tailored for a look and feel fitting the
2770 Ubuntu Touch platform.
2771@@ -30,7 +30,7 @@
2772
2773 Examples:
2774 \qml
2775- import Ubuntu.Components 1.0
2776+ import Ubuntu.Components 1.1
2777 import Ubuntu.Components.ListItems 1.0 as ListItem
2778
2779 Item {
2780
2781=== modified file 'modules/Ubuntu/Components/UbuntuNumberAnimation.qml'
2782--- modules/Ubuntu/Components/UbuntuNumberAnimation.qml 2014-04-23 09:10:47 +0000
2783+++ modules/Ubuntu/Components/UbuntuNumberAnimation.qml 2014-04-25 13:00:38 +0000
2784@@ -20,7 +20,7 @@
2785
2786 /*!
2787 \qmltype UbuntuNumberAnimation
2788- \inqmlmodule Ubuntu.Components 1.0
2789+ \inqmlmodule Ubuntu.Components 1.1
2790 \ingroup ubuntu
2791 \brief UbuntuNumberAnimation is a NumberAnimation that has predefined
2792 settings to ensure that Ubuntu applications are consistent in their animations.
2793@@ -29,7 +29,7 @@
2794
2795 \qml
2796 import QtQuick 2.0
2797- import Ubuntu.Components 1.0
2798+ import Ubuntu.Components 1.1
2799
2800 Rectangle {
2801 width: 100; height: 100
2802
2803=== modified file 'modules/Ubuntu/Components/UbuntuShape.qml'
2804--- modules/Ubuntu/Components/UbuntuShape.qml 2014-04-23 09:10:47 +0000
2805+++ modules/Ubuntu/Components/UbuntuShape.qml 2014-04-25 13:00:38 +0000
2806@@ -19,7 +19,7 @@
2807
2808 /*!
2809 \qmltype UbuntuShape
2810- \inqmlmodule Ubuntu.Components 1.0
2811+ \inqmlmodule Ubuntu.Components 1.1
2812 \ingroup ubuntu
2813 \brief The UbuntuShape item provides a standard Ubuntu shaped rounded rectangle.
2814
2815@@ -35,7 +35,7 @@
2816
2817 Examples:
2818 \qml
2819- import Ubuntu.Components 1.0
2820+ import Ubuntu.Components 1.1
2821
2822 UbuntuShape {
2823 color: "lightblue"
2824@@ -44,7 +44,7 @@
2825 \endqml
2826
2827 \qml
2828- import Ubuntu.Components 1.0
2829+ import Ubuntu.Components 1.1
2830
2831 UbuntuShape {
2832 image: Image {
2833
2834=== modified file 'modules/Ubuntu/Components/plugin/i18n.cpp'
2835--- modules/Ubuntu/Components/plugin/i18n.cpp 2014-04-20 19:25:12 +0000
2836+++ modules/Ubuntu/Components/plugin/i18n.cpp 2014-04-25 13:00:38 +0000
2837@@ -30,7 +30,7 @@
2838 /*!
2839 * \qmltype i18n
2840 * \instantiates UbuntuI18n
2841- * \inqmlmodule Ubuntu.Components 1.0
2842+ * \inqmlmodule Ubuntu.Components 1.1
2843 * \ingroup ubuntu
2844 * \brief i18n is a context property that provides internationalization support.
2845 *
2846
2847=== modified file 'modules/Ubuntu/Components/plugin/inversemouseareatype.cpp'
2848--- modules/Ubuntu/Components/plugin/inversemouseareatype.cpp 2014-04-23 22:36:54 +0000
2849+++ modules/Ubuntu/Components/plugin/inversemouseareatype.cpp 2014-04-25 13:00:38 +0000
2850@@ -21,7 +21,7 @@
2851 /*!
2852 \qmltype InverseMouseArea
2853 \instantiates InverseMouseAreaType
2854- \inqmlmodule Ubuntu.Components 1.0
2855+ \inqmlmodule Ubuntu.Components 1.1
2856 \ingroup ubuntu
2857 \brief The InverseMouseArea captures mouse events happening outside of a given
2858 area.
2859@@ -33,7 +33,7 @@
2860 Popup.qml
2861 \qml
2862 import QtQuick 2.0
2863- import Ubuntu.Components 1.0
2864+ import Ubuntu.Components 1.1
2865
2866 Rectangle {
2867 anchors.centerIn: parent
2868@@ -53,7 +53,7 @@
2869
2870 \qml
2871 import QtQuick 2.0
2872- import Ubuntu.Components 1.0
2873+ import Ubuntu.Components 1.1
2874
2875 Item {
2876 width: 640
2877@@ -77,7 +77,7 @@
2878 a component which is either a parent of the mouse area or a sibling of it.
2879 \qml
2880 import QtQuick 2.0
2881- import Ubuntu.Components 1.0
2882+ import Ubuntu.Components 1.1
2883
2884 Item {
2885 width: units.gu(40)
2886
2887=== modified file 'modules/Ubuntu/Components/plugin/qquickclipboard.cpp'
2888--- modules/Ubuntu/Components/plugin/qquickclipboard.cpp 2014-04-20 19:25:12 +0000
2889+++ modules/Ubuntu/Components/plugin/qquickclipboard.cpp 2014-04-25 13:00:38 +0000
2890@@ -26,7 +26,7 @@
2891 /*!
2892 * \qmltype Clipboard
2893 * \instantiates QQuickClipboard
2894- * \inqmlmodule Ubuntu.Components 1.0
2895+ * \inqmlmodule Ubuntu.Components 1.1
2896 * \ingroup ubuntu
2897 * \brief This is a singleton type providing access to the system clipboard.
2898 *
2899
2900=== modified file 'modules/Ubuntu/Components/plugin/qquickmimedata.cpp'
2901--- modules/Ubuntu/Components/plugin/qquickmimedata.cpp 2014-04-20 19:25:12 +0000
2902+++ modules/Ubuntu/Components/plugin/qquickmimedata.cpp 2014-04-25 13:00:38 +0000
2903@@ -28,7 +28,7 @@
2904 /*!
2905 * \qmltype MimeData
2906 * \instantiates QQuickMimeData
2907- * \inqmlmodule Ubuntu.Components 1.0
2908+ * \inqmlmodule Ubuntu.Components 1.1
2909 * \ingroup ubuntu
2910 * \brief MimeData type provides interface to access and store data to the
2911 * Clipboard.
2912
2913=== modified file 'modules/Ubuntu/Components/plugin/ucalarm.cpp'
2914--- modules/Ubuntu/Components/plugin/ucalarm.cpp 2014-04-20 19:25:12 +0000
2915+++ modules/Ubuntu/Components/plugin/ucalarm.cpp 2014-04-25 13:00:38 +0000
2916@@ -219,7 +219,7 @@
2917 /*!
2918 * \qmltype Alarm
2919 * \instantiates UCAlarm
2920- * \inqmlmodule Ubuntu.Components 1.0
2921+ * \inqmlmodule Ubuntu.Components 1.1
2922 * \ingroup ubuntu-services
2923 * \brief Alarm component is a representation of an alarm event.
2924 *
2925@@ -237,7 +237,7 @@
2926 * Example usage:
2927 * \qml
2928 * import QtQuick 2.0
2929- * import Ubuntu.Components 1.0
2930+ * import Ubuntu.Components 1.1
2931 *
2932 * Rectangle {
2933 * width: units.gu(40)
2934
2935=== modified file 'modules/Ubuntu/Components/plugin/ucalarmmodel.cpp'
2936--- modules/Ubuntu/Components/plugin/ucalarmmodel.cpp 2014-04-20 19:25:12 +0000
2937+++ modules/Ubuntu/Components/plugin/ucalarmmodel.cpp 2014-04-25 13:00:38 +0000
2938@@ -25,7 +25,7 @@
2939 /*!
2940 * \qmltype AlarmModel
2941 * \instantiates UCAlarmModel
2942- * \inqmlmodule Ubuntu.Components 1.0
2943+ * \inqmlmodule Ubuntu.Components 1.1
2944 * \ingroup ubuntu-services
2945 * \brief AlarmModel holds the list of alarms defined.
2946 *
2947@@ -39,7 +39,7 @@
2948 * Example usage:
2949 * \qml
2950 * import QtQuick 2.0
2951- * import Ubuntu.Components 1.0
2952+ * import Ubuntu.Components 1.1
2953 * import Ubuntu.Components.ListItems 1.0
2954 * ListView {
2955 * model: AlarmModel {}
2956
2957=== modified file 'modules/Ubuntu/Components/plugin/ucapplication.cpp'
2958--- modules/Ubuntu/Components/plugin/ucapplication.cpp 2014-04-20 19:25:12 +0000
2959+++ modules/Ubuntu/Components/plugin/ucapplication.cpp 2014-04-25 13:00:38 +0000
2960@@ -27,7 +27,7 @@
2961 /*!
2962 * \qmltype UbuntuApplication
2963 * \instantiates UCApplication
2964- * \inqmlmodule Ubuntu.Components 1.0
2965+ * \inqmlmodule Ubuntu.Components 1.1
2966 * \ingroup ubuntu
2967 * \brief UbuntuApplication is a QML binding for a subset of QCoreApplication.
2968 *
2969
2970=== modified file 'modules/Ubuntu/Components/plugin/ucargument.cpp'
2971--- modules/Ubuntu/Components/plugin/ucargument.cpp 2014-04-20 19:25:12 +0000
2972+++ modules/Ubuntu/Components/plugin/ucargument.cpp 2014-04-25 13:00:38 +0000
2973@@ -21,7 +21,7 @@
2974 /*!
2975 * \qmltype Argument
2976 * \instantiates UCArgument
2977- * \inqmlmodule Ubuntu.Components 1.0
2978+ * \inqmlmodule Ubuntu.Components 1.1
2979 * \ingroup ubuntu-commandline
2980 * \brief The Argument class specifies what type a given command line parameter should be.
2981 *
2982
2983=== modified file 'modules/Ubuntu/Components/plugin/ucarguments.cpp'
2984--- modules/Ubuntu/Components/plugin/ucarguments.cpp 2014-04-20 19:25:12 +0000
2985+++ modules/Ubuntu/Components/plugin/ucarguments.cpp 2014-04-25 13:00:38 +0000
2986@@ -28,7 +28,7 @@
2987 /*!
2988 * \qmltype Arguments
2989 * \instantiates UCArguments
2990- * \inqmlmodule Ubuntu.Components 1.0
2991+ * \inqmlmodule Ubuntu.Components 1.1
2992 * \ingroup ubuntu-commandline
2993 * \brief The Arguments class provides a way to declare what command line
2994 * parameters are expected by the application.
2995
2996=== modified file 'modules/Ubuntu/Components/plugin/ucfontutils.cpp'
2997--- modules/Ubuntu/Components/plugin/ucfontutils.cpp 2014-04-20 19:25:12 +0000
2998+++ modules/Ubuntu/Components/plugin/ucfontutils.cpp 2014-04-25 13:00:38 +0000
2999@@ -21,7 +21,7 @@
3000 /*!
3001 * \qmltype FontUtils
3002 * \instantiates UCFontUtils
3003- * \inqmlmodule Ubuntu.Components 1.0
3004+ * \inqmlmodule Ubuntu.Components 1.1
3005 * \ingroup ubuntu
3006 * \brief FontUtils is a \l {http://qt-project.org/doc/qt-5.0/qtqml/qqmlcontext.html#details} {context property},
3007 * which provides utility functions for font manipulations.
3008@@ -34,7 +34,7 @@
3009 * size:
3010 * \qml
3011 * import QtQuick 2.0
3012- * import Ubuntu.Components 1.0
3013+ * import Ubuntu.Components 1.1
3014 *
3015 * Text {
3016 * property string fontSize: "medium"
3017@@ -46,7 +46,7 @@
3018 * font unit size to scale its font:
3019 * \qml
3020 * import QtQuick 2.0
3021- * import Ubuntu.Components 1.0
3022+ * import Ubuntu.Components 1.1
3023 *
3024 * TextInput {
3025 * property string fontSize: "small"
3026
3027=== modified file 'modules/Ubuntu/Components/plugin/ucmousefilters.cpp'
3028--- modules/Ubuntu/Components/plugin/ucmousefilters.cpp 2014-04-23 10:01:42 +0000
3029+++ modules/Ubuntu/Components/plugin/ucmousefilters.cpp 2014-04-25 13:00:38 +0000
3030@@ -59,7 +59,7 @@
3031 /*!
3032 \qmltype Mouse
3033 \instantiates UCMouse
3034- \inqmlmodule Ubuntu.Components 1.0
3035+ \inqmlmodule Ubuntu.Components 1.1
3036 \ingroup ubuntu
3037 \brief Attached property filtering mouse events occured inside the owner.
3038
3039@@ -97,7 +97,7 @@
3040 released mouse buttons would look as follows:
3041 \qml
3042 import QtQuick 2.0
3043- import Ubuntu.Components 1.0
3044+ import Ubuntu.Components 1.1
3045
3046 TextInput {
3047 width: 100
3048@@ -119,7 +119,7 @@
3049 Example of handling right button clicks over a TextInput:
3050 \qml
3051 import QtQuick 2.0
3052- import Ubuntu.Components 1.0
3053+ import Ubuntu.Components 1.1
3054
3055 TextInput {
3056 width: 100
3057@@ -141,7 +141,7 @@
3058
3059 \qml
3060 import QtQuick 2.0
3061- import Ubuntu.Components 1.0
3062+ import Ubuntu.Components 1.1
3063
3064 TextInput {
3065 width: 100
3066@@ -201,7 +201,7 @@
3067 will be printed as well as the proxied mouse press from the main item.
3068 \qml
3069 import QtQuick 2.0
3070- import Ubuntu.Components 1.0
3071+ import Ubuntu.Components 1.1
3072
3073 Item {
3074 id: main
3075@@ -254,7 +254,7 @@
3076 will be blocked by the MouseArea still.
3077 \qml
3078 import QtQuick 2.0
3079- import Ubuntu.Components 1.0
3080+ import Ubuntu.Components 1.1
3081
3082 MouseArea {
3083 id: topArea
3084@@ -289,7 +289,7 @@
3085 we make sure the TextInput always receives the events before the filter:
3086 \qml
3087 import QtQuick 2.0
3088- import Ubuntu.Components 1.0
3089+ import Ubuntu.Components 1.1
3090
3091 TextInput {
3092 id: input
3093@@ -316,7 +316,7 @@
3094
3095 \qml
3096 import QtQuick 2.0
3097- import Ubuntu.Components 1.0
3098+ import Ubuntu.Components 1.1
3099
3100 TextInput {
3101 width: units.gu(40)
3102@@ -954,7 +954,7 @@
3103 /*!
3104 \qmltype InverseMouse
3105 \instantiates UCInverseMouse
3106- \inqmlmodule Ubuntu.Components 1.0
3107+ \inqmlmodule Ubuntu.Components 1.1
3108 \ingroup ubuntu
3109 \brief Attached object filtering mouse events occured outside the owner.
3110
3111
3112=== modified file 'modules/Ubuntu/Components/plugin/ucstatesaver.cpp'
3113--- modules/Ubuntu/Components/plugin/ucstatesaver.cpp 2014-04-20 19:25:12 +0000
3114+++ modules/Ubuntu/Components/plugin/ucstatesaver.cpp 2014-04-25 13:00:38 +0000
3115@@ -140,7 +140,7 @@
3116 /*!
3117 * \qmltype StateSaver
3118 * \instantiates UCStateSaverAttached
3119- * \inqmlmodule Ubuntu.Components 1.0
3120+ * \inqmlmodule Ubuntu.Components 1.1
3121 * \ingroup ubuntu-services
3122 * \brief Attached propertyes to save component property states.
3123 *
3124@@ -158,7 +158,7 @@
3125 * Example:
3126 * \qml
3127 * import QtQuick 2.0
3128- * import Ubuntu.Components 1.0
3129+ * import Ubuntu.Components 1.1
3130 *
3131 * TextField {
3132 * id: input
3133
3134=== modified file 'modules/Ubuntu/Components/plugin/uctheme.cpp'
3135--- modules/Ubuntu/Components/plugin/uctheme.cpp 2014-04-20 19:25:12 +0000
3136+++ modules/Ubuntu/Components/plugin/uctheme.cpp 2014-04-25 13:00:38 +0000
3137@@ -36,7 +36,7 @@
3138 /*!
3139 \qmltype Theme
3140 \instantiates UCTheme
3141- \inqmlmodule Ubuntu.Components 1.0
3142+ \inqmlmodule Ubuntu.Components 1.1
3143 \ingroup theming
3144 \brief The Theme class provides facilities to interact with the current theme.
3145
3146@@ -48,7 +48,7 @@
3147
3148 \qml
3149 import QtQuick 2.0
3150- import Ubuntu.Components 1.0
3151+ import Ubuntu.Components 1.1
3152
3153 Item {
3154 Button {
3155@@ -61,7 +61,7 @@
3156
3157 \qml
3158 import QtQuick 2.0
3159- import Ubuntu.Components 1.0
3160+ import Ubuntu.Components 1.1
3161
3162 StyledItem {
3163 id: myItem
3164
3165=== modified file 'modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp'
3166--- modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp 2014-04-20 19:25:12 +0000
3167+++ modules/Ubuntu/Components/plugin/ucubuntuanimation.cpp 2014-04-25 13:00:38 +0000
3168@@ -21,7 +21,7 @@
3169 /*!
3170 * \qmltype UbuntuAnimation
3171 * \instantiates UCUbuntuAnimation
3172- * \inqmlmodule Ubuntu.Components 1.0
3173+ * \inqmlmodule Ubuntu.Components 1.1
3174 * \ingroup ubuntu
3175 * \brief Singleton defining standard Ubuntu durations and easing for animations
3176 * that should be used to ensure that Ubuntu applications are consistent
3177
3178=== modified file 'modules/Ubuntu/Components/plugin/ucunits.cpp'
3179--- modules/Ubuntu/Components/plugin/ucunits.cpp 2014-04-20 19:25:12 +0000
3180+++ modules/Ubuntu/Components/plugin/ucunits.cpp 2014-04-25 13:00:38 +0000
3181@@ -40,7 +40,7 @@
3182 /*!
3183 \qmltype Units
3184 \instantiates UCUnits
3185- \inqmlmodule Ubuntu.Components 1.0
3186+ \inqmlmodule Ubuntu.Components 1.1
3187 \ingroup resolution-independence
3188 \brief Units of measurement for sizes, spacing, margin, etc.
3189
3190@@ -52,7 +52,7 @@
3191
3192 \qml
3193 import QtQuick 2.0
3194- import Ubuntu.Components 1.0
3195+ import Ubuntu.Components 1.1
3196
3197 Item {
3198 width: units.gu(2)
3199
3200=== modified file 'modules/Ubuntu/Components/plugin/ucurihandler.cpp'
3201--- modules/Ubuntu/Components/plugin/ucurihandler.cpp 2014-04-20 19:25:12 +0000
3202+++ modules/Ubuntu/Components/plugin/ucurihandler.cpp 2014-04-25 13:00:38 +0000
3203@@ -36,7 +36,7 @@
3204 /*!
3205 * \qmltype UriHandler
3206 * \instantiates UCUriHandler
3207- * \inqmlmodule Ubuntu.Components 1.0
3208+ * \inqmlmodule Ubuntu.Components 1.1
3209 * \ingroup ubuntu
3210 * \brief Singleton signalling for opened URIs.
3211 *
3212
3213=== modified file 'modules/Ubuntu/Components/qmldir'
3214--- modules/Ubuntu/Components/qmldir 2014-04-23 10:01:42 +0000
3215+++ modules/Ubuntu/Components/qmldir 2014-04-25 13:00:38 +0000
3216@@ -89,3 +89,6 @@
3217 ColorUtils 1.0 colorUtils.js
3218 DateUtils 1.0 dateUtils.js
3219 UbuntuListView 1.0 UbuntuListView.qml
3220+
3221+#version 1.1
3222+ComboButton 1.1 ComboButton.qml
3223
3224=== modified file 'modules/Ubuntu/PerformanceMetrics/BarGraph.qml'
3225--- modules/Ubuntu/PerformanceMetrics/BarGraph.qml 2014-04-20 19:25:12 +0000
3226+++ modules/Ubuntu/PerformanceMetrics/BarGraph.qml 2014-04-25 13:00:38 +0000
3227@@ -15,7 +15,7 @@
3228 */
3229
3230 import QtQuick 2.0
3231-import Ubuntu.Components 1.0
3232+import Ubuntu.Components 1.1
3233 import Ubuntu.PerformanceMetrics 1.0 as PerformanceMetrics
3234
3235 Item {
3236
3237=== modified file 'modules/Ubuntu/Test/UbuntuTestCase.qml'
3238--- modules/Ubuntu/Test/UbuntuTestCase.qml 2014-04-23 10:01:42 +0000
3239+++ modules/Ubuntu/Test/UbuntuTestCase.qml 2014-04-25 13:00:38 +0000
3240@@ -16,7 +16,7 @@
3241
3242 import QtQuick 2.0
3243 import QtTest 1.0
3244-import Ubuntu.Components 1.0
3245+import Ubuntu.Components 1.1
3246
3247 /*!
3248 \qmlabstract UbuntuTestCase
3249
3250=== modified file 'tests/autopilot/ubuntuuitoolkit/emulators.py'
3251--- tests/autopilot/ubuntuuitoolkit/emulators.py 2014-04-24 12:07:30 +0000
3252+++ tests/autopilot/ubuntuuitoolkit/emulators.py 2014-04-25 13:00:38 +0000
3253@@ -543,6 +543,32 @@
3254 self.checked.wait_for(not original_state, timeout)
3255
3256
3257+class ComboButton(UbuntuUIToolkitEmulatorBase):
3258+ """ComboButton Autopilot emulator."""
3259+
3260+ def press_mainbutton(self):
3261+ """Presses the main button of the ComboBox."""
3262+ main_button = self.select_single(objectName="combobutton_mainbutton")
3263+ self.pointing_device.click_object(main_button)
3264+
3265+ def expand(self):
3266+ """Expands a combo button by clicking on the dropdown button."""
3267+ if not self.expanded:
3268+ self._press_dropdown()
3269+ return self.expanded
3270+
3271+ def collapse(self):
3272+ """Collapses a combo button by clicking on the dropdown button."""
3273+ if self.expanded:
3274+ self._press_dropdown()
3275+ return self.expanded
3276+
3277+ def _press_dropdown(self):
3278+ """Presses the dropdown button to togle combo list expansion."""
3279+ dropdown_button = self.select_single(objectName="combobutton_dropdown")
3280+ return self.pointing_device.click_object(dropdown_button)
3281+
3282+
3283 class OptionSelector(UbuntuUIToolkitEmulatorBase):
3284 """OptionSelector Autopilot emulator"""
3285
3286
3287=== modified file 'tests/autopilot/ubuntuuitoolkit/fixture_setup.py'
3288--- tests/autopilot/ubuntuuitoolkit/fixture_setup.py 2014-04-20 19:25:12 +0000
3289+++ tests/autopilot/ubuntuuitoolkit/fixture_setup.py 2014-04-25 13:00:38 +0000
3290@@ -25,7 +25,7 @@
3291
3292 DEFAULT_QML_FILE_CONTENTS = ("""
3293 import QtQuick 2.0
3294-import Ubuntu.Components 1.0
3295+import Ubuntu.Components 1.1
3296
3297 MainView {
3298 width: units.gu(48)
3299
3300=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/__init__.py'
3301--- tests/autopilot/ubuntuuitoolkit/tests/__init__.py 2014-04-20 19:25:12 +0000
3302+++ tests/autopilot/ubuntuuitoolkit/tests/__init__.py 2014-04-25 13:00:38 +0000
3303@@ -65,7 +65,7 @@
3304
3305 test_qml = ("""
3306 import QtQuick 2.0
3307-import Ubuntu.Components 1.0
3308+import Ubuntu.Components 1.1
3309
3310 MainView {
3311 width: units.gu(48)
3312
3313=== modified file 'tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py'
3314--- tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2014-04-23 22:36:54 +0000
3315+++ tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py 2014-04-25 13:00:38 +0000
3316@@ -72,7 +72,7 @@
3317
3318 test_qml = ("""
3319 import QtQuick 2.0
3320-import Ubuntu.Components 1.0
3321+import Ubuntu.Components 1.1
3322
3323 MainView {
3324 width: units.gu(48)
3325@@ -125,7 +125,7 @@
3326
3327 test_qml = ("""
3328 import QtQuick 2.0
3329-import Ubuntu.Components 1.0
3330+import Ubuntu.Components 1.1
3331
3332 MainView {
3333 width: units.gu(48)
3334@@ -148,7 +148,7 @@
3335
3336 test_qml = ("""
3337 import QtQuick 2.0
3338-import Ubuntu.Components 1.0
3339+import Ubuntu.Components 1.1
3340
3341 MainView {
3342 width: units.gu(50)
3343@@ -244,7 +244,7 @@
3344
3345 TEST_TABS_QML_FORMAT = ("""
3346 import QtQuick 2.0
3347-import Ubuntu.Components 1.0
3348+import Ubuntu.Components 1.1
3349
3350 MainView {{
3351 width: units.gu(70)
3352@@ -382,7 +382,7 @@
3353
3354 test_qml = ("""
3355 import QtQuick 2.0
3356-import Ubuntu.Components 1.0
3357+import Ubuntu.Components 1.1
3358 import Ubuntu.Components.Popups 1.0
3359
3360 MainView {
3361@@ -456,7 +456,7 @@
3362
3363 TEST_QML_WITH_CHECKBOX = ("""
3364 import QtQuick 2.0
3365-import Ubuntu.Components 1.0
3366+import Ubuntu.Components 1.1
3367
3368 MainView {
3369 width: units.gu(48)
3370@@ -474,7 +474,7 @@
3371
3372 TEST_QML_WITH_SWITCH = ("""
3373 import QtQuick 2.0
3374-import Ubuntu.Components 1.0
3375+import Ubuntu.Components 1.1
3376
3377 MainView {
3378 width: units.gu(48)
3379@@ -567,7 +567,7 @@
3380
3381 test_qml = ("""
3382 import QtQuick 2.0
3383-import Ubuntu.Components 1.0
3384+import Ubuntu.Components 1.1
3385 import Ubuntu.Components.ListItems 1.0 as ListItem
3386
3387 MainView {
3388@@ -665,7 +665,7 @@
3389
3390 test_qml = ("""
3391 import QtQuick 2.0
3392-import Ubuntu.Components 1.0
3393+import Ubuntu.Components 1.1
3394 import Ubuntu.Components.ListItems 1.0 as ListItem
3395
3396 MainView {
3397@@ -740,7 +740,7 @@
3398
3399 test_qml = ("""
3400 import QtQuick 2.0
3401-import Ubuntu.Components 1.0
3402+import Ubuntu.Components 1.1
3403 import Ubuntu.Components.ListItems 1.0
3404
3405
3406@@ -892,7 +892,7 @@
3407
3408 test_qml = ("""
3409 import QtQuick 2.0
3410-import Ubuntu.Components 1.0
3411+import Ubuntu.Components 1.1
3412
3413 MainView {
3414 width: units.gu(48)
3415@@ -947,7 +947,7 @@
3416
3417 test_qml = ("""
3418 import QtQuick 2.0
3419-import Ubuntu.Components 1.0
3420+import Ubuntu.Components 1.1
3421
3422 MainView {
3423 width: units.gu(48)
3424@@ -1020,7 +1020,7 @@
3425
3426 test_qml = ("""
3427 import QtQuick 2.0
3428-import Ubuntu.Components 1.0
3429+import Ubuntu.Components 1.1
3430 import Ubuntu.Components.Popups 1.0
3431
3432 MainView {
3433@@ -1091,11 +1091,78 @@
3434 self._assert_composer_sheet_is_closed()
3435
3436
3437+class ComboButtonTestCase(tests.QMLStringAppTestCase):
3438+ test_qml = ("""
3439+import QtQuick 2.0
3440+import Ubuntu.Components 1.1
3441+import Ubuntu.Components.ListItems 1.0
3442+
3443+MainView {
3444+ width: units.gu(40)
3445+ height: units.gu(60)
3446+
3447+ Column {
3448+ anchors.fill: parent
3449+
3450+ ComboButton {
3451+ text: "main button"
3452+ objectName: "combo_button"
3453+ ListView {
3454+ model: 10
3455+ delegate: Standard {
3456+ text: "Item #" + modelData
3457+ }
3458+ }
3459+ }
3460+ ComboButton {
3461+ text: "main button"
3462+ objectName: "autocollapse_button"
3463+ onClicked: expanded = false
3464+ ListView {
3465+ model: 10
3466+ delegate: Standard {
3467+ text: "Item #" + modelData
3468+ }
3469+ }
3470+ }
3471+ }
3472+}
3473+""")
3474+
3475+ def setUp(self):
3476+ super(ComboButtonTestCase, self).setUp()
3477+ self.combo = self.main_view.select_single(
3478+ emulators.ComboButton, objectName="combo_button")
3479+ self.autocombo = self.main_view.select_single(
3480+ emulators.ComboButton, objectName="autocollapse_button")
3481+ self.assertFalse(self.combo.expanded)
3482+ self.assertFalse(self.autocombo.expanded)
3483+
3484+ def test_expand_collapse_combo(self):
3485+ self.combo.expand()
3486+ self.assertTrue(self.combo.expanded)
3487+ self.combo.collapse()
3488+ self.assertFalse(self.combo.expanded)
3489+
3490+ def test_main_pressed(self):
3491+ self.combo.expand()
3492+ self.assertTrue(self.combo.expanded)
3493+ self.combo.press_mainbutton()
3494+ self.assertTrue(self.combo.expanded)
3495+
3496+ def test_autocollapse(self):
3497+ self.autocombo.expand()
3498+ self.assertTrue(self.autocombo.expanded)
3499+ self.autocombo.press_mainbutton()
3500+ self.assertFalse(self.autocombo.expanded)
3501+
3502+
3503 class OptionSelectorCustomDelegateTestCase(tests.QMLStringAppTestCase):
3504
3505 test_qml = ("""
3506 import QtQuick 2.0
3507-import Ubuntu.Components 1.0
3508+import Ubuntu.Components 1.1
3509+import Ubuntu.Components.ListItems 1.0
3510
3511 MainView {
3512 width: units.gu(48)
3513@@ -1194,7 +1261,7 @@
3514
3515 test_qml = ("""
3516 import QtQuick 2.0
3517-import Ubuntu.Components 1.0
3518+import Ubuntu.Components 1.1
3519
3520 MainView {
3521 width: units.gu(48)
3522
3523=== modified file 'tests/resources/alarm/AlarmDays.qml'
3524--- tests/resources/alarm/AlarmDays.qml 2014-04-20 19:25:12 +0000
3525+++ tests/resources/alarm/AlarmDays.qml 2014-04-25 13:00:38 +0000
3526@@ -15,7 +15,7 @@
3527 */
3528
3529 import QtQuick 2.0
3530-import Ubuntu.Components 1.0
3531+import Ubuntu.Components 1.1
3532 import Ubuntu.Components.Popups 1.0
3533 import Ubuntu.Components.ListItems 1.0
3534
3535
3536=== modified file 'tests/resources/alarm/Alarms.qml'
3537--- tests/resources/alarm/Alarms.qml 2014-04-20 19:25:12 +0000
3538+++ tests/resources/alarm/Alarms.qml 2014-04-25 13:00:38 +0000
3539@@ -15,7 +15,7 @@
3540 */
3541
3542 import QtQuick 2.0
3543-import Ubuntu.Components 1.0
3544+import Ubuntu.Components 1.1
3545 import Ubuntu.Components.ListItems 1.0
3546 import Ubuntu.Components.Popups 1.0
3547
3548
3549=== added directory 'tests/resources/buttons'
3550=== added file 'tests/resources/buttons/ComboTest.qml'
3551--- tests/resources/buttons/ComboTest.qml 1970-01-01 00:00:00 +0000
3552+++ tests/resources/buttons/ComboTest.qml 2014-04-25 13:00:38 +0000
3553@@ -0,0 +1,143 @@
3554+/*
3555+ * Copyright 2014 Canonical Ltd.
3556+ *
3557+ * This program is free software; you can redistribute it and/or modify
3558+ * it under the terms of the GNU Lesser General Public License as published by
3559+ * the Free Software Foundation; version 3.
3560+ *
3561+ * This program is distributed in the hope that it will be useful,
3562+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
3563+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3564+ * GNU Lesser General Public License for more details.
3565+ *
3566+ * You should have received a copy of the GNU Lesser General Public License
3567+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
3568+ *
3569+ * Author: Zsombor Egri <zsombor.egri@canonical.com>
3570+ */
3571+import QtQuick 2.0
3572+import Ubuntu.Components 1.1
3573+import Ubuntu.Components.ListItems 1.0
3574+
3575+MainView {
3576+ width: units.gu(40)
3577+ height: units.gu(71)
3578+
3579+
3580+ Column {
3581+ anchors.fill: parent
3582+ spacing: units.gu(2)
3583+
3584+ ComboButton {
3585+ id: combo1
3586+ text: "collapsedHeight differs"
3587+ collapsedHeight: units.gu(6)
3588+ }
3589+
3590+ ComboButton {
3591+ text: "content is Rectangle > expanded"
3592+ Rectangle {
3593+ height: units.gu(40)
3594+ gradient: Gradient {
3595+ GradientStop {
3596+ position: 0.0
3597+ color: "red"
3598+ }
3599+ GradientStop {
3600+ position: 0.5
3601+ color: "green"
3602+ }
3603+ GradientStop {
3604+ position: 1.0
3605+ color: "blue"
3606+ }
3607+ }
3608+ }
3609+ }
3610+
3611+ ComboButton {
3612+ text: "comboList is Flickable"
3613+ Flickable {
3614+ id: flickable
3615+ objectName: "Flickable"
3616+ anchors {
3617+ left: parent.left
3618+ right: parent.right
3619+ top: parent.top
3620+ }
3621+ contentHeight: rect.height
3622+
3623+ Rectangle {
3624+ id: rect
3625+ width: parent.width
3626+ height: units.gu(40)
3627+ gradient: Gradient {
3628+ GradientStop {
3629+ position: 0.0
3630+ color: "red"
3631+ }
3632+ GradientStop {
3633+ position: 0.5
3634+ color: "green"
3635+ }
3636+ GradientStop {
3637+ position: 1.0
3638+ color: "blue"
3639+ }
3640+ }
3641+ }
3642+ }
3643+ }
3644+
3645+ ComboButton {
3646+ id: combo2
3647+ text: "comboList is ListView"
3648+ expanded: true
3649+ expandedHeight: units.gu(30)
3650+ UbuntuListView {
3651+ objectName: "ListView"
3652+ model: 20
3653+ delegate: Standard {
3654+ text: "Action #" + modelData
3655+ onClicked: {
3656+ combo2.text = text;
3657+ combo2.expanded = false
3658+ }
3659+ }
3660+ }
3661+ }
3662+
3663+ ComboButton {
3664+ id: combo3
3665+ text: "auto expandHeight"
3666+ expandedHeight: -1
3667+ Column {
3668+ id: column
3669+ anchors {
3670+ left: parent.left
3671+ right: parent.right
3672+ }
3673+ Rectangle {
3674+ width: parent.width
3675+ height: units.gu(6)
3676+ color: "red"
3677+ }
3678+ Rectangle {
3679+ width: parent.width
3680+ height: units.gu(6)
3681+ color: "green"
3682+ }
3683+ Rectangle {
3684+ width: parent.width
3685+ height: units.gu(6)
3686+ color: "blue"
3687+ }
3688+ Rectangle {
3689+ width: parent.width
3690+ height: units.gu(6)
3691+ color: "yellow"
3692+ }
3693+ }
3694+ }
3695+ }
3696+}
3697
3698=== modified file 'tests/resources/filters/MouseFilters.qml'
3699--- tests/resources/filters/MouseFilters.qml 2014-04-20 19:25:12 +0000
3700+++ tests/resources/filters/MouseFilters.qml 2014-04-25 13:00:38 +0000
3701@@ -15,7 +15,7 @@
3702 */
3703
3704 import QtQuick 2.0
3705-import Ubuntu.Components 1.0
3706+import Ubuntu.Components 1.1
3707
3708 MainView {
3709 width: units.gu(40)
3710
3711=== modified file 'tests/resources/navigation/MyCustomPage.qml'
3712--- tests/resources/navigation/MyCustomPage.qml 2014-04-20 19:25:12 +0000
3713+++ tests/resources/navigation/MyCustomPage.qml 2014-04-25 13:00:38 +0000
3714@@ -15,7 +15,7 @@
3715 */
3716
3717 import QtQuick 2.0
3718-import Ubuntu.Components 1.0
3719+import Ubuntu.Components 1.1
3720
3721 Page {
3722 title: i18n.tr("My custom page")
3723
3724=== modified file 'tests/resources/navigation/PageStack.qml'
3725--- tests/resources/navigation/PageStack.qml 2014-04-20 19:25:12 +0000
3726+++ tests/resources/navigation/PageStack.qml 2014-04-25 13:00:38 +0000
3727@@ -15,7 +15,7 @@
3728 */
3729
3730 import QtQuick 2.0
3731-import Ubuntu.Components 1.0
3732+import Ubuntu.Components 1.1
3733 import Ubuntu.Components.ListItems 1.0 as ListItem
3734
3735 Rectangle {
3736
3737=== modified file 'tests/resources/navigation/RepeaterTabs.qml'
3738--- tests/resources/navigation/RepeaterTabs.qml 2014-04-20 19:25:12 +0000
3739+++ tests/resources/navigation/RepeaterTabs.qml 2014-04-25 13:00:38 +0000
3740@@ -15,7 +15,7 @@
3741 */
3742
3743 import QtQuick 2.0
3744-import Ubuntu.Components 1.0
3745+import Ubuntu.Components 1.1
3746
3747
3748 MainView {
3749
3750=== modified file 'tests/resources/navigation/SimpleTabs.qml'
3751--- tests/resources/navigation/SimpleTabs.qml 2014-04-23 22:36:54 +0000
3752+++ tests/resources/navigation/SimpleTabs.qml 2014-04-25 13:00:38 +0000
3753@@ -15,7 +15,7 @@
3754 */
3755
3756 import QtQuick 2.0
3757-import Ubuntu.Components 1.0
3758+import Ubuntu.Components 1.1
3759
3760 MainView {
3761 width: 800
3762
3763=== modified file 'tests/resources/navigation/StackWithTabs.qml'
3764--- tests/resources/navigation/StackWithTabs.qml 2014-04-20 19:25:12 +0000
3765+++ tests/resources/navigation/StackWithTabs.qml 2014-04-25 13:00:38 +0000
3766@@ -15,7 +15,7 @@
3767 */
3768
3769 import QtQuick 2.0
3770-import Ubuntu.Components 1.0
3771+import Ubuntu.Components 1.1
3772
3773 MainView {
3774 id: mainView
3775
3776=== modified file 'tests/resources/navigation/TabView.qml'
3777--- tests/resources/navigation/TabView.qml 2014-04-23 18:14:56 +0000
3778+++ tests/resources/navigation/TabView.qml 2014-04-25 13:00:38 +0000
3779@@ -15,7 +15,7 @@
3780 */
3781
3782 import QtQuick 2.0
3783-import Ubuntu.Components 1.0
3784+import Ubuntu.Components 1.1
3785
3786
3787 MainView {
3788
3789=== modified file 'tests/resources/navigation/Tabs.qml'
3790--- tests/resources/navigation/Tabs.qml 2014-04-24 14:55:07 +0000
3791+++ tests/resources/navigation/Tabs.qml 2014-04-25 13:00:38 +0000
3792@@ -15,7 +15,7 @@
3793 */
3794
3795 import QtQuick 2.0
3796-import Ubuntu.Components 1.0
3797+import Ubuntu.Components 1.1
3798 import Ubuntu.Components.ListItems 1.0 as ListItem
3799
3800 MainView {
3801
3802=== modified file 'tests/resources/pickers/DatePickerTest.qml'
3803--- tests/resources/pickers/DatePickerTest.qml 2014-04-20 19:25:12 +0000
3804+++ tests/resources/pickers/DatePickerTest.qml 2014-04-25 13:00:38 +0000
3805@@ -15,7 +15,7 @@
3806 */
3807
3808 import QtQuick 2.0
3809-import Ubuntu.Components 1.0
3810+import Ubuntu.Components 1.1
3811 import Ubuntu.Components.Pickers 1.0
3812
3813 MainView {
3814
3815=== modified file 'tests/resources/pickers/PanelTest.qml'
3816--- tests/resources/pickers/PanelTest.qml 2014-04-20 19:25:12 +0000
3817+++ tests/resources/pickers/PanelTest.qml 2014-04-25 13:00:38 +0000
3818@@ -15,7 +15,7 @@
3819 */
3820
3821 import QtQuick 2.0
3822-import Ubuntu.Components 1.0
3823+import Ubuntu.Components 1.1
3824 import Ubuntu.Components.Pickers 1.0
3825
3826 MainView {
3827
3828=== modified file 'tests/resources/pickers/PickerTest.qml'
3829--- tests/resources/pickers/PickerTest.qml 2014-04-20 19:25:12 +0000
3830+++ tests/resources/pickers/PickerTest.qml 2014-04-25 13:00:38 +0000
3831@@ -15,7 +15,7 @@
3832 */
3833
3834 import QtQuick 2.0
3835-import Ubuntu.Components 1.0
3836+import Ubuntu.Components 1.1
3837 import Ubuntu.Components.Pickers 1.0
3838
3839 MainView {
3840
3841=== modified file 'tests/resources/popover/PopoverTest.qml'
3842--- tests/resources/popover/PopoverTest.qml 2014-04-20 19:25:12 +0000
3843+++ tests/resources/popover/PopoverTest.qml 2014-04-25 13:00:38 +0000
3844@@ -15,7 +15,7 @@
3845 */
3846
3847 import QtQuick 2.0
3848-import Ubuntu.Components 1.0
3849+import Ubuntu.Components 1.1
3850 import Ubuntu.Components.Popups 1.0
3851 import Ubuntu.Components.ListItems 1.0 as ListItem
3852
3853
3854=== modified file 'tests/resources/statesaver/StateSaver.qml'
3855--- tests/resources/statesaver/StateSaver.qml 2014-04-20 19:25:12 +0000
3856+++ tests/resources/statesaver/StateSaver.qml 2014-04-25 13:00:38 +0000
3857@@ -15,7 +15,7 @@
3858 */
3859
3860 import QtQuick 2.0
3861-import Ubuntu.Components 1.0
3862+import Ubuntu.Components 1.1
3863
3864 MainView {
3865 id: app
3866
3867=== modified file 'tests/resources/toolbar/LockedToolbar.qml'
3868--- tests/resources/toolbar/LockedToolbar.qml 2014-04-20 19:25:12 +0000
3869+++ tests/resources/toolbar/LockedToolbar.qml 2014-04-25 13:00:38 +0000
3870@@ -15,7 +15,7 @@
3871 */
3872
3873 import QtQuick 2.0
3874-import Ubuntu.Components 1.0
3875+import Ubuntu.Components 1.1
3876
3877 MainView {
3878 width: units.gu(50)
3879
3880=== modified file 'tests/resources/toolbar/oldToolbarWithActions.qml'
3881--- tests/resources/toolbar/oldToolbarWithActions.qml 2014-04-20 19:25:12 +0000
3882+++ tests/resources/toolbar/oldToolbarWithActions.qml 2014-04-25 13:00:38 +0000
3883@@ -15,7 +15,7 @@
3884 */
3885
3886 import QtQuick 2.0
3887-import Ubuntu.Components 1.0
3888+import Ubuntu.Components 1.1
3889
3890 MainView {
3891 width: units.gu(50)
3892
3893=== modified file 'tests/resources/toolbar/panels.qml'
3894--- tests/resources/toolbar/panels.qml 2014-04-20 19:25:12 +0000
3895+++ tests/resources/toolbar/panels.qml 2014-04-25 13:00:38 +0000
3896@@ -15,7 +15,7 @@
3897 */
3898
3899 import QtQuick 2.0
3900-import Ubuntu.Components 1.0
3901+import Ubuntu.Components 1.1
3902
3903 Rectangle {
3904 color: "grey"
3905
3906=== modified file 'tests/resources/toolbar/toolbar.qml'
3907--- tests/resources/toolbar/toolbar.qml 2014-04-20 19:25:12 +0000
3908+++ tests/resources/toolbar/toolbar.qml 2014-04-25 13:00:38 +0000
3909@@ -15,7 +15,7 @@
3910 */
3911
3912 import QtQuick 2.0
3913-import Ubuntu.Components 1.0
3914+import Ubuntu.Components 1.1
3915
3916 MainView {
3917 width: units.gu(50)
3918
3919=== modified file 'tests/resources/urihandler/UriHandlerTest.qml'
3920--- tests/resources/urihandler/UriHandlerTest.qml 2014-04-20 19:25:12 +0000
3921+++ tests/resources/urihandler/UriHandlerTest.qml 2014-04-25 13:00:38 +0000
3922@@ -17,7 +17,7 @@
3923 */
3924
3925 import QtQuick 2.0
3926-import Ubuntu.Components 1.0
3927+import Ubuntu.Components 1.1
3928
3929 Item {
3930 id: mainView
3931
3932=== modified file 'tests/unit/tst_components/tst_CrossFadeImage.qml'
3933--- tests/unit/tst_components/tst_CrossFadeImage.qml 2014-04-20 19:25:12 +0000
3934+++ tests/unit/tst_components/tst_CrossFadeImage.qml 2014-04-25 13:00:38 +0000
3935@@ -16,7 +16,7 @@
3936
3937 import QtQuick 2.0
3938 import QtTest 1.0
3939-import Ubuntu.Components 1.0
3940+import Ubuntu.Components 1.1
3941
3942 TestCase {
3943 name: "CrossFadeImage"
3944
3945=== modified file 'tests/unit/tst_components/tst_abstractbutton.qml'
3946--- tests/unit/tst_components/tst_abstractbutton.qml 2014-04-20 19:25:12 +0000
3947+++ tests/unit/tst_components/tst_abstractbutton.qml 2014-04-25 13:00:38 +0000
3948@@ -16,7 +16,7 @@
3949
3950 import QtQuick 2.0
3951 import QtTest 1.0
3952-import Ubuntu.Components 1.0
3953+import Ubuntu.Components 1.1
3954
3955 TestCase {
3956 name: "AbstractButtonAPI"
3957
3958=== modified file 'tests/unit/tst_components/tst_action.qml'
3959--- tests/unit/tst_components/tst_action.qml 2014-04-20 19:25:12 +0000
3960+++ tests/unit/tst_components/tst_action.qml 2014-04-25 13:00:38 +0000
3961@@ -16,7 +16,7 @@
3962
3963 import QtQuick 2.0
3964 import QtTest 1.0
3965-import Ubuntu.Components 1.0
3966+import Ubuntu.Components 1.1
3967
3968 TestCase {
3969 name: "ActionAPI"
3970
3971=== modified file 'tests/unit/tst_components/tst_actionitem.qml'
3972--- tests/unit/tst_components/tst_actionitem.qml 2014-04-20 19:25:12 +0000
3973+++ tests/unit/tst_components/tst_actionitem.qml 2014-04-25 13:00:38 +0000
3974@@ -16,7 +16,7 @@
3975
3976 import QtQuick 2.0
3977 import QtTest 1.0
3978-import Ubuntu.Components 1.0
3979+import Ubuntu.Components 1.1
3980
3981 TestCase {
3982 name: "ActionItemAPI"
3983
3984=== modified file 'tests/unit/tst_components/tst_activityindicator.qml'
3985--- tests/unit/tst_components/tst_activityindicator.qml 2014-04-20 19:25:12 +0000
3986+++ tests/unit/tst_components/tst_activityindicator.qml 2014-04-25 13:00:38 +0000
3987@@ -16,7 +16,7 @@
3988
3989 import QtQuick 2.0
3990 import QtTest 1.0
3991-import Ubuntu.Components 1.0
3992+import Ubuntu.Components 1.1
3993
3994 TestCase {
3995 name: "ActivityIndicatorAPI"
3996
3997=== modified file 'tests/unit/tst_components/tst_button.qml'
3998--- tests/unit/tst_components/tst_button.qml 2014-04-20 19:25:12 +0000
3999+++ tests/unit/tst_components/tst_button.qml 2014-04-25 13:00:38 +0000
4000@@ -16,7 +16,7 @@
4001
4002 import QtQuick 2.0
4003 import QtTest 1.0
4004-import Ubuntu.Components 1.0
4005+import Ubuntu.Components 1.1
4006
4007 TestCase {
4008 name: "ButtonAPI"
4009@@ -53,6 +53,10 @@
4010 compare(button.color,newColor,"Can set/get color")
4011 }
4012
4013+ function test_font() {
4014+ verify(button.font === Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")}), "Default font differs");
4015+ }
4016+
4017 function test_hovered() {
4018 compare(button.hovered,false,"Hovered is boolean and false by default")
4019 }
4020
4021=== modified file 'tests/unit/tst_components/tst_checkbox.qml'
4022--- tests/unit/tst_components/tst_checkbox.qml 2014-04-20 19:25:12 +0000
4023+++ tests/unit/tst_components/tst_checkbox.qml 2014-04-25 13:00:38 +0000
4024@@ -16,7 +16,7 @@
4025
4026 import QtQuick 2.0
4027 import QtTest 1.0
4028-import Ubuntu.Components 1.0
4029+import Ubuntu.Components 1.1
4030 import Ubuntu.Unity.Action 1.1 as UnityActions
4031
4032 TestCase {
4033
4034=== modified file 'tests/unit/tst_components/tst_clipboard.qml'
4035--- tests/unit/tst_components/tst_clipboard.qml 2014-04-20 19:25:12 +0000
4036+++ tests/unit/tst_components/tst_clipboard.qml 2014-04-25 13:00:38 +0000
4037@@ -16,7 +16,7 @@
4038
4039 import QtQuick 2.0
4040 import QtTest 1.0
4041-import Ubuntu.Components 1.0
4042+import Ubuntu.Components 1.1
4043
4044 TestCase {
4045 name: "ClipboardAPI"
4046
4047=== modified file 'tests/unit/tst_components/tst_dateutils.qml'
4048--- tests/unit/tst_components/tst_dateutils.qml 2014-04-20 19:25:12 +0000
4049+++ tests/unit/tst_components/tst_dateutils.qml 2014-04-25 13:00:38 +0000
4050@@ -17,7 +17,7 @@
4051 import QtQuick 2.0
4052 import QtTest 1.0
4053 import Ubuntu.Test 1.0
4054-import Ubuntu.Components 1.0
4055+import Ubuntu.Components 1.1
4056
4057 /*
4058 Implementation note:
4059
4060=== modified file 'tests/unit/tst_components/tst_fontutils.qml'
4061--- tests/unit/tst_components/tst_fontutils.qml 2014-04-20 19:25:12 +0000
4062+++ tests/unit/tst_components/tst_fontutils.qml 2014-04-25 13:00:38 +0000
4063@@ -16,7 +16,7 @@
4064
4065 import QtQuick 2.0
4066 import QtTest 1.0
4067-import Ubuntu.Components 1.0
4068+import Ubuntu.Components 1.1
4069
4070 TestCase {
4071 name: "FontUtilsAPI"
4072
4073=== modified file 'tests/unit/tst_components/tst_label.qml'
4074--- tests/unit/tst_components/tst_label.qml 2014-04-20 19:25:12 +0000
4075+++ tests/unit/tst_components/tst_label.qml 2014-04-25 13:00:38 +0000
4076@@ -16,7 +16,7 @@
4077
4078 import QtQuick 2.0
4079 import QtTest 1.0
4080-import Ubuntu.Components 1.0
4081+import Ubuntu.Components 1.1
4082
4083 TestCase {
4084 name: "LabelAPI"
4085
4086=== modified file 'tests/unit/tst_components/tst_listitems_singlecontrol.qml'
4087--- tests/unit/tst_components/tst_listitems_singlecontrol.qml 2014-04-20 19:25:12 +0000
4088+++ tests/unit/tst_components/tst_listitems_singlecontrol.qml 2014-04-25 13:00:38 +0000
4089@@ -16,7 +16,7 @@
4090
4091 import QtQuick 2.0
4092 import QtTest 1.0
4093-import Ubuntu.Components 1.0
4094+import Ubuntu.Components 1.1
4095 import Ubuntu.Components.ListItems 1.0 as ListItem
4096
4097 TestCase {
4098
4099=== modified file 'tests/unit/tst_components/tst_mainview.qml'
4100--- tests/unit/tst_components/tst_mainview.qml 2014-04-20 19:25:12 +0000
4101+++ tests/unit/tst_components/tst_mainview.qml 2014-04-25 13:00:38 +0000
4102@@ -16,7 +16,7 @@
4103
4104 import QtQuick 2.0
4105 import QtTest 1.0
4106-import Ubuntu.Components 1.0
4107+import Ubuntu.Components 1.1
4108
4109 TestCase {
4110 name: "MainViewAPI"
4111
4112=== modified file 'tests/unit/tst_components/tst_page.qml'
4113--- tests/unit/tst_components/tst_page.qml 2014-04-20 19:25:12 +0000
4114+++ tests/unit/tst_components/tst_page.qml 2014-04-25 13:00:38 +0000
4115@@ -16,7 +16,7 @@
4116
4117 import QtQuick 2.0
4118 import QtTest 1.0
4119-import Ubuntu.Components 1.0
4120+import Ubuntu.Components 1.1
4121
4122 Item {
4123 width: 200
4124
4125=== modified file 'tests/unit/tst_components/tst_pagestack.qml'
4126--- tests/unit/tst_components/tst_pagestack.qml 2014-04-23 18:14:56 +0000
4127+++ tests/unit/tst_components/tst_pagestack.qml 2014-04-25 13:00:38 +0000
4128@@ -16,7 +16,7 @@
4129
4130 import QtQuick 2.0
4131 import QtTest 1.0
4132-import Ubuntu.Components 1.0
4133+import Ubuntu.Components 1.1
4134
4135 TestCase {
4136 name: "PageStackAPI"
4137
4138=== modified file 'tests/unit/tst_components/tst_plugin_ucunits.qml'
4139--- tests/unit/tst_components/tst_plugin_ucunits.qml 2014-04-20 19:25:12 +0000
4140+++ tests/unit/tst_components/tst_plugin_ucunits.qml 2014-04-25 13:00:38 +0000
4141@@ -16,7 +16,7 @@
4142
4143 import QtQuick 2.0
4144 import QtTest 1.0
4145-import Ubuntu.Components 1.0
4146+import Ubuntu.Components 1.1
4147
4148 TestCase {
4149 name: "UCUnitsAPI"
4150
4151=== modified file 'tests/unit/tst_components/tst_popups_actionselectionpopover.qml'
4152--- tests/unit/tst_components/tst_popups_actionselectionpopover.qml 2014-04-20 19:25:12 +0000
4153+++ tests/unit/tst_components/tst_popups_actionselectionpopover.qml 2014-04-25 13:00:38 +0000
4154@@ -16,7 +16,7 @@
4155
4156 import QtQuick 2.0
4157 import QtTest 1.0
4158-import Ubuntu.Components 1.0
4159+import Ubuntu.Components 1.1
4160 import Ubuntu.Components.Popups 1.0
4161
4162 TestCase {
4163
4164=== modified file 'tests/unit/tst_components/tst_popups_composersheet.qml'
4165--- tests/unit/tst_components/tst_popups_composersheet.qml 2014-04-20 19:25:12 +0000
4166+++ tests/unit/tst_components/tst_popups_composersheet.qml 2014-04-25 13:00:38 +0000
4167@@ -16,7 +16,7 @@
4168
4169 import QtQuick 2.0
4170 import QtTest 1.0
4171-import Ubuntu.Components 1.0
4172+import Ubuntu.Components 1.1
4173 import Ubuntu.Components.Popups 1.0
4174
4175 TestCase {
4176
4177=== modified file 'tests/unit/tst_components/tst_popups_defaultsheet.qml'
4178--- tests/unit/tst_components/tst_popups_defaultsheet.qml 2014-04-20 19:25:12 +0000
4179+++ tests/unit/tst_components/tst_popups_defaultsheet.qml 2014-04-25 13:00:38 +0000
4180@@ -16,7 +16,7 @@
4181
4182 import QtQuick 2.0
4183 import QtTest 1.0
4184-import Ubuntu.Components 1.0
4185+import Ubuntu.Components 1.1
4186 import Ubuntu.Components.Popups 1.0
4187
4188 TestCase {
4189
4190=== modified file 'tests/unit/tst_components/tst_popups_dialog.qml'
4191--- tests/unit/tst_components/tst_popups_dialog.qml 2014-04-20 19:25:12 +0000
4192+++ tests/unit/tst_components/tst_popups_dialog.qml 2014-04-25 13:00:38 +0000
4193@@ -16,7 +16,7 @@
4194
4195 import QtQuick 2.0
4196 import QtTest 1.0
4197-import Ubuntu.Components 1.0
4198+import Ubuntu.Components 1.1
4199 import Ubuntu.Components.Popups 1.0
4200
4201 TestCase {
4202
4203=== modified file 'tests/unit/tst_components/tst_popups_popover.qml'
4204--- tests/unit/tst_components/tst_popups_popover.qml 2014-04-20 19:25:12 +0000
4205+++ tests/unit/tst_components/tst_popups_popover.qml 2014-04-25 13:00:38 +0000
4206@@ -15,7 +15,7 @@
4207 */
4208 import QtQuick 2.0
4209 import QtTest 1.0
4210-import Ubuntu.Components 1.0
4211+import Ubuntu.Components 1.1
4212 import Ubuntu.Components.Popups 1.0
4213
4214 TestCase {
4215
4216=== modified file 'tests/unit/tst_components/tst_progressbar.qml'
4217--- tests/unit/tst_components/tst_progressbar.qml 2014-04-20 19:25:12 +0000
4218+++ tests/unit/tst_components/tst_progressbar.qml 2014-04-25 13:00:38 +0000
4219@@ -16,7 +16,7 @@
4220
4221 import QtQuick 2.0
4222 import QtTest 1.0
4223-import Ubuntu.Components 1.0
4224+import Ubuntu.Components 1.1
4225
4226 TestCase {
4227 name: "ProgressBarAPI"
4228
4229=== modified file 'tests/unit/tst_components/tst_quickutils.qml'
4230--- tests/unit/tst_components/tst_quickutils.qml 2014-04-20 19:25:12 +0000
4231+++ tests/unit/tst_components/tst_quickutils.qml 2014-04-25 13:00:38 +0000
4232@@ -16,7 +16,7 @@
4233
4234 import QtQuick 2.0
4235 import QtTest 1.0
4236-import Ubuntu.Components 1.0
4237+import Ubuntu.Components 1.1
4238 import Ubuntu.Components.ListItems 1.0
4239
4240 Item {
4241
4242=== modified file 'tests/unit/tst_components/tst_scrollbar.qml'
4243--- tests/unit/tst_components/tst_scrollbar.qml 2014-04-20 19:25:12 +0000
4244+++ tests/unit/tst_components/tst_scrollbar.qml 2014-04-25 13:00:38 +0000
4245@@ -16,7 +16,7 @@
4246
4247 import QtQuick 2.0
4248 import QtTest 1.0
4249-import Ubuntu.Components 1.0
4250+import Ubuntu.Components 1.1
4251
4252 TestCase {
4253 name: "ScrollbarAPI"
4254
4255=== modified file 'tests/unit/tst_components/tst_slider.qml'
4256--- tests/unit/tst_components/tst_slider.qml 2014-04-20 19:25:12 +0000
4257+++ tests/unit/tst_components/tst_slider.qml 2014-04-25 13:00:38 +0000
4258@@ -16,7 +16,7 @@
4259
4260 import QtQuick 2.0
4261 import QtTest 1.0
4262-import Ubuntu.Components 1.0
4263+import Ubuntu.Components 1.1
4264
4265 TestCase {
4266 name: "SliderAPI"
4267
4268=== modified file 'tests/unit/tst_components/tst_switch.qml'
4269--- tests/unit/tst_components/tst_switch.qml 2014-04-20 19:25:12 +0000
4270+++ tests/unit/tst_components/tst_switch.qml 2014-04-25 13:00:38 +0000
4271@@ -16,7 +16,7 @@
4272
4273 import QtQuick 2.0
4274 import QtTest 1.0
4275-import Ubuntu.Components 1.0
4276+import Ubuntu.Components 1.1
4277
4278 TestCase {
4279 name: "SwitchAPI"
4280
4281=== modified file 'tests/unit/tst_components/tst_tab.qml'
4282--- tests/unit/tst_components/tst_tab.qml 2014-04-20 19:25:12 +0000
4283+++ tests/unit/tst_components/tst_tab.qml 2014-04-25 13:00:38 +0000
4284@@ -16,7 +16,7 @@
4285
4286 import QtQuick 2.0
4287 import QtTest 1.0
4288-import Ubuntu.Components 1.0
4289+import Ubuntu.Components 1.1
4290
4291 TestCase {
4292 name: "TabAPI"
4293
4294=== modified file 'tests/unit/tst_components/tst_toolbaritems.qml'
4295--- tests/unit/tst_components/tst_toolbaritems.qml 2014-04-20 19:25:12 +0000
4296+++ tests/unit/tst_components/tst_toolbaritems.qml 2014-04-25 13:00:38 +0000
4297@@ -16,7 +16,7 @@
4298
4299 import QtQuick 2.0
4300 import QtTest 1.0
4301-import Ubuntu.Components 1.0
4302+import Ubuntu.Components 1.1
4303
4304 Item {
4305 width: 200
4306
4307=== modified file 'tests/unit/tst_components/tst_ubuntushape.qml'
4308--- tests/unit/tst_components/tst_ubuntushape.qml 2014-04-20 19:25:12 +0000
4309+++ tests/unit/tst_components/tst_ubuntushape.qml 2014-04-25 13:00:38 +0000
4310@@ -16,7 +16,7 @@
4311
4312 import QtQuick 2.0
4313 import QtTest 1.0
4314-import Ubuntu.Components 1.0
4315+import Ubuntu.Components 1.1
4316
4317 TestCase {
4318 name: "UbuntuShapeAPI"
4319
4320=== modified file 'tests/unit/tst_i18n/src/LocalizedApp.qml'
4321--- tests/unit/tst_i18n/src/LocalizedApp.qml 2014-04-20 19:25:12 +0000
4322+++ tests/unit/tst_i18n/src/LocalizedApp.qml 2014-04-25 13:00:38 +0000
4323@@ -15,7 +15,7 @@
4324 */
4325
4326 import QtQuick 2.0
4327-import Ubuntu.Components 1.0
4328+import Ubuntu.Components 1.1
4329
4330 MainView {
4331 width: units.gu(48)
4332
4333=== modified file 'tests/unit/tst_mainview/AppName.qml'
4334--- tests/unit/tst_mainview/AppName.qml 2014-04-20 19:25:12 +0000
4335+++ tests/unit/tst_mainview/AppName.qml 2014-04-25 13:00:38 +0000
4336@@ -15,7 +15,7 @@
4337 */
4338
4339 import QtQuick 2.0
4340-import Ubuntu.Components 1.0
4341+import Ubuntu.Components 1.1
4342
4343 MainView {
4344 objectName: "appName"
4345
4346=== modified file 'tests/unit/tst_mainview/LocalStorage.qml'
4347--- tests/unit/tst_mainview/LocalStorage.qml 2014-04-20 19:25:12 +0000
4348+++ tests/unit/tst_mainview/LocalStorage.qml 2014-04-25 13:00:38 +0000
4349@@ -15,7 +15,7 @@
4350 */
4351
4352 import QtQuick 2.0
4353-import Ubuntu.Components 1.0
4354+import Ubuntu.Components 1.1
4355 import QtQuick.LocalStorage 2.0
4356
4357 MainView {
4358
4359=== modified file 'tests/unit/tst_mainview/PageStack.qml'
4360--- tests/unit/tst_mainview/PageStack.qml 2014-04-20 19:25:12 +0000
4361+++ tests/unit/tst_mainview/PageStack.qml 2014-04-25 13:00:38 +0000
4362@@ -15,7 +15,7 @@
4363 */
4364
4365 import QtQuick 2.0
4366-import Ubuntu.Components 1.0
4367+import Ubuntu.Components 1.1
4368
4369 MainView {
4370 objectName: "pageStack"
4371
4372=== modified file 'tests/unit/tst_mainview/PageTitle.qml'
4373--- tests/unit/tst_mainview/PageTitle.qml 2014-04-20 19:25:12 +0000
4374+++ tests/unit/tst_mainview/PageTitle.qml 2014-04-25 13:00:38 +0000
4375@@ -15,7 +15,7 @@
4376 */
4377
4378 import QtQuick 2.0
4379-import Ubuntu.Components 1.0
4380+import Ubuntu.Components 1.1
4381
4382 MainView {
4383 objectName: "pageTitle"
4384
4385=== modified file 'tests/unit/tst_mainview/TabsTitle.qml'
4386--- tests/unit/tst_mainview/TabsTitle.qml 2014-04-20 19:25:12 +0000
4387+++ tests/unit/tst_mainview/TabsTitle.qml 2014-04-25 13:00:38 +0000
4388@@ -15,7 +15,7 @@
4389 */
4390
4391 import QtQuick 2.0
4392-import Ubuntu.Components 1.0
4393+import Ubuntu.Components 1.1
4394
4395 MainView {
4396 objectName: "tabsTitle"
4397
4398=== modified file 'tests/unit/tst_page/AnchorToPage.qml'
4399--- tests/unit/tst_page/AnchorToPage.qml 2014-04-20 19:25:12 +0000
4400+++ tests/unit/tst_page/AnchorToPage.qml 2014-04-25 13:00:38 +0000
4401@@ -15,7 +15,7 @@
4402 */
4403
4404 import QtQuick 2.0
4405-import Ubuntu.Components 1.0
4406+import Ubuntu.Components 1.1
4407
4408 MainView {
4409 width: units.gu(20)
4410
4411=== modified file 'tests/unit/tst_performance/ButtonGrid.qml'
4412--- tests/unit/tst_performance/ButtonGrid.qml 2014-04-20 19:25:12 +0000
4413+++ tests/unit/tst_performance/ButtonGrid.qml 2014-04-25 13:00:38 +0000
4414@@ -15,7 +15,7 @@
4415 */
4416
4417 import QtQuick 2.0
4418-import Ubuntu.Components 1.0
4419+import Ubuntu.Components 1.1
4420 import Ubuntu.Components.Themes.Ambiance 0.1
4421
4422 Grid {
4423
4424=== modified file 'tests/unit/tst_performance/ButtonStyleGrid.qml'
4425--- tests/unit/tst_performance/ButtonStyleGrid.qml 2014-04-20 19:25:12 +0000
4426+++ tests/unit/tst_performance/ButtonStyleGrid.qml 2014-04-25 13:00:38 +0000
4427@@ -15,7 +15,7 @@
4428 */
4429
4430 import QtQuick 2.0
4431-import Ubuntu.Components 1.0
4432+import Ubuntu.Components 1.1
4433 import Ubuntu.Components.Themes.Ambiance 0.1
4434
4435 Grid {
4436
4437=== modified file 'tests/unit/tst_performance/CheckBoxGrid.qml'
4438--- tests/unit/tst_performance/CheckBoxGrid.qml 2014-04-20 19:25:12 +0000
4439+++ tests/unit/tst_performance/CheckBoxGrid.qml 2014-04-25 13:00:38 +0000
4440@@ -15,7 +15,7 @@
4441 */
4442
4443 import QtQuick 2.0
4444-import Ubuntu.Components 1.0
4445+import Ubuntu.Components 1.1
4446 import Ubuntu.Components.Themes.Ambiance 0.1
4447
4448 Grid {
4449
4450=== modified file 'tests/unit/tst_performance/CheckBoxStyleGrid.qml'
4451--- tests/unit/tst_performance/CheckBoxStyleGrid.qml 2014-04-20 19:25:12 +0000
4452+++ tests/unit/tst_performance/CheckBoxStyleGrid.qml 2014-04-25 13:00:38 +0000
4453@@ -15,7 +15,7 @@
4454 */
4455
4456 import QtQuick 2.0
4457-import Ubuntu.Components 1.0
4458+import Ubuntu.Components 1.1
4459 import Ubuntu.Components.Themes.Ambiance 0.1
4460
4461 Grid {
4462
4463=== modified file 'tests/unit/tst_performance/LabelGrid.qml'
4464--- tests/unit/tst_performance/LabelGrid.qml 2014-04-20 19:25:12 +0000
4465+++ tests/unit/tst_performance/LabelGrid.qml 2014-04-25 13:00:38 +0000
4466@@ -15,7 +15,7 @@
4467 */
4468
4469 import QtQuick 2.0
4470-import Ubuntu.Components 1.0
4471+import Ubuntu.Components 1.1
4472
4473 Grid {
4474 width: 800
4475
4476=== modified file 'tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml'
4477--- tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml 2014-04-20 19:25:12 +0000
4478+++ tests/unit/tst_performance/PairOfUbuntuShapeGrid.qml 2014-04-25 13:00:38 +0000
4479@@ -15,7 +15,7 @@
4480 */
4481
4482 import QtQuick 2.0
4483-import Ubuntu.Components 1.0
4484+import Ubuntu.Components 1.1
4485
4486 Grid {
4487 width: 800
4488
4489=== modified file 'tests/unit/tst_performance/SliderGrid.qml'
4490--- tests/unit/tst_performance/SliderGrid.qml 2014-04-20 19:25:12 +0000
4491+++ tests/unit/tst_performance/SliderGrid.qml 2014-04-25 13:00:38 +0000
4492@@ -15,7 +15,7 @@
4493 */
4494
4495 import QtQuick 2.0
4496-import Ubuntu.Components 1.0
4497+import Ubuntu.Components 1.1
4498 import Ubuntu.Components.Themes.Ambiance 0.1
4499
4500 Grid {
4501
4502=== modified file 'tests/unit/tst_performance/SliderStyleGrid.qml'
4503--- tests/unit/tst_performance/SliderStyleGrid.qml 2014-04-20 19:25:12 +0000
4504+++ tests/unit/tst_performance/SliderStyleGrid.qml 2014-04-25 13:00:38 +0000
4505@@ -15,7 +15,7 @@
4506 */
4507
4508 import QtQuick 2.0
4509-import Ubuntu.Components 1.0
4510+import Ubuntu.Components 1.1
4511 import Ubuntu.Components.Themes.Ambiance 0.1
4512
4513 Grid {
4514
4515=== modified file 'tests/unit/tst_performance/SwitchGrid.qml'
4516--- tests/unit/tst_performance/SwitchGrid.qml 2014-04-20 19:25:12 +0000
4517+++ tests/unit/tst_performance/SwitchGrid.qml 2014-04-25 13:00:38 +0000
4518@@ -15,7 +15,7 @@
4519 */
4520
4521 import QtQuick 2.0
4522-import Ubuntu.Components 1.0
4523+import Ubuntu.Components 1.1
4524 import Ubuntu.Components.Themes.Ambiance 0.1
4525
4526 Grid {
4527
4528=== modified file 'tests/unit/tst_performance/SwitchStyleGrid.qml'
4529--- tests/unit/tst_performance/SwitchStyleGrid.qml 2014-04-20 19:25:12 +0000
4530+++ tests/unit/tst_performance/SwitchStyleGrid.qml 2014-04-25 13:00:38 +0000
4531@@ -15,7 +15,7 @@
4532 */
4533
4534 import QtQuick 2.0
4535-import Ubuntu.Components 1.0
4536+import Ubuntu.Components 1.1
4537 import Ubuntu.Components.Themes.Ambiance 0.1
4538
4539 Grid {
4540
4541=== modified file 'tests/unit/tst_performance/TextWithImport.qml'
4542--- tests/unit/tst_performance/TextWithImport.qml 2014-04-20 19:25:12 +0000
4543+++ tests/unit/tst_performance/TextWithImport.qml 2014-04-25 13:00:38 +0000
4544@@ -15,7 +15,7 @@
4545 */
4546
4547 import QtQuick 2.0
4548-import Ubuntu.Components 1.0
4549+import Ubuntu.Components 1.1
4550
4551 Text {
4552 }
4553
4554=== modified file 'tests/unit/tst_performance/UbuntuShapeGrid.qml'
4555--- tests/unit/tst_performance/UbuntuShapeGrid.qml 2014-04-20 19:25:12 +0000
4556+++ tests/unit/tst_performance/UbuntuShapeGrid.qml 2014-04-25 13:00:38 +0000
4557@@ -15,7 +15,7 @@
4558 */
4559
4560 import QtQuick 2.0
4561-import Ubuntu.Components 1.0
4562+import Ubuntu.Components 1.1
4563
4564 Grid {
4565 width: 800
4566
4567=== modified file 'tests/unit/tst_qmltemplate/tst_example_benchmark.qml'
4568--- tests/unit/tst_qmltemplate/tst_example_benchmark.qml 2014-04-20 19:25:12 +0000
4569+++ tests/unit/tst_qmltemplate/tst_example_benchmark.qml 2014-04-25 13:00:38 +0000
4570@@ -16,7 +16,7 @@
4571
4572 import QtQuick 2.0
4573 import QtTest 1.0
4574-import Ubuntu.Components 1.0
4575+import Ubuntu.Components 1.1
4576
4577 TestCase {
4578 name: "ExampleBenchmarkObject"
4579
4580=== modified file 'tests/unit/tst_qmltemplate/tst_example_checks.qml'
4581--- tests/unit/tst_qmltemplate/tst_example_checks.qml 2014-04-20 19:25:12 +0000
4582+++ tests/unit/tst_qmltemplate/tst_example_checks.qml 2014-04-25 13:00:38 +0000
4583@@ -16,7 +16,7 @@
4584
4585 import QtQuick 2.0
4586 import QtTest 1.0
4587-import Ubuntu.Components 1.0
4588+import Ubuntu.Components 1.1
4589
4590 Item {
4591 id: root
4592
4593=== modified file 'tests/unit/tst_qmltemplate/tst_example_keyboard.qml'
4594--- tests/unit/tst_qmltemplate/tst_example_keyboard.qml 2014-04-20 19:25:12 +0000
4595+++ tests/unit/tst_qmltemplate/tst_example_keyboard.qml 2014-04-25 13:00:38 +0000
4596@@ -16,7 +16,7 @@
4597
4598 import QtQuick 2.0
4599 import QtTest 1.0
4600-import Ubuntu.Components 1.0
4601+import Ubuntu.Components 1.1
4602
4603 Item {
4604 id: root
4605
4606=== modified file 'tests/unit/tst_qmltemplate/tst_example_mouse.qml'
4607--- tests/unit/tst_qmltemplate/tst_example_mouse.qml 2014-04-20 19:25:12 +0000
4608+++ tests/unit/tst_qmltemplate/tst_example_mouse.qml 2014-04-25 13:00:38 +0000
4609@@ -16,7 +16,7 @@
4610
4611 import QtQuick 2.0
4612 import QtTest 1.0
4613-import Ubuntu.Components 1.0
4614+import Ubuntu.Components 1.1
4615
4616 Item {
4617 id: root
4618
4619=== modified file 'tests/unit/tst_qmltemplate/tst_example_property.qml'
4620--- tests/unit/tst_qmltemplate/tst_example_property.qml 2014-04-20 19:25:12 +0000
4621+++ tests/unit/tst_qmltemplate/tst_example_property.qml 2014-04-25 13:00:38 +0000
4622@@ -16,7 +16,7 @@
4623
4624 import QtQuick 2.0
4625 import QtTest 1.0
4626-import Ubuntu.Components 1.0
4627+import Ubuntu.Components 1.1
4628
4629 Item {
4630 id: root
4631
4632=== modified file 'tests/unit/tst_qmltemplate/tst_example_signals.qml'
4633--- tests/unit/tst_qmltemplate/tst_example_signals.qml 2014-04-20 19:25:12 +0000
4634+++ tests/unit/tst_qmltemplate/tst_example_signals.qml 2014-04-25 13:00:38 +0000
4635@@ -16,7 +16,7 @@
4636
4637 import QtQuick 2.0
4638 import QtTest 1.0
4639-import Ubuntu.Components 1.0
4640+import Ubuntu.Components 1.1
4641
4642 Item {
4643 id: root
4644
4645=== modified file 'tests/unit/tst_theme/tst_popoverforegroundstyle.qml'
4646--- tests/unit/tst_theme/tst_popoverforegroundstyle.qml 2014-04-20 19:25:12 +0000
4647+++ tests/unit/tst_theme/tst_popoverforegroundstyle.qml 2014-04-25 13:00:38 +0000
4648@@ -15,7 +15,7 @@
4649 */
4650 import QtQuick 2.0
4651 import QtTest 1.0
4652-import Ubuntu.Components 1.0
4653+import Ubuntu.Components 1.1
4654 import Ubuntu.Components.Themes.Ambiance 0.1
4655 import Ubuntu.Components.Popups 1.0
4656
4657
4658=== modified file 'tests/unit/tst_ubuntu_shape/no_distortion.qml'
4659--- tests/unit/tst_ubuntu_shape/no_distortion.qml 2014-04-20 19:25:12 +0000
4660+++ tests/unit/tst_ubuntu_shape/no_distortion.qml 2014-04-25 13:00:38 +0000
4661@@ -15,7 +15,7 @@
4662 */
4663
4664 import QtQuick 2.0
4665-import Ubuntu.Components 1.0
4666+import Ubuntu.Components 1.1
4667
4668 Item {
4669 width: 900
4670
4671=== modified file 'tests/unit_x11/tst_components/tst_alarms.qml'
4672--- tests/unit_x11/tst_components/tst_alarms.qml 2014-04-20 19:25:12 +0000
4673+++ tests/unit_x11/tst_components/tst_alarms.qml 2014-04-25 13:00:38 +0000
4674@@ -17,7 +17,7 @@
4675 import QtQuick 2.0
4676 import QtTest 1.0
4677 import Ubuntu.Test 1.0
4678-import Ubuntu.Components 1.0
4679+import Ubuntu.Components 1.1
4680
4681 Item {
4682 id: root
4683
4684=== added file 'tests/unit_x11/tst_components/tst_combobutton.qml'
4685--- tests/unit_x11/tst_components/tst_combobutton.qml 1970-01-01 00:00:00 +0000
4686+++ tests/unit_x11/tst_components/tst_combobutton.qml 2014-04-25 13:00:38 +0000
4687@@ -0,0 +1,244 @@
4688+/*
4689+ * Copyright 2014 Canonical Ltd.
4690+ *
4691+ * This program is free software; you can redistribute it and/or modify
4692+ * it under the terms of the GNU Lesser General Public License as published by
4693+ * the Free Software Foundation; version 3.
4694+ *
4695+ * This program is distributed in the hope that it will be useful,
4696+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
4697+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4698+ * GNU Lesser General Public License for more details.
4699+ *
4700+ * You should have received a copy of the GNU Lesser General Public License
4701+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
4702+ */
4703+
4704+import QtQuick 2.0
4705+import QtTest 1.0
4706+import Ubuntu.Test 1.0
4707+import Ubuntu.Components 1.1
4708+import Ubuntu.Components.ListItems 1.0
4709+
4710+Item {
4711+ width: units.gu(40)
4712+ height: units.gu(71)
4713+
4714+ Column {
4715+ ComboButton {
4716+ id: combo
4717+ }
4718+
4719+ ComboButton {
4720+ id: rectCombo
4721+ onClicked: expanded = false
4722+
4723+ Rectangle {
4724+ id: rect
4725+ width: parent.width
4726+ height: units.gu(40)
4727+ gradient: Gradient {
4728+ GradientStop {
4729+ position: 0.0
4730+ color: "red"
4731+ }
4732+ GradientStop {
4733+ position: 0.5
4734+ color: "green"
4735+ }
4736+ GradientStop {
4737+ position: 1.0
4738+ color: "blue"
4739+ }
4740+ }
4741+ }
4742+ }
4743+
4744+ ComboButton {
4745+ id: columnCombo
4746+ expandedHeight: -1
4747+ Column {
4748+ id: column
4749+ anchors {
4750+ left: parent.left
4751+ right: parent.right
4752+ }
4753+ height: childrenRect.height
4754+ Repeater {
4755+ model: 5
4756+ Rectangle {
4757+ width: parent.width
4758+ height: units.gu(5)
4759+ color: Qt.rgba(Math.random(1), Math.random(1), Math.random(1), 1);
4760+ }
4761+ }
4762+ }
4763+ }
4764+
4765+ ComboButton {
4766+ id: longCombo
4767+ expandedHeight: units.gu(40)
4768+ Rectangle {
4769+ id: longRect
4770+ height: units.gu(10)
4771+ color: "cyan"
4772+ }
4773+ }
4774+
4775+ ComboButton {
4776+ id: listCombo
4777+ ListView {
4778+ id: list
4779+ model: 20
4780+ height: listCombo.comboListHeight
4781+ delegate: Standard {
4782+ text: modelData
4783+ }
4784+ }
4785+ }
4786+ }
4787+
4788+ SignalSpy { id: spy }
4789+
4790+ UbuntuTestCase {
4791+ name: "ComboButton"
4792+ when: windowShown
4793+
4794+ function cleanup() {
4795+ rectCombo.expanded =
4796+ columnCombo.expanded =
4797+ longCombo.expanded =
4798+ listCombo.expanded = false;
4799+ spy.clear();
4800+ spy.signalName = "";
4801+ spy.target = undefined;
4802+ }
4803+
4804+ function test_0_defaults() {
4805+ compare(combo.expanded, false, "not expanded by default");
4806+ compare(combo.collapsedHeight, combo.implicitHeight, "collapsedHeight is implicitHeight");
4807+ compare(combo.expandedHeight, combo.collapsedHeight + units.gu(19.5), "expanded height default");
4808+ var lheight = combo.expandedHeight - combo.collapsedHeight - combo.__styleInstance.comboListMargin;
4809+ compare(combo.comboListHeight, lheight, "comboListHeight default");
4810+ compare(combo.comboList.length, 0, "comboList is empty");
4811+ verify(combo.font === Qt.font({family: "Ubuntu", pixelSize: FontUtils.sizeToPixels("medium")}), "Default font differs.");
4812+ verify(combo.dropdownColor === combo.__styleInstance.defaultDropdownColor, "Default dropdown color differs");
4813+ }
4814+
4815+ function test_dropdownColor() {
4816+ rectCombo.dropdownColor = rectCombo.expanded ? "red" : "green";
4817+ rectCombo.expanded = false;
4818+ var dropdownFace = findChild(rectCombo, "combobutton_dropdown_visuals");
4819+ verify(dropdownFace, "Dropdown button visuals cannot be reached");
4820+ verify(dropdownFace.color === rectCombo.dropdownColor, "Dropdon color when collapsed wrong");
4821+ rectCombo.expanded = true;
4822+ waitForRendering(rectCombo);
4823+ verify(dropdownFace.color === rectCombo.dropdownColor, "Dropdon color when expanded wrong");
4824+ }
4825+
4826+ function test_comboListWidth() {
4827+ var comboListHolder = findChild(rectCombo, "combobutton_combolist");
4828+ compare(rect.width, comboListHolder.width, "rectCombo list content width is not adjusted");
4829+ comboListHolder = findChild(columnCombo, "combobutton_combolist");
4830+ compare(column.width, comboListHolder.width, "columnCombo list content width is not adjusted");
4831+ comboListHolder = findChild(longCombo, "combobutton_combolist");
4832+ compare(longRect.width, comboListHolder.width, "longCombo list content width is not adjusted");
4833+ comboListHolder = findChild(listCombo, "combobutton_combolist");
4834+ compare(list.width, comboListHolder.width, "listCombo list content width is not adjusted");
4835+ }
4836+
4837+ function test_expandRectComboThroughProperty() {
4838+ rectCombo.expanded = true;
4839+ waitForRendering(rectCombo);
4840+ var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
4841+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4842+ }
4843+
4844+ function test_expandRectComboThroughClick() {
4845+ var dropDown = findChild(rectCombo, "combobutton_dropdown");
4846+ mouseClick(dropDown, dropDown.width / 2, dropDown.height / 2);
4847+ waitForRendering(rectCombo);
4848+ compare(rectCombo.expanded, true, "combo is not expanded");
4849+ var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
4850+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4851+ }
4852+
4853+ function test_autoCollapse() {
4854+ var dropDown = findChild(rectCombo, "combobutton_dropdown");
4855+ var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
4856+ mouseClick(dropDown, dropDown.width / 2, dropDown.height / 2);
4857+ waitForRendering(rectCombo);
4858+ compare(rectCombo.expanded, true, "combo is not expanded");
4859+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4860+
4861+ mouseClick(rectCombo, rectCombo.width / 2, rectCombo.collapsedHeight / 2);
4862+ waitForRendering(rectCombo);
4863+ compare(rectCombo.expanded, false, "combo is not collapsed");
4864+ tryCompareFunction(function() { return comboListPanel.opacity}, 0.0);
4865+ }
4866+
4867+ function test_flickRectCombo() {
4868+ var dropDown = findChild(rectCombo, "combobutton_dropdown");
4869+ var comboListPanel = findChild(rectCombo, "combobutton_combopanel");
4870+ var comboList = findChild(rectCombo, "combobutton_combolist");
4871+ mouseClick(dropDown, dropDown.width / 2, dropDown.height / 2);
4872+ waitForRendering(rectCombo);
4873+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4874+ verify(comboList.height > rectCombo.expandedHeight);
4875+ // comboList flicker is the combolist parent's parent
4876+ var comboListFlicker = comboList.parent.parent;
4877+ compare(comboListFlicker.interactive, true, "combo list holder must be interactive");
4878+
4879+ // drag the rectangle, the Flickable should be moving
4880+ var x = comboListFlicker.width / 2;
4881+ var y = comboListFlicker.height / 2;
4882+ var dy = comboListFlicker.height / 6;
4883+ spy.target = comboListFlicker;
4884+ spy.signalName = "onMovementEnded";
4885+ mouseDrag(comboListFlicker, x, y, x, dy);
4886+ waitForRendering(comboListFlicker);
4887+ compare(spy.count, 1, "combo list content did not move");
4888+ }
4889+
4890+ function test_autoExpandHeight() {
4891+ var comboListPanel = findChild(columnCombo, "combobutton_combopanel");
4892+ var comboList = findChild(columnCombo, "combobutton_combolist");
4893+ columnCombo.expanded = true;
4894+ waitForRendering(columnCombo);
4895+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4896+ var comboListFlicker = comboList.parent.parent;
4897+ compare(comboListFlicker.interactive, false, "combo list holder must not be interactive");
4898+ compare(comboListFlicker.height, columnCombo.comboListHeight, "combo list height differs from the holder height");
4899+ }
4900+
4901+ function test_emptyComboExpanded() {
4902+ var comboListPanel = findChild(combo, "combobutton_combopanel");
4903+ var comboList = findChild(combo, "combobutton_combolist");
4904+ combo.expanded = true;
4905+ waitForRendering(combo);
4906+ waitForRendering(comboListPanel);
4907+ tryCompareFunction(function() { return comboListPanel.opacity}, 0.0, 1000);
4908+ }
4909+
4910+ function test_longCombo() {
4911+ var comboListPanel = findChild(longCombo, "combobutton_combopanel");
4912+ var comboList = findChild(longCombo, "combobutton_combolist");
4913+ longCombo.expanded = true;
4914+ waitForRendering(longCombo);
4915+ waitForRendering(comboListPanel);
4916+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4917+ verify(comboListPanel.height < longCombo.expandedHeight);
4918+ }
4919+
4920+ function test_listCombo() {
4921+ var comboListPanel = findChild(listCombo, "combobutton_combopanel");
4922+ var comboList = findChild(listCombo, "combobutton_combolist");
4923+ listCombo.expanded = true;
4924+ waitForRendering(listCombo);
4925+ waitForRendering(comboListPanel);
4926+ tryCompareFunction(function() { return comboListPanel.opacity}, 1.0);
4927+
4928+ compare(list.height, comboList.height, "list and comboList height differs");
4929+ }
4930+ }
4931+}
4932
4933=== modified file 'tests/unit_x11/tst_components/tst_datepicker.qml'
4934--- tests/unit_x11/tst_components/tst_datepicker.qml 2014-04-20 19:25:12 +0000
4935+++ tests/unit_x11/tst_components/tst_datepicker.qml 2014-04-25 13:00:38 +0000
4936@@ -17,7 +17,7 @@
4937 import QtQuick 2.0
4938 import QtTest 1.0
4939 import Ubuntu.Test 1.0
4940-import Ubuntu.Components 1.0
4941+import Ubuntu.Components 1.1
4942 import Ubuntu.Components.Pickers 1.0
4943
4944 Item {
4945
4946=== modified file 'tests/unit_x11/tst_components/tst_dialer.qml'
4947--- tests/unit_x11/tst_components/tst_dialer.qml 2014-04-20 19:25:12 +0000
4948+++ tests/unit_x11/tst_components/tst_dialer.qml 2014-04-25 13:00:38 +0000
4949@@ -17,7 +17,7 @@
4950 import QtQuick 2.0
4951 import QtTest 1.0
4952 import Ubuntu.Test 1.0
4953-import Ubuntu.Components 1.0
4954+import Ubuntu.Components 1.1
4955 import Ubuntu.Components.Pickers 1.0
4956
4957 Item {
4958
4959=== modified file 'tests/unit_x11/tst_components/tst_expandable.qml'
4960--- tests/unit_x11/tst_components/tst_expandable.qml 2014-04-20 19:25:12 +0000
4961+++ tests/unit_x11/tst_components/tst_expandable.qml 2014-04-25 13:00:38 +0000
4962@@ -17,7 +17,7 @@
4963 import QtQuick 2.0
4964 import QtTest 1.0
4965 import Ubuntu.Test 1.0
4966-import Ubuntu.Components 1.0
4967+import Ubuntu.Components 1.1
4968 import Ubuntu.Components.ListItems 1.0
4969
4970 Item {
4971
4972=== modified file 'tests/unit_x11/tst_components/tst_expandablescolumn.qml'
4973--- tests/unit_x11/tst_components/tst_expandablescolumn.qml 2014-04-20 19:25:12 +0000
4974+++ tests/unit_x11/tst_components/tst_expandablescolumn.qml 2014-04-25 13:00:38 +0000
4975@@ -17,7 +17,7 @@
4976 import QtQuick 2.0
4977 import QtTest 1.0
4978 import Ubuntu.Test 1.0
4979-import Ubuntu.Components 1.0
4980+import Ubuntu.Components 1.1
4981 import Ubuntu.Components.ListItems 1.0
4982
4983 Item {
4984
4985=== modified file 'tests/unit_x11/tst_components/tst_header.qml'
4986--- tests/unit_x11/tst_components/tst_header.qml 2014-04-20 19:25:12 +0000
4987+++ tests/unit_x11/tst_components/tst_header.qml 2014-04-25 13:00:38 +0000
4988@@ -16,7 +16,7 @@
4989
4990 import QtQuick 2.0
4991 import QtTest 1.0
4992-import Ubuntu.Components 1.0
4993+import Ubuntu.Components 1.1
4994
4995 Item {
4996 width: units.gu(50)
4997
4998=== modified file 'tests/unit_x11/tst_components/tst_hide_chrome.qml'
4999--- tests/unit_x11/tst_components/tst_hide_chrome.qml 2014-04-23 18:14:56 +0000
5000+++ tests/unit_x11/tst_components/tst_hide_chrome.qml 2014-04-25 13:00:38 +0000
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches